update wms_outstock_record set return_flag= '1' where outstock_record_id = #{warehouseId} INSERT INTO wms_psm_in_load (tooling_barcode, material_id, material_spe, check_grade_code, load_amount, material_code) VALUES (#{wmsPsmInLoad.toolingBarcode}, null, null, null, #{wmsPsmInLoad.loadAmount}, null); INSERT INTO wms_psm_in_load_detail (in_load_id, material_id, material_spe, tyre_no, check_grade_code) VALUES ( #{id}, null, null,#{item}, null) INSERT INTO wms_psm_in_stock_detail (in_stock_id, material_id, material_spe, tyre_no, check_grade_code) VALUES (#{id}, #{item.materialId}, #{item.materialSpe}, #{item.tyreNo},#{item.checkGradeCode} ) INSERT INTO wms_psm_storage (create_by, material_id, material_spe, tyre_no, check_grade_code, store_name, store_place_code, tooling_barcode) VALUES (#{data.createBy}, #{item.materialId}, #{item.materialSpe}, #{item.tyreNo},#{item.checkGradeCode},#{data.storeName}, #{data.storePlaceCode},#{data.toolingBarcode}) INSERT INTO prod_shift_change (shift_id, class_team_id, user_id, user_name, shift_change_time, create_by, create_time) VALUES (#{shiftId}, #{classTeamId}, #{userId}, #{userName}, getdate(), #{userId}, getdate());