You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
2.5 KiB
XML
60 lines
2.5 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.ruoyi.api.mapper.ApiMapper">
|
|
|
|
<insert id="submintInsertRecordIn">
|
|
INSERT ignore into bg_wheel_chocks.record_in (epc_code, batch_code, location_code,manufacturer_id,
|
|
manufacturer_Name,
|
|
create_by,create_time)
|
|
VALUES
|
|
<foreach collection="inStore.epclist" item="item" separator=",">
|
|
(#{item},#{inStore.binchCode},#{inStore.selectLocationText},#{inStore.manufacturerId},#{inStore.selectManuText},#{inStore.submitUser},now())
|
|
</foreach>
|
|
</insert>
|
|
<insert id="submintInsertLedger">
|
|
INSERT ignore into bg_wheel_chocks.ledger_rfid (manufacturer_id, rifd_code, batch_code, location_code)
|
|
VALUES
|
|
<foreach collection="inStore.epclist" item="item" separator=",">
|
|
(#{inStore.manufacturerId},#{item},#{inStore.binchCode},#{inStore.selectLocationText})
|
|
</foreach>
|
|
</insert>
|
|
|
|
<!-- -->
|
|
|
|
<insert id="submitInsertRecordOut">
|
|
INSERT INTO bg_wheel_chocks.record_out (epc_code, location_code, use_user, create_by) VALUES
|
|
<foreach collection="outStoreDto.epcList" item="epc" separator=",">
|
|
(#{epc}, #{outStoreDto.areaCode}, #{outStoreDto.useUser}, #{outStoreDto.submitUser})
|
|
</foreach>
|
|
</insert>
|
|
|
|
<update id="updataLedger">
|
|
UPDATE bg_wheel_chocks.ledger_rfid
|
|
SET
|
|
location_type = '2',
|
|
location_code = #{outStoreDto.areaCode},
|
|
update_time = now()
|
|
WHERE rifd_code in
|
|
<foreach collection="outStoreDto.epcList" item="epc" separator="," open="(" close=")">
|
|
#{epc}
|
|
</foreach>
|
|
</update>
|
|
|
|
<select id="storeCheckSelect" resultType="com.ruoyi.api.domain.StockDto">
|
|
select row_number() over (order by location_code) as 'index',
|
|
rifd_code as epcCode,
|
|
location_code as locationCode,
|
|
'N' as state
|
|
from ledger_rfid
|
|
where location_type = 1
|
|
and is_scrap = 1
|
|
</select>
|
|
|
|
<insert id="insertCheckInfo">
|
|
INSERT INTO bg_wheel_chocks.record_store_check_info (check_id, epc_code, location_code, check_state)
|
|
VALUES
|
|
<foreach collection="list" item="item" separator=",">
|
|
(#{id}, #{item.epcCode},#{item.locationCode},#{item.state})
|
|
</foreach>
|
|
</insert>
|
|
</mapper> |