INSERT ignore into bg_wheel_chocks.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 bg_wheel_chocks.ledger_rfid (manufacturer_id, rifd_code, batch_code, location_code) VALUES (#{inStore.manufacturerId},#{item},#{inStore.binchCode},#{inStore.selectLocationText}) INSERT INTO bg_wheel_chocks.record_out (epc_code, location_code, use_user, create_by) VALUES (#{epc}, #{outStoreDto.areaCode}, #{outStoreDto.useUser}, #{outStoreDto.submitUser}) UPDATE bg_wheel_chocks.ledger_rfid SET location_type = '2', location_code = #{outStoreDto.areaCode}, update_time = now() WHERE rifd_code in #{epc} INSERT INTO bg_wheel_chocks.record_store_check_info (check_id, epc_code, location_code, check_state) VALUES (#{id}, #{item.epcCode},#{item.locationCode},#{item.state}) UPDATE bg_wheel_chocks.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 bg_wheel_chocks.record_waste_out (epc_code, location_code, create_by) VALUES ( #{item.epcCode},#{item.locationCode},#{user}) UPDATE bg_wheel_chocks.ledger_rfid SET location_type = null, location_code = null, is_scrap = '3', update_time = now() rifd_code in #{item.epcCode}