select checkId, itemNo, itemCode, itemName, itemSpecification, machineType, unit, qty, nowQty, remark, checkQty, batchNumber, isUpdate, spare1, spare2, spare3, spare4, spare5, spare6 from check_list
insert into check_list
checkId,
itemNo,
itemCode,
itemName,
itemSpecification,
machineType,
unit,
qty,
nowQty,
remark,
checkQty,
batchNumber,
isUpdate,
spare1,
spare2,
spare3,
spare4,
spare5,
spare6,
#{checkId},
#{itemNo},
#{itemCode},
#{itemName},
#{itemSpecification},
#{machineType},
#{unit},
#{qty},
#{nowQty},
#{remark},
#{checkQty},
#{batchNumber},
#{isUpdate},
#{spare1},
#{spare2},
#{spare3},
#{spare4},
#{spare5},
#{spare6},
update check_list
itemNo = #{itemNo},
itemCode = #{itemCode},
itemName = #{itemName},
itemSpecification = #{itemSpecification},
machineType = #{machineType},
unit = #{unit},
qty = #{qty},
nowQty = #{nowQty},
remark = #{remark},
checkQty = #{checkQty},
batchNumber = #{batchNumber},
isUpdate = #{isUpdate},
spare1 = #{spare1},
spare2 = #{spare2},
spare3 = #{spare3},
spare4 = #{spare4},
spare5 = #{spare5},
spare6 = #{spare6},
where checkId = #{checkId}
delete from check_list where checkId = #{checkId}
delete from check_list where checkId in
#{checkId}
update check_list set nowQty = #{nowQty},isUpdate = #{isUpdate} where checkId = #{checkId} and itemCode=#{itemCode}