2025-08-22 18:24:08 +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.WmsPoReceiptItemMapper">
|
|
|
|
|
|
|
|
|
|
<select id="getTask" resultType="com.nflg.wms.repository.entity.WmsPoReceipt">
|
2025-09-02 09:24:11 +08:00
|
|
|
select *
|
|
|
|
|
from wms_po_receipt
|
2025-09-24 16:38:58 +08:00
|
|
|
where is_completed=false and source_type=0
|
2025-09-02 09:24:11 +08:00
|
|
|
<if test="orederNo !=null and orederNo !='' ">
|
2025-09-26 11:51:04 +08:00
|
|
|
and (
|
|
|
|
|
order_no like concat('%', #{orederNo}, '%')
|
|
|
|
|
or in_num like concat('%', #{orederNo}, '%')
|
|
|
|
|
or exists (select 1 from wms_po_receipt_item where wms_po_receipt.id=wms_po_receipt_item.receive_id
|
|
|
|
|
and wms_po_receipt_item.po_num like concat('%', #{orederNo}, '%'))
|
|
|
|
|
)
|
2025-09-02 09:24:11 +08:00
|
|
|
</if>
|
|
|
|
|
order by id desc
|
2025-08-22 18:24:08 +08:00
|
|
|
</select>
|
2026-03-04 19:07:41 +08:00
|
|
|
|
|
|
|
|
<select id="getVOByReceiveId" resultType="com.nflg.wms.common.pojo.vo.PoReceiveTaskItemVO">
|
|
|
|
|
SELECT qri.*,qr.factory_code,wh.is_disable_location
|
|
|
|
|
FROM wms_qc_receive qr
|
|
|
|
|
INNER JOIN wms_qc_receive_item qri ON qr."id"=qri.receive_id
|
|
|
|
|
LEFT JOIN dictionary_item di ON qr.factory_code=di.code
|
|
|
|
|
LEFT JOIN wms_warehouse wh ON wh.factory_id=di."id" AND wh."no"=qri.received_warehouse
|
|
|
|
|
where qr.id=#{taskId}
|
|
|
|
|
</select>
|
2025-08-22 18:24:08 +08:00
|
|
|
</mapper>
|