select id, wlCode, itemName, itemStandard, machineNo, stockDw, qty, warehouseName, warehouseNo, depositPosition, inClass, spare1, spare2, spare3, spare4, spare5, spare6, wlType, batchNumber from warehouse
insert into warehouse
wlCode,
itemName,
itemStandard,
machineNo,
stockDw,
qty,
warehouseName,
warehouseNo,
depositPosition,
inClass,
spare1,
spare2,
spare3,
spare4,
spare5,
spare6,
wlType,
batchNumber,
#{wlCode},
#{itemName},
#{itemStandard},
#{machineNo},
#{stockDw},
#{qty},
#{warehouseName},
#{warehouseNo},
#{depositPosition},
#{inClass},
now(),
now(),
#{spare3},
#{spare4},
#{spare5},
#{spare6},
#{wlType},
#{batchNumber},
update warehouse
wlCode = #{wlCode},
itemName = #{itemName},
itemStandard = #{itemStandard},
machineNo = #{machineNo},
stockDw = #{stockDw},
qty = #{qty},
warehouseName = #{warehouseName},
warehouseNo = #{warehouseNo},
depositPosition = #{depositPosition},
inClass = #{inClass},
spare1 = #{spare1},
spare2 = #{spare2},
spare3 = #{spare3},
spare4 = #{spare4},
spare5 = #{spare5},
spare6 = #{spare6},
wlType = #{wlType},
batchNumber = #{batchNumber},
where id = #{id}
delete from warehouse where id = #{id}
delete from warehouse where id in
#{id}
update warehouse set qty=qty+#{qty},spare1=now() where wlCode=#{wlCode}
update warehouse set qty=qty-#{qty},spare2=now() where wlCode=#{wlCode}