From 111a401f033749c965f02f58c586a8feafd9afd1 Mon Sep 17 00:00:00 2001 From: 叶松 <2217086471@qq.com> Date: 星期一, 27 十一月 2023 11:23:46 +0800 Subject: [PATCH] Merge branch 'master' of http://111.30.93.211:10101/r/supipe --- hd/pipe/mobile/src/main/resources/mapping/SteelStockMapper.xml | 72 ++++++++++++++++++++++++++++++++++++ 1 files changed, 72 insertions(+), 0 deletions(-) diff --git a/hd/pipe/mobile/src/main/resources/mapping/SteelStockMapper.xml b/hd/pipe/mobile/src/main/resources/mapping/SteelStockMapper.xml index 679d0cb..adf1e93 100644 --- a/hd/pipe/mobile/src/main/resources/mapping/SteelStockMapper.xml +++ b/hd/pipe/mobile/src/main/resources/mapping/SteelStockMapper.xml @@ -239,4 +239,76 @@ 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> -- Gitblit v1.9.3