select id, job_id, row_no, action_type, raw_text, parsed_json, status, error_msg, warning_msg, ref_id,
area_name, product_name, brand, category, spec, unit, quantity, operator_name, type_code,
source_no, remark, create_time, update_time
from wms_batch_item
insert into wms_batch_item(job_id, row_no, action_type, raw_text, parsed_json, status, error_msg, warning_msg,
ref_id, area_name, product_name, brand, category, spec, unit, quantity,
operator_name, type_code, source_no, remark, create_time)
values(#{jobId}, #{rowNo}, #{actionType}, #{rawText}, #{parsedJson}, #{status}, #{errorMsg}, #{warningMsg},
#{refId}, #{areaName}, #{productName}, #{brand}, #{category}, #{spec}, #{unit}, #{quantity},
#{operatorName}, #{typeCode}, #{sourceNo}, #{remark}, sysdate())
insert into wms_batch_item(job_id, row_no, action_type, raw_text, parsed_json, status, error_msg, warning_msg,
ref_id, area_name, product_name, brand, category, spec, unit, quantity,
operator_name, type_code, source_no, remark, create_time)
values
(#{item.jobId}, #{item.rowNo}, #{item.actionType}, #{item.rawText}, #{item.parsedJson}, #{item.status},
#{item.errorMsg}, #{item.warningMsg}, #{item.refId}, #{item.areaName}, #{item.productName}, #{item.brand},
#{item.category}, #{item.spec}, #{item.unit}, #{item.quantity}, #{item.operatorName}, #{item.typeCode},
#{item.sourceNo}, #{item.remark}, sysdate())
update wms_batch_item
row_no = #{rowNo},
action_type = #{actionType},
raw_text = #{rawText},
parsed_json = #{parsedJson},
status = #{status},
error_msg = #{errorMsg},
warning_msg = #{warningMsg},
ref_id = #{refId},
area_name = #{areaName},
product_name = #{productName},
brand = #{brand},
category = #{category},
spec = #{spec},
unit = #{unit},
quantity = #{quantity},
operator_name = #{operatorName},
type_code = #{typeCode},
source_no = #{sourceNo},
remark = #{remark},
update_time = sysdate()
where id = #{id}
delete from wms_batch_item where id = #{id}
delete from wms_batch_item where job_id = #{value}