盘点部分数据错误问题

This commit is contained in:
2026-03-10 10:52:31 +08:00
parent 8ceaeb03ef
commit 424aac6748
8 changed files with 72 additions and 23 deletions

View File

@@ -637,7 +637,7 @@
AND ri.is_delete = '0'
AND ri.is_chuku = '0'
AND ri.cangku = #{warehouseCode}
AND pd.scene = #{sceneId}
AND ri.scene = #{sceneId}
</select>
<select id="listRkInfoByPcodes"
@@ -667,4 +667,14 @@
AND wl_no = #{wlNo}
AND xm_no = #{xmNo}
</update>
<select id="countByWarehouseAndScene" resultType="int">
SELECT COUNT(1)
FROM rk_info ri
WHERE ri.exec_status = 1
AND ri.is_delete = '0'
AND ri.is_chuku = '0'
AND ri.cangku = #{warehouseCode}
AND ri.scene = #{sceneId}
</select>
</mapper>

View File

@@ -290,7 +290,7 @@
ORDER BY
rr.exec_status = '0' DESC,
rr.create_time ASC,
gj.gys_jh_id ASC
gys_jh_id ASC
</select>
<select id="selectRkRecordByIds" resultMap="RkRecordResult">