INSERT INTO receipts(id,mainAction,action,receiptNo,receiptDate,unit)
values
(
#{item.id},
#{item.mainAction},
#{item.action},
#{item.receiptNo},
#{item.receiptDate},
#{item.unit}
)
UPDATE receipts SET
mainAction = #{mainAction},
action = #{action},
receiptNo = #{receiptNo},
receiptDate = #{receiptDate},
unit = #{unit},
unitAddr = #{unitAddr},
unitContact = #{unitContact},
unitTel = #{unitTel},
storage = #{storage},
storageUnit = #{storageUnit},
businessProcess = #{businessProcess},
storeKeeper = #{storeKeeper},
department = #{department},
buyer = #{buyer},
remark = #{remark},
isReturn = #{isReturn},
isBack = #{isBack},
upreceipt = #{upreceipt},
status = #{status}
WHERE id = #{id}
DELETE FROM receipts WHERE id = #{id}