select warehousing_inspection_notice_id, in_notice_number, purchase_order_number, supplier_code, supplier_name, customer_contact, stock_number, stock_name, stock_manager, export_sales, warehousing_category, inspection_date, warehousing_date, remarks, inspection_report, confirm_flag, confirm_person, confirm_time, first_add_time, update_info_time, standby_one, standby_two from warehousing_inspection_notice
insert into warehousing_inspection_notice
in_notice_number,
purchase_order_number,
supplier_code,
supplier_name,
customer_contact,
stock_number,
stock_name,
stock_manager,
export_sales,
warehousing_category,
inspection_date,
warehousing_date,
remarks,
inspection_report,
confirm_flag,
confirm_person,
confirm_time,
standby_one,
standby_two,
first_add_time,
#{inNoticeNumber},
#{purchaseOrderNumber},
#{supplierCode},
#{supplierName},
#{customerContact},
#{stockNumber},
#{stockName},
#{stockManager},
#{exportSales},
#{warehousingCategory},
#{inspectionDate},
#{warehousingDate},
#{remarks},
#{inspectionReport},
#{confirmFlag},
#{confirmPerson},
#{confirmTime},
#{standbyOne},
#{standbyTwo},
now(),
update warehousing_inspection_notice
in_notice_number = #{inNoticeNumber},
purchase_order_number = #{purchaseOrderNumber},
supplier_code = #{supplierCode},
supplier_name = #{supplierName},
customer_contact = #{customerContact},
stock_number = #{stockNumber},
stock_name = #{stockName},
stock_manager = #{stockManager},
export_sales = #{exportSales},
warehousing_category = #{warehousingCategory},
inspection_date = #{inspectionDate},
warehousing_date = #{warehousingDate},
remarks = #{remarks},
inspection_report = #{inspectionReport},
confirm_flag = #{confirmFlag},
confirm_person = #{confirmPerson},
confirm_time = #{confirmTime},
update_info_time = CONCAT_WS(',',NOW(),update_info_time),
where warehousing_inspection_notice_id = #{warehousingInspectionNoticeId}
delete from warehousing_inspection_notice where warehousing_inspection_notice_id = #{warehousingInspectionNoticeId}
delete from warehousing_inspection_notice where warehousing_inspection_notice_id in
#{warehousingInspectionNoticeId}