select warehousingNotice_no, customer_id, customer_name, warehousing_type, warehousingNotice_date, purchaseOrder_no, workOrder_no, domesticOrExport, warehouse_NO, warehouse_name, warehousing_amt, item_NO, item_name, itemTimes, specificationModel, machineType, unit, spell_1, spell_2, spell_3, outWorkOrder_no, spare_1, spare_2, spare_3 from warehousing_notice
insert into warehousing_notice
warehousingNotice_no,
customer_id,
customer_name,
warehousing_type,
warehousingNotice_date,
purchaseOrder_no,
workOrder_no,
domesticOrExport,
warehouse_NO,
warehouse_name,
warehousing_amt,
item_NO,
item_name,
itemTimes,
specificationModel,
machineType,
unit,
spell_1,
spell_2,
spell_3,
outWorkOrder_no,
spare_1,
spare_2,
spare_3,
#{warehousingnoticeNo},
#{customerId},
#{customerName},
#{warehousingType},
#{warehousingnoticeDate},
#{purchaseorderNo},
#{workorderNo},
#{domesticOrExport},
#{warehouseNo},
#{warehouseName},
#{warehousingAmt},
#{itemNo},
#{itemName},
#{itemTimes},
#{specificationModel},
#{machineType},
#{unit},
#{spell1},
#{spell2},
#{spell3},
#{outworkorderNo},
#{spare1},
#{spare2},
#{spare3},
update warehousing_notice
customer_id = #{customerId},
customer_name = #{customerName},
warehousing_type = #{warehousingType},
warehousingNotice_date = #{warehousingnoticeDate},
purchaseOrder_no = #{purchaseorderNo},
workOrder_no = #{workorderNo},
domesticOrExport = #{domesticOrExport},
warehouse_NO = #{warehouseNo},
warehouse_name = #{warehouseName},
warehousing_amt = #{warehousingAmt},
item_NO = #{itemNo},
item_name = #{itemName},
itemTimes = #{itemTimes},
specificationModel = #{specificationModel},
machineType = #{machineType},
unit = #{unit},
spell_1 = #{spell1},
spell_2 = #{spell2},
spell_3 = #{spell3},
outWorkOrder_no = #{outworkorderNo},
spare_1 = #{spare1},
spare_2 = #{spare2},
spare_3 = #{spare3},
where warehousingNotice_no = #{warehousingnoticeNo}
delete from warehousing_notice where warehousingNotice_no = #{warehousingnoticeNo}
delete from warehousing_notice where warehousingNotice_no in
#{warehousingnoticeNo}
delete from warehousing_check where warehousingNotice_id in
#{warehousingnoticeId}
delete from warehousing_check where warehousingNotice_id = #{warehousingnoticeId}
insert into warehousing_check( warehousingCheck_id, warehousingNotice_id, material_Code, material_name, specificationModel, machineType, unit, order_amt, qualified_amt, unqualified_amt, qualifiedRate, note, batchNumber, notcieTime, checkTime, isQualified, inspector, spell_1, spell_2, spell_3) values
( #{item.warehousingcheckId}, #{item.warehousingnoticeId}, #{item.materialCode}, #{item.materialName}, #{item.specificationModel}, #{item.machineType}, #{item.unit}, #{item.orderAmt}, #{item.qualifiedAmt}, #{item.unqualifiedAmt}, #{item.qualifiedRate}, #{item.note}, #{item.batchNumber}, #{item.notcieTime}, #{item.checkTime}, #{item.isQualified}, #{item.inspector}, #{item.spell1}, #{item.spell2}, #{item.spell3})