|
|
@ -70,14 +70,14 @@ public class ScreenProjectServiceImpl implements ScreenProjectService { |
|
|
|
@Override |
|
|
|
@DataSource(value = DataSourceConstant.EVALUATION_INDEX, datasourceNameFromArg = true) |
|
|
|
public Result projectDistribution(ScreenProjectDistributionFormDTO formDTO) { |
|
|
|
if(StringUtils.isBlank(formDTO.getStatus())){ |
|
|
|
formDTO.setStatus("pending"); |
|
|
|
} |
|
|
|
// 1:红色:为刚提交未做任何响应处理未结案的项目;
|
|
|
|
// 2:黄色: 至少做过一次响应处理答复但未结案的项目;
|
|
|
|
// 3:绿色:已经结案的项目。
|
|
|
|
List<String> areaIds = null; |
|
|
|
if (StringUtils.isNotBlank(formDTO.getAreaCode())){ |
|
|
|
areaIds = screenProjectDataDao.selectIdsByAreaCode(formDTO.getAreaCode()); |
|
|
|
} |
|
|
|
List<ScreenProjectDistributionResultDTO> resultDTOS = screenProjectDataDao.projectDistribution(formDTO.getAgencyId(),areaIds,formDTO.getLevel(),formDTO.getStatus()); |
|
|
|
List<ScreenProjectDistributionResultDTO> resultDTOS = screenProjectDataDao.projectDistribution(formDTO.getAgencyId(),areaIds,formDTO.getLevel()); |
|
|
|
return new Result().ok(resultDTOS); |
|
|
|
} |
|
|
|
|
|
|
|