| | |
| | | private String targLocArea; |
| | | |
| | | private String targSiteAreaNow; |
| | | @TableField(exist = false) |
| | | private String taskStatus$; |
| | | |
| | | @TableField(exist = false) |
| | | private String warehType$; |
| | | |
| | | @TableField(exist = false) |
| | | private String orgSite$; |
| | | |
| | | @TableField(exist = false) |
| | | private String targSite$; |
| | | |
| | | |
| | | |
| | | public Task() {} |
| | | |
| | |
| | | // null // 备注 |
| | | // ); |
| | | |
| | | // public String getParentId$() { |
| | | // if (Cools.isEmpty(this.parentId)) { |
| | | // return null; |
| | | // } |
| | | // TaskService taskService = SpringUtils.getBean(TaskService.class); |
| | | // Task task = taskService.getById(this.parentId); |
| | | // return task.getTaskCode(); |
| | | // } |
| | | |
| | | |
| | | public String getTaskStatus$(){ |
| | | if (Cools.isEmpty(this.taskStatus)) { |
| | | return null; |
| | | } |
| | | DictDataService dictDataService = SpringUtils.getBean(DictDataService.class); |
| | | DictData dictDatas = dictDataService.getOne(new LambdaQueryWrapper<DictData>() |
| | | .eq(DictData::getDictTypeCode, DictTypeCode.DICT_SYS_TASK_STATUS) |
| | | .eq(DictData::getValue, this.taskStatus)); |
| | | if (Objects.isNull(dictDatas) || Objects.isNull(dictDatas.getLabel())) { |
| | | return null; |
| | | } |
| | | return dictDatas.getValue() + "." + dictDatas.getLabel(); |
| | | return this.taskStatus$; |
| | | } |
| | | |
| | | public String getWarehType$(){ |
| | | if (null == this.warehType){ return null; } |
| | | DictDataService dictDataService = SpringUtils.getBean(DictDataService.class); |
| | | DictData dictDatas = dictDataService.getOne(new LambdaQueryWrapper<DictData>() |
| | | .eq(DictData::getDictTypeCode, DictTypeCode.DICT_SYS_DEVICE_TYPE) |
| | | .eq(DictData::getValue, warehType)); |
| | | if (Objects.isNull(dictDatas)) { |
| | | return null; |
| | | } |
| | | return dictDatas.getLabel(); |
| | | return this.warehType$; |
| | | } |
| | | |
| | | public String getTaskType$() { |
| | |
| | | * 获取源站点名称(站点编号 + 站点名称) |
| | | */ |
| | | public String getOrgSite$(){ |
| | | if (Cools.isEmpty(this.orgSite)) { |
| | | return this.orgSite; |
| | | } |
| | | BasStationService basStationService = SpringUtils.getBean(BasStationService.class); |
| | | BasStation station = basStationService.getOne(new LambdaQueryWrapper<BasStation>() |
| | | .eq(BasStation::getStationName, this.orgSite)); |
| | | if (!Cools.isEmpty(station) && !Cools.isEmpty(station.getStationId())) { |
| | | return this.orgSite + "(" + station.getStationId() + ")"; |
| | | } |
| | | return this.orgSite; |
| | | return this.orgSite$; |
| | | } |
| | | |
| | | /** |
| | | * 获取目标站点名称(站点编号 + 站点名称) |
| | | */ |
| | | public String getTargSite$(){ |
| | | if (Cools.isEmpty(this.targSite)) { |
| | | return this.targSite; |
| | | } |
| | | BasStationService basStationService = SpringUtils.getBean(BasStationService.class); |
| | | BasStation station = basStationService.getOne(new LambdaQueryWrapper<BasStation>() |
| | | .eq(BasStation::getStationName, this.targSite)); |
| | | if (!Cools.isEmpty(station) && !Cools.isEmpty(station.getStationId())) { |
| | | return this.targSite + "(" + station.getStationId() + ")"; |
| | | } |
| | | return this.targSite; |
| | | return this.targSite$; |
| | | } |
| | | |
| | | } |