replace INTO io_order_detail(id,
companyid,erpOrderId,iodtlId,inoutId,goodsunit,goodsid,
batchNoId,goodsname,companyname,
batchNo,erpCount,credate,nameCode,productCompany,
coName,authCode,packSpec,packRatio,bhzxxsbzsl,
zxxsbzbhsydysl,orderIdFk,count,reCount)
values(
#{id},
#{companyid},
#{erpOrderId},
#{iodtlId},
#{inoutId},
#{goodsunit},
#{goodsid},
#{batchNoId},
#{goodsname},
#{companyname},
#{batchNo},
#{erpCount},
#{credate},
#{nameCode},#{productCompany},#{coName},#{authCode},#{packSpec},#{packRatio},
#{bhzxxsbzsl},#{zxxsbzbhsydysl},#{orderIdFk},#{count},#{reCount}
)
replace INTO io_order_detail(id,
companyid,erpOrderId,iodtlId,inoutId,goodsunit,goodsid,batchNoId,goodsname,companyname,
batchNo,erpCount,credate,nameCode,productCompany,
coName,authCode,packSpec,packRatio,bhzxxsbzsl,zxxsbzbhsydysl,orderIdFk,count,reCount)
values
(
#{item.id},
#{item.companyid},
#{item.erpOrderId},
#{item.iodtlId},
#{item.inoutId},
#{item.goodsunit},
#{item.goodsid},
#{item.batchNoId},
#{item.goodsname},
#{item.companyname},
#{item.batchNo},
#{item.erpCount}, #{item.credate},
#{item.nameCode}, #{item.productCompany}, #{item.coName}, #{item.authCode}, #{item.packSpec},
#{item.packRatio}, #{item.bhzxxsbzsl},
#{item.zxxsbzbhsydysl}, #{item.orderIdFk}, #{item.count},#{item.reCount})
UPDATE io_order_detail
count=#{count},
reCount=#{reCount},
WHERE id = #{id}
DELETE FROM io_order_detail WHERE docid = #{id}
DELETE FROM io_order_detail WHERE id = #{id}
DELETE FROM io_order_detail WHERE orderIdFk = #{id}