一楼入库调度逻辑

This commit is contained in:
liuhanqing
2025-09-24 10:30:19 +08:00
parent d3c0031291
commit 00dc18ca9e
14 changed files with 340 additions and 132 deletions

View File

@@ -182,4 +182,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="jobId != null and jobId != ''"> and job_id = #{jobId}</if>
</where>
</select>
<select id="selectMydoJobByEntranceList" resultMap="MydoJobResult">
select TOP 1 job_id, status, task_no, roadway_id, cargo_space_id, target_roadway_id, target_cargo_space_id, priority, execution_phase, in_or_out, create_time, start_time, finish_time, entrance_id, exit_id, warehouse_id, fault_flag from mydo_job_wcs
where entrance_id in
<foreach item="item" index="index" collection="entranceList" separator="," open="(" close=")">
#{item}
</foreach>
and in_or_out &lt;= 20 ans status = 3
order by priority desc,create_time desc
</select>
</mapper>