INSERT ignore into record_in (epc_code, batch_code, location_code,manufacturer_id, manufacturer_Name, create_by,create_time) VALUES (#{item},#{inStore.binchCode},#{inStore.selectLocationText},#{inStore.manufacturerId},#{inStore.selectManuText},#{inStore.submitUser},now()) INSERT ignore into ledger_rfid (manufacturer_id, rifd_code, batch_code, location_code) VALUES (#{inStore.manufacturerId},#{item},#{inStore.binchCode},#{inStore.selectLocationText}) INSERT INTO record_out (epc_code, location_code, use_user, create_by) VALUES ( #{epc}, #{outStoreDto.areaCode}, #{outStoreDto.useUser}, #{outStoreDto.submitUser} ) UPDATE ledger_rfid SET location_type = '2', location_code = #{outStoreDto.areaCode}, update_time = now() WHERE rifd_code in #{epc} UPDATE ledger_rfid SET location_type = '2', location_code = #{outStoreDto.areaCode}, update_time = now() WHERE rifd_code =#{epc} INSERT INTO record_store_check_info (check_id, epc_code, location_code, check_state) VALUES (#{id}, #{item.epcCode},#{item.locationCode},#{item.state}) UPDATE ledger_rfid SET is_scrap = #{state}, update_time=now() WHERE rifd_code = #{epc} INSERT INTO record_waste_in (epc, location_code, bf_time, in_code, create_by) VALUES (#{epc}, #{localtionCode}, #{bf}, #{subCode}, #{user}); UPDATE ledger_rfid SET location_type = '1', location_code = #{code}, update_time = now() WHERE rifd_code = #{epc} INSERT INTO record_inspection_info (inspection_id, epc_code, location_code, inspection_state, inspection_remark) VALUES (#{id}, #{item.epcCode},#{item.locationCode},#{item.state}, #{item.remark}) INSERT INTO record_waste_out (epc_code, location_code, create_by) VALUES ( #{item.epcCode},#{item.locationCode},#{user}) UPDATE ledger_rfid SET location_type = null, location_code = null, is_scrap = '3', update_time = now() rifd_code in #{item.epcCode} INSERT INTO record_inspection_task (inspection_id, area_id,area_name, plane_position) VALUES (#{id}, #{data.id}, #{data.areaName}, #{data.locationCode}) UPDATE record_inspection_task SET task_state = '完成' WHERE objid = #{tableId}; INSERT INTO record_inspection_img (inspection_id, task_id, img_path, create_by) VALUES (#{inspetionId},#{tableId}, #{pathName}, #{user}); INSERT INTO bg_wheel_chocks.record_invalidated_img (invalidated_id, epc, img_path, create_by) VALUES (#{objid}, #{epc},#{pathName},#{user});