盘点测试修改

This commit is contained in:
liuhanqing
2025-10-11 13:15:37 +08:00
parent f5c7552799
commit 4d4a381b0c
6 changed files with 22 additions and 3 deletions

View File

@@ -79,4 +79,6 @@ public interface MydoJobMapper
MydoJob selectMydoJobByEntranceList(@Param("entranceList") List<String> entranceList); MydoJob selectMydoJobByEntranceList(@Param("entranceList") List<String> entranceList);
List<MydoJob> selectMydoJobFinishList(MydoJob mydoJob); List<MydoJob> selectMydoJobFinishList(MydoJob mydoJob);
MydoJob selectRunningMydoJobByExitList(@Param("exitList") List<String> exitList);
} }

View File

@@ -74,4 +74,6 @@ public interface IMydoJobService
MydoJob selectMydoJobByEntranceList(List<String> entranceList); MydoJob selectMydoJobByEntranceList(List<String> entranceList);
List<MydoJob> selectMydoJobFinishList(MydoJob mydoJob); List<MydoJob> selectMydoJobFinishList(MydoJob mydoJob);
MydoJob selectRunningMydoJobByExitList(List<String> strings);
} }

View File

@@ -152,4 +152,9 @@ public class MydoJobServiceImpl implements IMydoJobService
public List<MydoJob> selectMydoJobFinishList(MydoJob mydoJob) { public List<MydoJob> selectMydoJobFinishList(MydoJob mydoJob) {
return mydoJobMapper.selectMydoJobFinishList(mydoJob); return mydoJobMapper.selectMydoJobFinishList(mydoJob);
} }
@Override
public MydoJob selectRunningMydoJobByExitList(List<String> exitList) {
return mydoJobMapper.selectRunningMydoJobByExitList(exitList);
}
} }

View File

@@ -136,7 +136,7 @@ public class Floor1BothWayInSsjThread implements Runnable {
private void dispatch2(DeviceSsj ssj) { private void dispatch2(DeviceSsj ssj) {
if (ssj.getDw() == 1 && ssj.getTaskNo() > 0 && ssj.getTaskNo() < 1000 && ssj.getTraySize() != 0) { if (ssj.getDw() == 1 && ssj.getTaskNo() > 0 && ssj.getTaskNo() < 1000 && ssj.getTraySize() != 0) {
//先检测有没有出库作业,有出库作业直接退回 //先检测有没有出库作业,有出库作业直接退回
MydoJob outMydoJob = mydoJobService.selectMydoJobByExitList(Collections.singletonList(ssj.getDeviceCode())); MydoJob outMydoJob = mydoJobService.selectRunningMydoJobByExitList(Collections.singletonList(ssj.getDeviceCode()));
String l2012WriteAddress = "DB501.20"; String l2012WriteAddress = "DB501.20";
String l2013WriteAddress = "DB501.30"; String l2013WriteAddress = "DB501.30";
if (ObjUtil.isNotNull(outMydoJob) || StrUtil.isEmpty(ssj.getTrayCode())) { if (ObjUtil.isNotNull(outMydoJob) || StrUtil.isEmpty(ssj.getTrayCode())) {

View File

@@ -159,7 +159,7 @@ public class Floor1SingleSsjThread implements Runnable {
log.error("货位不存在 cargoSpaceId{}", mydoJob.getCargoSpaceId()); log.error("货位不存在 cargoSpaceId{}", mydoJob.getCargoSpaceId());
} else { } else {
//生成队列 //生成队列
List<DdjDeviceExecutionQueue> list = ddjDeviceExecutionQueueService.selectDdjDeviceExecutionQueueListByRwlx(DDJ_RWLX_2, Convert.toInt(mydoJob)); List<DdjDeviceExecutionQueue> list = ddjDeviceExecutionQueueService.selectDdjDeviceExecutionQueueListByRwlx(DDJ_RWLX_2, Convert.toInt(mydoJob.getRoadwayId()));
List<Integer> pclList = roadwayMap.get(ssj.getDeviceCode()); List<Integer> pclList = roadwayMap.get(ssj.getDeviceCode());
if (CollUtil.isEmpty(list) && CollUtil.isNotEmpty(pclList)) { if (CollUtil.isEmpty(list) && CollUtil.isNotEmpty(pclList)) {
DdjDeviceExecutionQueue ddjDeviceExecutionQueue = new DdjDeviceExecutionQueue(); DdjDeviceExecutionQueue ddjDeviceExecutionQueue = new DdjDeviceExecutionQueue();

View File

@@ -85,7 +85,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</foreach> </foreach>
and in_or_out > 20 and in_or_out > 20
and status = 1 and execution_phase= 0 and status = 1 and execution_phase= 0
order by priority desc,create_time desc order by priority desc,create_time
</select> </select>
<insert id="insertMydoJob" parameterType="MydoJob"> <insert id="insertMydoJob" parameterType="MydoJob">
@@ -220,4 +220,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="faultFlag != null and faultFlag != ''"> and fault_flag = #{faultFlag}</if> <if test="faultFlag != null and faultFlag != ''"> and fault_flag = #{faultFlag}</if>
</where> </where>
</select> </select>
<select id="selectRunningMydoJobByExitList" 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 exit_id in
<foreach item="item" index="index" collection="exitList" separator="," open="(" close=")">
#{item}
</foreach>
and in_or_out > 20
and status = 3
order by priority desc,create_time
</select>
</mapper> </mapper>