fix:浅位优先策略逻辑调整

This commit is contained in:
2026-11-18 15:49:55 +08:00
parent 9f249b3a29
commit ad59ece160

View File

@@ -71,10 +71,7 @@
LEFT JOIN md_pb_groupplate sub_gro ON sub_ivt.storagevehicle_code = sub_gro.storagevehicle_code
WHERE
sub_ivt.row_num IN (2,3)
AND sub_gro.material_id = gro.material_id
AND sub_gro.pcsn = gro.pcsn
AND sub_gro.qty > 0
AND sub_ivt.stor_code = ivt.stor_code
AND sub_ivt.sect_code = ivt.sect_code
<if test="inv_code != null and inv_code != ''">
AND (sub_ivt.lock_type = '0' OR sub_ivt.inv_code = #{inv_code})