修改耗材库存
This commit is contained in:
@@ -163,15 +163,17 @@
|
||||
</update>
|
||||
|
||||
<insert id="insertBatch">
|
||||
<foreach collection="list" item="item" index="index" open="" close="" separator=";">
|
||||
|
||||
insert into tb_cons_info_flow (shop_id, cons_id,
|
||||
con_name, amount, balance,
|
||||
biz_code, biz_name, biz_type,
|
||||
create_time, update_time)
|
||||
values #{item.shopId,jdbcType=INTEGER}, #{item.consId,jdbcType=INTEGER},
|
||||
create_time)
|
||||
values
|
||||
<foreach collection ="list" item="item" separator =",">
|
||||
( #{item.shopId,jdbcType=INTEGER}, #{item.consId,jdbcType=INTEGER},
|
||||
#{item.conName,jdbcType=VARCHAR}, #{item.amount,jdbcType=DECIMAL}, #{item.balance,jdbcType=DECIMAL},
|
||||
#{item.bizCode,jdbcType=VARCHAR}, #{item.bizName,jdbcType=VARCHAR}, #{item.bizType,jdbcType=VARCHAR},
|
||||
#{item.createTime,jdbcType=TIMESTAMP}, #{item.updateTime,jdbcType=TIMESTAMP})
|
||||
now())
|
||||
</foreach>
|
||||
|
||||
</insert>
|
||||
|
||||
@@ -119,7 +119,7 @@
|
||||
|
||||
|
||||
<select id="selectBySkuIdAndShopId" resultMap="BaseResultMap">
|
||||
select * from tb_prosku_con where product_sku_id=#{shopId} and shop_id=#{shopId} and status=1
|
||||
select * from tb_prosku_con where product_sku_id=#{skuId} and shop_id=#{shopId} and status=1
|
||||
</select>
|
||||
|
||||
<select id="selectIdBySkuIdAndShopId" resultType="java.lang.Integer">
|
||||
|
||||
Reference in New Issue
Block a user