| | |
| | | continue; |
| | | } |
| | | |
| | | if (System.currentTimeMillis() - crnProtocol.getLastCommandTime() < 1000 * 60 * 2) { |
| | | continue; |
| | | } |
| | | |
| | | List<WrkMast> wrkMasts = wrkMastService.selectList(new EntityWrapper<WrkMast>() |
| | | .eq("crn_no", crn.getId())); |
| | | if (!wrkMasts.isEmpty()) { |
| | |
| | | */ |
| | | private Integer crnLane = 1; |
| | | |
| | | /** |
| | | * 上一次指令下发时间 |
| | | */ |
| | | private Long lastCommandTime = System.currentTimeMillis(); |
| | | |
| | | public void setMode(Short mode) { |
| | | this.mode = mode; |
| | | this.modeType = CrnModeType.get(mode); |
| | |
| | | } while (i < 5); |
| | | } |
| | | |
| | | this.crnProtocol.setLastCommandTime(System.currentTimeMillis()); |
| | | try { |
| | | // 日志记录 |
| | | BasCrnOptService bean = SpringUtils.getBean(BasCrnOptService.class); |
| | |
| | | } while (i < 5); |
| | | } |
| | | |
| | | this.crnProtocol.setLastCommandTime(System.currentTimeMillis()); |
| | | try { |
| | | // 日志记录 |
| | | BasCrnOptService bean = SpringUtils.getBean(BasCrnOptService.class); |