select stock_check_detail_id, stock_check_guid, stock_check_id, lot_no, product_guid, product_id, quantity, quantity_x, quantity_j, price, cargo_no, remark, assign_num, assign_num_x, assign_num_j, print_date, stock_status, supplier_id, customer_id, unit, spec, scan_num, scan_num_x, scan_num_j, spare1, spare2, spare3, spare4, spare5, spare6 from check_stockin_detail insert into check_stockin_detail stock_check_detail_id, stock_check_guid, stock_check_id, lot_no, product_guid, product_id, quantity, quantity_x, quantity_j, price, cargo_no, remark, assign_num, assign_num_x, assign_num_j, print_date, stock_status, supplier_id, customer_id, unit, spec, scan_num, scan_num_x, scan_num_j, spare1, spare2, spare3, spare4, spare5, spare6, #{stockCheckDetailId}, #{stockCheckGuid}, #{stockCheckId}, #{lotNo}, #{productGuid}, #{productId}, #{quantity}, #{quantityX}, #{quantityJ}, #{price}, #{cargoNo}, #{remark}, #{assignNum}, #{assignNumX}, #{assignNumJ}, #{printDate}, #{stockStatus}, #{supplierId}, #{customerId}, #{unit}, #{spec}, #{scanNum}, #{scanNumX}, #{scanNumJ}, #{spare1}, #{spare2}, #{spare3}, #{spare4}, #{spare5}, #{spare6}, update check_stockin_detail stock_check_guid = #{stockCheckGuid}, stock_check_id = #{stockCheckId}, lot_no = #{lotNo}, product_guid = #{productGuid}, product_id = #{productId}, quantity = #{quantity}, quantity_x = #{quantityX}, quantity_j = #{quantityJ}, price = #{price}, cargo_no = #{cargoNo}, remark = #{remark}, assign_num = #{assignNum}, assign_num_x = #{assignNumX}, assign_num_j = #{assignNumJ}, print_date = #{printDate}, stock_status = #{stockStatus}, supplier_id = #{supplierId}, customer_id = #{customerId}, unit = #{unit}, spec = #{spec}, scan_num = #{scanNum}, scan_num_x = #{scanNumX}, scan_num_j = #{scanNumJ}, spare1 = #{spare1}, spare2 = #{spare2}, spare3 = #{spare3}, spare4 = #{spare4}, spare5 = #{spare5}, spare6 = #{spare6}, where stock_check_detail_id = #{stockCheckDetailId} delete from check_stockin_detail where stock_check_detail_id = #{stockCheckDetailId} delete from check_stockin_detail where stock_check_detail_id in #{stockCheckDetailId}