insert into mall_goods_product
`merch_sn` ,
`third_merch_sn` ,
`prod_barcode` ,
`sku` ,
`cus_goods_code` ,
`prod_name` ,
`prod_ename` ,
`prod_record_name` ,
`prod_record_ename` ,
`ciq_prod_model` ,
`prod_brand` ,
`ori_cnt_code` ,
`unit_code` ,
`decl_price` ,
`decl_currency_code` ,
`supplier_name` ,
`supplier_cnt_code` ,
`prod_comp_name` ,
`prod_comp_cnt_code` ,
`ciq_main_ele` ,
`ciq_monitor_type` ,
`is_law` ,
`is_gift` ,
`cus_decl_ele` ,
`creater_sn` ,
`create_time` ,
`moder_sn` ,
`mod_time`,
`tstm` ,
`ex_field` ,
`ex_field2` ,
`ex_field3` ,
`ex_field4` ,
`ex_field5` ,
`legal_unit1_qty` ,
`net_weight` ,
`legal_unit2_qty` ,
`gross_weight` ,
`local_ems_no` ,
`item_record_no` ,
`is_send` ,
`ems_class_code` ,
`up_img` ,
`down_img` ,
`left_img` ,
`right_img`,
`before_img` ,
`after_img` ,
`send_time` ,
`oms_audit_status` ,
`oms_audit_remark` ,
`oms_audit_time`,
`oms_callback_time`,
`status` ,
#{merchSn},
#{thirdMerchSn},
#{prodBarcode},
#{sku},
#{cusGoodsCode},
#{prodName},
#{prodEname},
#{prodRecordName},
#{prodRecordEname},
#{ciqProdModel},
#{prodBrand},
#{oriCntCode},
#{unitCode},
#{declPrice},
#{declCurrencyCode},
#{supplierName},
#{supplierCntCode},
#{prodCompName},
#{prodCompCntCode},
#{ciqMainEle},
#{ciqMonitorType},
#{isLaw},
#{isGift},
#{cusDeclEle},
#{createrSn},
#{createTime},
#{moderSn},
#{modTime},
#{tstm},
#{exField},
#{exField2},
#{exField3},
#{exField4},
#{exField5},
#{legalUnit1Qty},
#{netWeight},
#{legalUnit2Qty},
#{grossWeight},
#{localEmsNo},
#{itemRecordNo},
'0' ,
#{emsClassCode},
#{upImg},
#{downImg},
#{leftImg},
#{rightImg},
#{beforeImg},
#{afterImg},
#{sendTime},
#{omsAuditStatus},
#{omsAuditRemark},
#{omsAuditTime},
#{omsCallbackTime},
#{status},
insert into mall_goods_product(
`merch_sn`,
`prod_barcode`,
`sku`,
`batch_no`,
`cus_goods_code`,
`prod_name`,
`prod_ename`,
`prod_record_name`,
`ciq_prod_model`,
`prod_brand`,
`ori_cnt_code`,
`unit_code`,
`decl_price`,
`decl_currency_code`,
`supplier_name`,
`supplier_cnt_code`,
`prod_comp_name`,
`prod_comp_cnt_code`,
`ciq_main_ele`,
`ciq_monitor_type`,
`is_law`,
`is_gift`,
`cus_decl_ele`,
`creater_sn`,
`create_time`,
`net_weight`,
`gross_weight`,
`is_send`,
`ems_class_code`,
`status`
)
values
(
#{item.merchSn},
#{item.prodBarcode},
#{item.sku},
#{item.batchNo},
#{item.cusGoodsCode},
#{item.prodName},
#{item.prodEname},
#{item.prodRecordName},
#{item.ciqProdModel},
#{item.prodBrand},
#{item.oriCntCode},
#{item.unitCode},
#{item.declPrice},
#{item.declCurrencyCode},
#{item.supplierName},
#{item.supplierCntCode},
#{item.prodCompName},
#{item.prodCompCntCode},
#{item.ciqMainEle},
#{item.ciqMonitorType},
#{item.isLaw},
#{item.isGift},
#{item.cusDeclEle},
#{item.createrSn},
#{item.createTime},
#{item.netWeight},
#{item.grossWeight},
'0',
#{item.emsClassCode},
#{item.status}
)
update mall_goods_product
`merch_sn` = #{merchSn},
`third_merch_sn` = #{thirdMerchSn},
`prod_barcode` = #{prodBarcode},
`sku` = #{sku},
`cus_goods_code` = #{cusGoodsCode},
`prod_name` = #{prodName},
`prod_ename` = #{prodEname},
`prod_record_name` = #{prodRecordName},
`prod_record_ename` = #{prodRecordEname},
`ciq_prod_model` = #{ciqProdModel},
`prod_brand` = #{prodBrand},
`ori_cnt_code` = #{oriCntCode},
`unit_code` = #{unitCode},
`decl_price` = #{declPrice},
`decl_currency_code` = #{declCurrencyCode},
`supplier_name` = #{supplierName},
`supplier_cnt_code` = #{supplierCntCode},
`prod_comp_name` = #{prodCompName},
`prod_comp_cnt_code` = #{prodCompCntCode},
`ciq_main_ele` = #{ciqMainEle},
`ciq_monitor_type` = #{ciqMonitorType},
`is_law` = #{isLaw},
`is_gift` = #{isGift},
`cus_decl_ele` = #{cusDeclEle},
`creater_sn` = #{createrSn},
`create_time` = #{createTime},
`moder_sn` = #{moderSn},
`mod_time` = #{modTime},
`tstm` = #{tstm},
`ex_field` = #{exField},
`ex_field2` = #{exField2},
`ex_field3` = #{exField3},
`ex_field4` = #{exField4},
`ex_field5` = #{exField5},
`legal_unit1_qty` = #{legalUnit1Qty},
`net_weight` = #{netWeight},
`legal_unit2_qty` = #{legalUnit2Qty},
`gross_weight` = #{grossWeight},
`local_ems_no` = #{localEmsNo},
`item_record_no` = #{itemRecordNo},
`is_send` = #{isSend},
`ems_class_code` = #{emsClassCode},
`up_img` = #{upImg},
`down_img` = #{downImg},
`left_img` = #{leftImg},
`right_img` = #{rightImg},
`before_img` = #{beforeImg},
`after_img` = #{afterImg},
`send_time` = #{sendTime},
`oms_audit_status` = #{omsAuditStatus},
`oms_audit_remark` = #{omsAuditRemark},
`oms_audit_time` = #{omsAuditTime},
`oms_callback_time` = #{omsCallbackTime},
`status` = #{status},
where mall_goods_product_sn = #{mallGoodsProductSn}
update mall_goods_product
`merch_sn` = #{item.merchSn},
`third_merch_sn` = #{item.thirdMerchSn},
`prod_barcode` = #{item.prodBarcode},
`sku` = #{item.sku},
`cus_goods_code` = #{item.cusGoodsCode},
`prod_name` = #{item.prodName},
`prod_ename` = #{item.prodEname},
`prod_record_name` = #{item.prodRecordName},
`prod_record_ename` = #{item.prodRecordEname},
`ciq_prod_model` = #{item.ciqProdModel},
`prod_brand` = #{item.prodBrand},
`ori_cnt_code` = #{item.oriCntCode},
`unit_code` = #{item.unitCode},
`decl_price` = #{item.declPrice},
`decl_currency_code` = #{item.declCurrencyCode},
`supplier_name` = #{item.supplierName},
`supplier_cnt_code` = #{item.supplierCntCode},
`prod_comp_name` = #{item.prodCompName},
`prod_comp_cnt_code` = #{item.prodCompCntCode},
`ciq_main_ele` = #{item.ciqMainEle},
`ciq_monitor_type` = #{item.ciqMonitorType},
`is_law` = #{item.isLaw},
`is_gift` = #{item.isGift},
`cus_decl_ele` = #{item.cusDeclEle},
`creater_sn` = #{item.createrSn},
`create_time` = #{item.createTime},
`moder_sn` = #{item.moderSn},
`mod_time` = #{item.modTime},
`tstm` = #{item.tstm},
`ex_field` = #{item.exField},
`ex_field2` = #{item.exField2},
`ex_field3` = #{item.exField3},
`ex_field4` = #{item.exField4},
`ex_field5` = #{item.exField5},
`legal_unit1_qty` = #{item.legalUnit1Qty},
`net_weight` = #{item.netWeight},
`legal_unit2_qty` = #{item.legalUnit2Qty},
`gross_weight` = #{item.grossWeight},
`local_ems_no` = #{item.localEmsNo},
`item_record_no` = #{item.itemRecordNo},
`is_send` = #{item.isSend},
`ems_class_code` = #{item.emsClassCode},
`up_img` = #{item.upImg},
`down_img` = #{item.downImg},
`left_img` = #{item.leftImg},
`right_img` = #{item.rightImg},
`before_img` = #{item.beforeImg},
`after_img` = #{item.afterImg},
`send_time` = #{item.sendTime},
`oms_audit_status` = #{item.omsAuditStatus},
`oms_audit_remark` = #{item.omsAuditRemark},
`oms_audit_time` = #{item.omsAuditTime},
`oms_callback_time` = #{item.omsCallbackTime},
`status` = #{item.status},
where mall_goods_product_sn = #{item.mallGoodsProductSn}
update mall_goods_product
`is_law` = #{map.isLaw},
`is_gift` = #{map.isGift},
`moder_sn` = #{map.moderSn},
`mod_time` = #{map.modTime},
`tstm` = #{map.tstm},
`ex_field` = #{map.exField},
`ex_field2` = #{map.exField2},
`ex_field3` = #{map.exField3},
`ex_field4` = #{map.exField4},
`ex_field5` = #{map.exField5},
`is_send` = #{map.isSend},
`send_time` = #{map.sendTime},
`oms_audit_status` = #{map.omsAuditStatus},
`oms_audit_remark` = #{map.omsAuditRemark},
`oms_audit_time` = #{map.omsAuditTime},
`oms_callback_time` = #{map.omsCallbackTime},
`status` = #{map.status},
`status` =
case status
when '00' then '02'
when '01' then '02'
when '10' then '12'
when '11' then '12'
else '99' end
case status
when '00' then '01'
when '01' then '01'
when '10' then '11'
when '11' then '11'
else '99' end
,
`status` =
case status
when '02' then '21'
when '12' then '21'
else '88' end
case status
when '02' then '03'
when '12' then '13'
else '88' end
,
where sku in
#{sku}
delete from mall_goods_product where mall_goods_product_sn = #{value}
delete from mall_goods_product where mall_goods_product_sn in
#{mallGoodsProductSn}