2025-09-30 17:00:12 +08:00
|
|
|
<?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.nflg.wms.repository.mapper.WmsInventoryBarcodePrintingMapper">
|
|
|
|
|
|
|
|
|
|
<select id="search" resultType="com.nflg.wms.common.pojo.vo.BarcodePrintingVO">
|
|
|
|
|
SELECT
|
|
|
|
|
id,
|
|
|
|
|
material_no,
|
|
|
|
|
material_des,
|
|
|
|
|
unit,
|
|
|
|
|
qty,
|
|
|
|
|
batch_number,
|
|
|
|
|
serial_numbers,
|
|
|
|
|
packing_num,
|
|
|
|
|
create_by,
|
|
|
|
|
create_time,
|
|
|
|
|
update_by,
|
|
|
|
|
update_time
|
|
|
|
|
FROM
|
|
|
|
|
wms_inventory_barcode_printing
|
|
|
|
|
<where>
|
2025-10-10 10:13:15 +08:00
|
|
|
<if test="request.materialNos != null and request.materialNos != ''">
|
2025-09-30 17:00:12 +08:00
|
|
|
AND material_no IN
|
|
|
|
|
<foreach item="materialNo" index="index" collection="request.materialNos.split(',')"
|
|
|
|
|
open="(" separator="," close=")">
|
|
|
|
|
#{materialNo}
|
|
|
|
|
</foreach>
|
|
|
|
|
</if>
|
2025-10-10 10:13:15 +08:00
|
|
|
<if test="request.batchNumbers != null and request.batchNumbers != ''">
|
2025-09-30 17:00:12 +08:00
|
|
|
AND batch_number IN
|
|
|
|
|
<foreach item="batchNo" index="index" collection="request.batchNumbers.split(',')"
|
|
|
|
|
open="(" separator="," close=")">
|
|
|
|
|
#{batchNo}
|
|
|
|
|
</foreach>
|
|
|
|
|
</if>
|
2025-10-10 10:13:15 +08:00
|
|
|
<if test="request.serialNumber != null and request.serialNumber != ''">
|
|
|
|
|
AND serial_numbers LIKE CONCAT('%', #{request.serialNumber}, '%')
|
2025-09-30 17:00:12 +08:00
|
|
|
</if>
|
|
|
|
|
<if test="request != null and request.materialDes != null and request.materialDes != ''">
|
|
|
|
|
AND material_des LIKE CONCAT('%', #{request.materialDes}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="request != null and request.startDate != null">
|
|
|
|
|
AND create_time >= #{request.startDate}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="request != null and request.endDate != null">
|
|
|
|
|
AND create_time <= #{request.endDate}
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
order by
|
|
|
|
|
id desc
|
|
|
|
|
</select>
|
|
|
|
|
</mapper>
|