盘点模块修改
This commit is contained in:
@@ -653,19 +653,27 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
AND is_chuku = '0'
|
||||
</select>
|
||||
|
||||
<select id="getUnscannedPcodeByWh" resultType="com.zg.project.Inventory.domain.vo.RkInfoMatchVO">
|
||||
<select id="getUnscannedPcodeByScene"
|
||||
resultType="com.zg.project.Inventory.domain.vo.RkInfoMatchVO">
|
||||
SELECT
|
||||
r.pcode AS rkPcode,
|
||||
r.real_qty AS realQty
|
||||
FROM rk_info r
|
||||
WHERE r.cangku = #{wh}
|
||||
AND r.pcode_id NOT IN (
|
||||
SELECT i.pcode
|
||||
FROM inventory_match_scan i
|
||||
WHERE i.task_id = #{taskId}
|
||||
AND i.status = '0' <!-- 过滤掉扫描成功的 -->
|
||||
)
|
||||
ORDER BY r.create_time DESC
|
||||
r.pcode AS rkPcode,
|
||||
COALESCE(SUM(r.real_qty), 0) AS realQty
|
||||
FROM pcde_detail d
|
||||
JOIN rk_info r
|
||||
ON r.pcode = d.pcode
|
||||
LEFT JOIN (
|
||||
SELECT DISTINCT pcode
|
||||
FROM inventory_match_scan
|
||||
WHERE task_id = #{taskId}
|
||||
AND status = '0'
|
||||
) s
|
||||
ON s.pcode = r.pcode
|
||||
WHERE (d.is_delete IS NULL OR d.is_delete = '0')
|
||||
AND d.scene = #{sceneId}
|
||||
AND r.is_chuku = '0'
|
||||
AND s.pcode IS NULL
|
||||
GROUP BY r.pcode
|
||||
ORDER BY MAX(r.create_time) DESC
|
||||
</select>
|
||||
|
||||
<select id="selectPcdeCntFromRkInfo" resultType="com.zg.project.Inventory.domain.vo.PcdeCntVO">
|
||||
|
||||
Reference in New Issue
Block a user