replace INTO mips_barcode
(
orderId,
code,
pCode,
packFlag,
codeLevel,
batchNo,
manufacturingDate,
expirationDate,
closeFlag,
comments,
count,
lastModifyTime,
dtflag
)
VALUES
(
#{item.orderId},
#{item.code},
#{item.pCode},
#{item.packFlag},
#{item.codeLevel},
#{item.batchNo},
#{item.manufacturingDate},
#{item.expirationDate},
#{item.closeFlag},
#{item.comments},
#{item.count},
#{item.lastModifyTime},
#{item.dtflag}
)
DELETE FROM mips_barcode WHERE orderId = #{orderId}
DELETE FROM mips_barcode
WHERE code in
#{item}
UPDATE mips_barcode SET dtflag = 1
WHERE code in
#{item}