| | |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public synchronized R generateTasks(PdaGeneralParam param, Long loginUserId) { |
| | | |
| | | // DeviceSite deviceSite = deviceSiteService.getOne(new LambdaQueryWrapper<DeviceSite>().eq(DeviceSite::getSite,param.getTransferStationNo()).orderByDesc(DeviceSite::getId),false); |
| | | // DeviceSite deviceSite = deviceSiteService.getOne(new LambdaQueryWrapper<DeviceSite>().eq(DeviceSite::getSite,param.getTransferStationNo()).orderByDesc(DeviceSite::getId) |
| | | // .last("LIMIT 1")); |
| | | // if (Objects.isNull(deviceSite)) { |
| | | // throw new CoolException("站点不存在!!"); |
| | | // } |
| | |
| | | BasStation stationCode = basStationService.getById(deviceSite.getDeviceCode()); |
| | | String stationName = stationCode.getStationName(); |
| | | if (Cools.isEmpty(stationCode)) { |
| | | stationName = "无"; |
| | | stationName = station.getStationName(); |
| | | } |
| | | Task task = new Task(); |
| | | task.setTaskCode(ruleCode) |