| | |
| | | update sys_steel set stock = (stock+#{needNum}) where steel_id = #{steelId} |
| | | </update> |
| | | |
| | | <insert id="insertSteelStockRecord"> |
| | | insert into t_steel_stock_record |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="recordId !=null and recordId !=''"> |
| | | record_id, |
| | | </if> |
| | | <if test="steelRecordId !=null and steelRecordId !=''"> |
| | | check_record_id, |
| | | </if> |
| | | <if test="modCheckId !=null and modCheckId !=''"> |
| | | mod_check_id, |
| | | </if> |
| | | <if test="proId !=null and proId !=''"> |
| | | pro_id, |
| | | </if> |
| | | <if test="sizeId !=null and sizeId !=''"> |
| | | size_id, |
| | | </if> |
| | | <if test="reinforcementId !=null and reinforcementId !=''"> |
| | | reinforcement_id, |
| | | </if> |
| | | <if test="blockId !=null and blockId !=''"> |
| | | block_id, |
| | | </if> |
| | | <if test="stock !=null and stock !=''"> |
| | | stock, |
| | | </if> |
| | | <if test="createTime !=null and createTime !=''"> |
| | | create_time, |
| | | </if> |
| | | <if test="type !=null"> |
| | | type, |
| | | </if> |
| | | </trim> |
| | | <trim prefix=" values (" suffix=")" suffixOverrides=","> |
| | | <if test="recordId !=null and recordId !=''"> |
| | | #{recordId}, |
| | | </if> |
| | | <if test="steelRecordId !=null and steelRecordId !=''"> |
| | | #{steelRecordId}, |
| | | </if> |
| | | <if test="modCheckId !=null and modCheckId !=''"> |
| | | #{modCheckId}, |
| | | </if> |
| | | <if test="proId !=null and proId !=''"> |
| | | #{proId}, |
| | | </if> |
| | | <if test="sizeId !=null and sizeId !=''"> |
| | | #{sizeId}, |
| | | </if> |
| | | <if test="reinforcementId !=null and reinforcementId !=''"> |
| | | #{reinforcementId}, |
| | | </if> |
| | | <if test="blockId !=null and blockId !=''"> |
| | | #{blockId}, |
| | | </if> |
| | | <if test="stock !=null and stock !=''"> |
| | | #{stock}, |
| | | </if> |
| | | <if test="createTime !=null and createTime !=''"> |
| | | #{createTime}, |
| | | </if> |
| | | <if test="type !=null"> |
| | | #{type}, |
| | | </if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateSteelStockRecordByCheckId"> |
| | | update t_steel_stock_record set is_use = #{isUse} where check_record_id = #{checkRecordId} |
| | | </update> |
| | | |
| | | </mapper> |