出库调度优先取移库任务

This commit is contained in:
zgw
2026-08-11 13:06:55 +08:00
parent 3f38269a1f
commit 652607ce15

View File

@@ -262,7 +262,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
a.target_cargo_space_id,
ROW_NUMBER() OVER (
PARTITION BY b.the_floor, b.group_coding_no
ORDER BY a.create_time ASC,a.job_id ASC
ORDER BY CASE WHEN a.in_or_out = 30 THEN 0 ELSE 1 END, a.create_time ASC, a.job_id ASC
) AS rn
FROM mydo_job_wcs a
INNER JOIN bas_cargo_space b