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.
63 lines
1.8 KiB
XML
63 lines
1.8 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.glxp.udi.admin.dao.receipt.MipsBarcodeDao">
|
|
|
|
|
|
<select id="selectByOrderId" parameterType="Map" resultType="com.glxp.udi.admin.entity.receipt.MipsBarcodeEntity">
|
|
select * FROM mips_barcode WHERE orderId = #{orderId}
|
|
</select>
|
|
|
|
<select id="filterBarcodes" parameterType="com.glxp.udi.admin.req.receipt.MipsBarcodeRequest" resultType="com.glxp.udi.admin.entity.receipt.MipsBarcodeEntity">
|
|
select * FROM mips_barcode
|
|
|
|
<where>
|
|
<if test="orderId != '' and orderId!=null">
|
|
and orderId = #{orderId}
|
|
</if>
|
|
<if test="code != '' and code!=null">
|
|
and code like concat(#{code},'%')
|
|
</if>
|
|
|
|
</where>
|
|
</select>
|
|
|
|
<insert id="insertList" parameterType="java.util.List">
|
|
insert INTO mips_barcode
|
|
(
|
|
orderId,
|
|
code,
|
|
pCode,
|
|
packFlag,
|
|
codeLevel,
|
|
batchNo,
|
|
manufacturingDate,
|
|
expirationDate,
|
|
closeFlag,
|
|
comments,
|
|
count,
|
|
lastModifyTime
|
|
)
|
|
VALUES
|
|
<foreach collection="barcodeEntities" item="item" index="index"
|
|
separator=",">
|
|
(
|
|
#{item.orderId},
|
|
#{item.code},
|
|
#{item.pCode},
|
|
#{item.packFlag},
|
|
#{item.codeLevel},
|
|
#{item.batchNo},
|
|
#{item.manufacturingDate},
|
|
#{item.expirationDate},
|
|
#{item.closeFlag},
|
|
#{item.comments},
|
|
#{item.count},
|
|
#{item.lastModifyTime}
|
|
)
|
|
</foreach>
|
|
|
|
|
|
</insert>
|
|
</mapper>
|