|
@@ -97,5 +97,109 @@
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
+ <!-- 保存或修改商户门店库存 -->
|
|
|
+ <insert id="saveOrUpdate">
|
|
|
+ insert into wb_merch_shop_inve
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="shopInveSn != null">shop_inve_sn,</if>
|
|
|
+ <if test="shopSn != null">shop_sn,</if>
|
|
|
+ <if test="merchSn != null">merch_sn,</if>
|
|
|
+ <if test="merchName != null">merch_name,</if>
|
|
|
+ <if test="thirdPartyMerchCode != null">third_party_merch_code,</if>
|
|
|
+ <if test="thirdPartyMerchName != null">third_party_merch_name,</if>
|
|
|
+ <if test="sku != null">sku,</if>
|
|
|
+ <if test="cusCode != null">cus_code,</if>
|
|
|
+ <if test="bondedCode != null">bonded_code,</if>
|
|
|
+ <if test="wareSn != null">ware_sn,</if>
|
|
|
+ <if test="goodsBizType != null">goods_biz_type,</if>
|
|
|
+ <if test="shopInve != null">shop_inve,</if>
|
|
|
+ <if test="shopValid != null">shop_valid,</if>
|
|
|
+ <if test="shopFreezeNum != null">shop_freeze_num,</if>
|
|
|
+ <if test="shopDamageNum != null">shop_damage_num,</if>
|
|
|
+ <if test="shopDestroyLostNum != null">shop_destroy_lost_num,</if>
|
|
|
+ <if test="shopExpireNum != null">shop_expire_num,</if>
|
|
|
+ <if test="shopSampleFreezeNum != null">shop_sample_freeze_num,</if>
|
|
|
+ <if test="shopMinus != null">shop_minus,</if>
|
|
|
+ <if test="shopSupp != null">shop_supp,</if>
|
|
|
+ <if test="inQty != null">in_qty,</if>
|
|
|
+ <if test="outQty != null">out_qty,</if>
|
|
|
+ <if test="returnQty != null">return_qty,</if>
|
|
|
+ <if test="saleQty != null">sale_qty,</if>
|
|
|
+ <if test="locInQty != null">loc_in_qty,</if>
|
|
|
+ <if test="locOutQty != null">loc_out_qty,</if>
|
|
|
+ <if test="isValid != null">is_valid,</if>
|
|
|
+ <if test="createrSn != null">creater_sn,</if>
|
|
|
+ <if test="createTime != null">create_time,</if>
|
|
|
+ <if test="moderSn != null">moder_sn,</if>
|
|
|
+ <if test="modTime != null">mod_time,</if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="shopInveSn != null">#{shopInveSn},</if>
|
|
|
+ <if test="shopSn != null">#{shopSn},</if>
|
|
|
+ <if test="merchSn != null">#{merchSn},</if>
|
|
|
+ <if test="merchName != null">#{merchName},</if>
|
|
|
+ <if test="thirdPartyMerchCode != null">#{thirdPartyMerchCode},</if>
|
|
|
+ <if test="thirdPartyMerchName != null">#{thirdPartyMerchName},</if>
|
|
|
+ <if test="sku != null">#{sku},</if>
|
|
|
+ <if test="cusCode != null">#{cusCode},</if>
|
|
|
+ <if test="bondedCode != null">#{bondedCode},</if>
|
|
|
+ <if test="wareSn != null">#{wareSn},</if>
|
|
|
+ <if test="goodsBizType != null">#{goodsBizType},</if>
|
|
|
+ <if test="shopInve != null">#{shopInve},</if>
|
|
|
+ <if test="shopValid != null">#{shopValid},</if>
|
|
|
+ <if test="shopFreezeNum != null">#{shopFreezeNum},</if>
|
|
|
+ <if test="shopDamageNum != null">#{shopDamageNum},</if>
|
|
|
+ <if test="shopDestroyLostNum != null">#{shopDestroyLostNum},</if>
|
|
|
+ <if test="shopExpireNum != null">#{shopExpireNum},</if>
|
|
|
+ <if test="shopSampleFreezeNum != null">#{shopSampleFreezeNum},</if>
|
|
|
+ <if test="shopMinus != null">#{shopMinus},</if>
|
|
|
+ <if test="shopSupp != null">#{shopSupp},</if>
|
|
|
+ <if test="inQty != null">#{inQty},</if>
|
|
|
+ <if test="outQty != null">#{outQty},</if>
|
|
|
+ <if test="returnQty != null">#{returnQty},</if>
|
|
|
+ <if test="saleQty != null">#{saleQty},</if>
|
|
|
+ <if test="locInQty != null">#{locInQty},</if>
|
|
|
+ <if test="locOutQty != null">#{locOutQty},</if>
|
|
|
+ <if test="isValid != null">#{isValid},</if>
|
|
|
+ <if test="createrSn != null">#{createrSn},</if>
|
|
|
+ <if test="createTime != null">#{createTime},</if>
|
|
|
+ <if test="moderSn != null">#{moderSn},</if>
|
|
|
+ <if test="modTime != null">#{modTime},</if>
|
|
|
+ </trim>
|
|
|
+
|
|
|
+ ON DUPLICATE KEY UPDATE
|
|
|
+ <trim prefix="" suffixOverrides=",">
|
|
|
+ <if test="shopSn != null">shop_sn = #{shopSn},</if>
|
|
|
+ <if test="merchSn != null">merch_sn = #{merchSn},</if>
|
|
|
+ <if test="merchName != null">merch_name = #{merchName},</if>
|
|
|
+ <if test="thirdPartyMerchCode != null">third_party_merch_code = #{thirdPartyMerchCode},</if>
|
|
|
+ <if test="thirdPartyMerchName != null">third_party_merch_name = #{thirdPartyMerchName},</if>
|
|
|
+ <if test="sku != null">sku = #{sku},</if>
|
|
|
+ <if test="cusCode != null">cus_code = #{cusCode},</if>
|
|
|
+ <if test="bondedCode != null">bonded_code = #{bondedCode},</if>
|
|
|
+ <if test="wareSn != null">ware_sn = #{wareSn},</if>
|
|
|
+ <if test="goodsBizType != null">goods_biz_type = #{goodsBizType},</if>
|
|
|
+ <if test="shopInve != null">shop_inve = #{shopInve},</if>
|
|
|
+ <if test="shopValid != null">shop_valid = #{shopValid},</if>
|
|
|
+ <if test="shopFreezeNum != null">shop_freeze_num = #{shopFreezeNum},</if>
|
|
|
+ <if test="shopDamageNum != null">shop_damage_num = #{shopDamageNum},</if>
|
|
|
+ <if test="shopDestroyLostNum != null">shop_destroy_lost_num = #{shopDestroyLostNum},</if>
|
|
|
+ <if test="shopExpireNum != null">shop_expire_num = #{shopExpireNum},</if>
|
|
|
+ <if test="shopSampleFreezeNum != null">shop_sample_freeze_num = #{shopSampleFreezeNum},</if>
|
|
|
+ <if test="shopMinus != null">shop_minus = #{shopMinus},</if>
|
|
|
+ <if test="shopSupp != null">shop_supp = #{shopSupp},</if>
|
|
|
+ <if test="inQty != null">in_qty = #{inQty},</if>
|
|
|
+ <if test="outQty != null">out_qty = #{outQty},</if>
|
|
|
+ <if test="returnQty != null">return_qty = #{returnQty},</if>
|
|
|
+ <if test="saleQty != null">sale_qty = #{saleQty},</if>
|
|
|
+ <if test="locInQty != null">loc_in_qty = #{locInQty},</if>
|
|
|
+ <if test="locOutQty != null">loc_out_qty = #{locOutQty},</if>
|
|
|
+ <if test="isValid != null">is_valid = #{isValid},</if>
|
|
|
+ <if test="createrSn != null">creater_sn = #{createrSn},</if>
|
|
|
+ <if test="createTime != null">create_time = #{createTime},</if>
|
|
|
+ <if test="moderSn != null">moder_sn = #{moderSn},</if>
|
|
|
+ <if test="modTime != null">mod_time = #{modTime},</if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
|
|
|
</mapper>
|