select materialRequisitionNo, workOrderNo, departmentName, linkman, stockNo, stockName, outputClass, outputDate, remark, endFlag, itemClass, confirmFlag, confirmMan, confirmDate, auditingFlag, auditingMan, auditingDate, approveFlag, approveMan, spproveDate, createDate, outsourceOrderNo, getFlag, orderNo, batchNum, spare1, spare2, spare3, spare4, spare5, spare6 from material_requisition_head
insert into material_requisition_head
materialRequisitionNo,
workOrderNo,
departmentName,
linkman,
stockNo,
stockName,
outputClass,
outputDate,
remark,
endFlag,
itemClass,
confirmFlag,
confirmMan,
confirmDate,
auditingFlag,
auditingMan,
auditingDate,
approveFlag,
approveMan,
spproveDate,
createDate,
outsourceOrderNo,
getFlag,
orderNo,
batchNum,
spare1,
spare2,
spare3,
spare4,
spare5,
spare6,
#{materialRequisitionNo},
#{workOrderNo},
#{departmentName},
#{linkman},
#{stockNo},
#{stockName},
#{outputClass},
#{outputDate},
#{remark},
#{endFlag},
#{itemClass},
#{confirmFlag},
#{confirmMan},
#{confirmDate},
#{auditingFlag},
#{auditingMan},
#{auditingDate},
#{approveFlag},
#{approveMan},
#{spproveDate},
#{createDate},
#{outsourceOrderNo},
#{getFlag},
#{orderNo},
#{batchNum},
#{spare1},
#{spare2},
#{spare3},
#{spare4},
#{spare5},
#{spare6},
update material_requisition_head
workOrderNo = #{workOrderNo},
departmentName = #{departmentName},
linkman = #{linkman},
stockNo = #{stockNo},
stockName = #{stockName},
outputClass = #{outputClass},
outputDate = #{outputDate},
remark = #{remark},
endFlag = #{endFlag},
itemClass = #{itemClass},
confirmFlag = #{confirmFlag},
confirmMan = #{confirmMan},
confirmDate = #{confirmDate},
auditingFlag = #{auditingFlag},
auditingMan = #{auditingMan},
auditingDate = #{auditingDate},
approveFlag = #{approveFlag},
approveMan = #{approveMan},
spproveDate = #{spproveDate},
createDate = #{createDate},
outsourceOrderNo = #{outsourceOrderNo},
getFlag = #{getFlag},
orderNo = #{orderNo},
batchNum = #{batchNum},
spare1 = #{spare1},
spare2 = #{spare2},
spare3 = #{spare3},
spare4 = #{spare4},
spare5 = #{spare5},
spare6 = #{spare6},
where materialRequisitionNo = #{materialRequisitionNo}
delete from material_requisition_head where materialRequisitionNo = #{materialRequisitionNo}
delete from material_requisition_head where materialRequisitionNo in
#{materialRequisitionNo}