| | |
| | | if (StringUtils.isBlank(ruleCode)) { |
| | | throw new CoolException("编码错误:请确认编码「SYS_TASK_CODE」是否已生成!!"); |
| | | } |
| | | String stationName = null; |
| | | if (Cools.isEmpty(deviceSite.getDeviceCode())) { |
| | | stationName = station.getStationName(); |
| | | } else { |
| | | BasStation stationCode = basStationService.getById(deviceSite.getDeviceCode()); |
| | | String stationName = stationCode.getStationName(); |
| | | stationName = stationCode.getStationName(); |
| | | if (Cools.isEmpty(stationCode)) { |
| | | stationName = station.getStationName(); |
| | | } |
| | | } |
| | | Task task = new Task(); |
| | | task.setTaskCode(ruleCode) |
| | | .setTaskStatus(TaskStsType.GENERATE_IN.id) |