hangzhoumesParent/moduleService/hollowGlassModule/src/main/java/com/mes/hollow/controller/HollowGlassOutRelationInfoController.java
@@ -97,6 +97,12 @@ return Result.build(200, "修改成功", hollowGlassOutRelationInfoService.dispatchHollowSwitch(flag)); } @ApiOperation("中空优先级开关") @PostMapping("/priorityHollowSwitch") public Result<Boolean> priorityHollowSwitch(Boolean flag) { return Result.build(200, "修改成功", hollowGlassOutRelationInfoService.priorityHollowSwitch(flag)); } @ApiOperation("手动生成李赛克文件") @PostMapping("/generateHollowLisecFile") public Result<String> generateHollowLisecFile(String flowCardId, int cell, int isForce) throws IOException { hangzhoumesParent/moduleService/hollowGlassModule/src/main/java/com/mes/hollow/service/HollowGlassOutRelationInfoService.java
@@ -25,6 +25,8 @@ Boolean dispatchHollowSwitch(Boolean flag); Boolean priorityHollowSwitch(Boolean flag); List<String> hollowTaskList(int cell); List<HollowGlassQueueInfo> appointHollowTaskDetails(String flowCardId, int cell); hangzhoumesParent/moduleService/hollowGlassModule/src/main/java/com/mes/hollow/service/impl/HollowGlassOutRelationInfoServiceImpl.java
@@ -97,6 +97,12 @@ } @Override public Boolean priorityHollowSwitch(Boolean flag) { redisUtil.setCacheObject("priorityHollowSwitch", flag); return redisUtil.getCacheObject("priorityHollowSwitch"); } @Override public List<String> hollowTaskList(int cell) { //查询任务表中本条线所有未完成的任务信息 List<HollowGlassOutRelationInfo> list = this.list(new LambdaQueryWrapper<HollowGlassOutRelationInfo>() hangzhoumesParent/moduleService/hollowGlassModule/src/main/java/com/mes/job/OpcPlcStorageCageHollowTask.java
@@ -103,6 +103,9 @@ private static final String BIG_STORAGE_CAGE_IN_TWO_TASK = "big_storage_cage_in_two_task"; private static final String BIG_STORAGE_CAGE_OUT_TWO_TASK = "big_storage_cage_out_two_task"; private static final List<Integer> ONE_LINE_FIRST = Arrays.asList(930, 931, 932); private static final List<Integer> TWO_LINE_FIRST = Arrays.asList(931, 930, 932); /** * 直通格子 */ @@ -391,9 +394,15 @@ //nothing log.info("二/三线线空闲状态获取异常"); } List<Integer> resultList = new ArrayList<>(); if (redisUtil.getCacheObject("priorityHollowSwitch")) { resultList = TWO_LINE_FIRST; } else { resultList = ONE_LINE_FIRST; } HollowGlassOutRelationInfo hollowGlassOutRelationInfo = null; int cell = -1; for (int i = 930; i <= 932; i++) { for (Integer i : resultList) { if (null == hollowGlassOutRelationInfo) { Boolean entity = map.get(i); cell = i; @@ -408,7 +417,7 @@ break; } } for (int i = 930; i <= 932; i++) { for (Integer i : resultList) { if (null == hollowGlassOutRelationInfo) { cell = i; hollowGlassOutRelationInfo = hollowGlassOutRelationInfoService hangzhoumesParent/moduleService/hollowGlassModule/src/main/java/com/mes/job/PushMessageToIndex.java
@@ -5,7 +5,6 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.github.xingshuangs.iot.protocol.modbus.service.ModbusTcp; import com.github.xingshuangs.iot.protocol.s7.serializer.S7Serializer; import com.kangaroohy.milo.model.ReadWriteEntity; import com.kangaroohy.milo.service.MiloService; import com.mes.bigstoragecagetask.entity.BigStorageCageTask; import com.mes.bigstoragecagetask.entity.BigStorageTaskVO; @@ -332,6 +331,14 @@ dispatchHollowSwitch = redisUtil.getCacheObject("dispatchHollowSwitch"); } jsonObject.append("dispatchHollowSwitch", dispatchHollowSwitch); //调度开关 boolean priorityHollowSwitch = false; if (redisUtil.getCacheObject("priorityHollowSwitch") == null) { redisUtil.setCacheObject("priorityHollowSwitch", false); } else { dispatchHollowSwitch = redisUtil.getCacheObject("priorityHollowSwitch"); } jsonObject.append("dispatchHollowSwitch", dispatchHollowSwitch); //理片笼使用情况 List<Map<String, Object>> bigStorageCageUsage = hollowBigStorageCageService.selectBigStorageCageUsage();