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.
46 lines
1.6 KiB
XML
46 lines
1.6 KiB
XML
4 years ago
|
<?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.glxp.api.admin.dao.inout.CodesTempDao">
|
||
|
|
||
|
|
||
|
<insert id="insertCodesTemp" parameterType="java.util.List">
|
||
|
INSERT INTO io_codes_temp
|
||
|
(action, mainAction,code, corpOrderId, actor,actDate,
|
||
|
fromCorpID, fromCorp, orderId,batchNo,produceDate,expireDate,serialNo,udi,count)
|
||
|
VALUES
|
||
|
<foreach collection="codes" item="item" index="index"
|
||
|
separator=",">
|
||
|
(
|
||
|
#{item.action},
|
||
|
#{item.mainAction},
|
||
|
#{item.code},
|
||
|
#{item.corpOrderId},
|
||
|
#{item.actor},
|
||
|
#{item.actDate},
|
||
|
#{item.fromCorpID},
|
||
|
#{item.fromCorp},
|
||
|
#{item.orderId}
|
||
|
,#{item.batchNo}
|
||
|
,#{item.produceDate}
|
||
|
,#{item.expireDate}
|
||
|
,#{item.serialNo}
|
||
|
,#{item.udi}
|
||
|
,#{item.count}
|
||
|
)
|
||
|
</foreach>
|
||
|
</insert>
|
||
|
<select id="findByOrderId" parameterType="com.glxp.api.admin.req.inout.WarehouseQueryRequest"
|
||
|
resultType="com.glxp.api.admin.entity.inout.WarehouseEntity">
|
||
|
SELECT *
|
||
|
FROM io_codes_temp
|
||
|
where `orderId` = #{orderId} AND code LIKE concat('%',#{code},'%')
|
||
|
</select>
|
||
|
|
||
|
<delete id="deleteCodesTemp" parameterType="java.util.List">
|
||
|
DELETE FROM io_codes_temp WHERE id IN
|
||
|
<foreach collection="codes" item="item" open="(" separator="," close=")">
|
||
|
#{item}
|
||
|
</foreach>
|
||
|
</delete>
|
||
|
</mapper>
|