2026-02-05 18:06:13 +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.WmsShipmentMaterialCodeItemQrMapper">
|
|
|
|
|
|
2026-04-29 16:47:53 +08:00
|
|
|
<select id="getQRCodeByParams" resultType="string">
|
|
|
|
|
SELECT qr.no
|
|
|
|
|
FROM wms_shipment_material_code_item_qr qr
|
|
|
|
|
INNER JOIN wms_shipment_material_code_item it ON qr.item_id=it."id"
|
|
|
|
|
INNER JOIN wms_shipment_material_code mc ON mc."id"=it.material_code_id
|
|
|
|
|
<where>
|
|
|
|
|
<if test="materialNo!=null and materialNo!=''">
|
|
|
|
|
and it.material_no=#{materialNo}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="deviceNo!=null and deviceNo!=''">
|
|
|
|
|
and mc.device_no=#{deviceNo}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="productionOrderNumber!=null and productionOrderNumber!=''">
|
|
|
|
|
and it.production_order_number=#{productionOrderNumber}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="status!=null and status!=''">
|
|
|
|
|
and it.status=#{status}
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|
2026-02-05 18:06:13 +08:00
|
|
|
<select id="getInfoByQRCode" resultType="com.nflg.wms.common.pojo.vo.ShipmentMaterialCodeQRVO">
|
2026-02-10 21:38:01 +08:00
|
|
|
SELECT qr.id,qr.no,it.material_no,it.material_describe,qr.num,it.unit,qr.status,mc.device_no,mc.customer_name
|
2026-02-05 18:06:13 +08:00
|
|
|
FROM wms_shipment_material_code_item_qr qr
|
|
|
|
|
INNER JOIN wms_shipment_material_code_item it ON qr.item_id=it."id"
|
2026-02-10 21:38:01 +08:00
|
|
|
INNER JOIN wms_shipment_material_code mc ON mc."id"=it.material_code_id
|
2026-02-05 18:06:13 +08:00
|
|
|
where qr.no=#{code}
|
|
|
|
|
</select>
|
2026-02-10 21:38:01 +08:00
|
|
|
|
|
|
|
|
<select id="getListVOByItemIds" resultType="com.nflg.wms.common.pojo.vo.ShipmentMaterialCodeQRVO">
|
|
|
|
|
SELECT qr.id,qr.no,it.material_no,it.material_describe,qr.num,it.unit,qr.status,mc.device_no,mc.customer_name
|
|
|
|
|
FROM wms_shipment_material_code_item_qr qr
|
|
|
|
|
INNER JOIN wms_shipment_material_code_item it ON qr.item_id=it."id"
|
|
|
|
|
INNER JOIN wms_shipment_material_code mc ON mc."id"=it.material_code_id
|
|
|
|
|
where it.id in
|
|
|
|
|
<foreach item="item" collection="ids" separator="," open="(" close=")">
|
|
|
|
|
#{item}
|
|
|
|
|
</foreach>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="getListVOByCodeIds" resultType="com.nflg.wms.common.pojo.vo.ShipmentMaterialCodeQRVO">
|
|
|
|
|
SELECT qr.id,qr.no,it.material_no,it.material_describe,qr.num,it.unit,qr.status,mc.device_no,mc.customer_name
|
|
|
|
|
FROM wms_shipment_material_code_item_qr qr
|
|
|
|
|
INNER JOIN wms_shipment_material_code_item it ON qr.item_id=it."id"
|
|
|
|
|
INNER JOIN wms_shipment_material_code mc ON mc."id"=it.material_code_id
|
|
|
|
|
where mc.id in
|
|
|
|
|
<foreach item="item" collection="ids" separator="," open="(" close=")">
|
|
|
|
|
#{item}
|
|
|
|
|
</foreach>
|
|
|
|
|
</select>
|
2026-02-05 18:06:13 +08:00
|
|
|
</mapper>
|