|
|
@ -1,6 +1,7 @@ |
|
|
|
package com.epmet.datareport.service.evaluationindex.screen.impl; |
|
|
|
|
|
|
|
import com.epmet.commons.dynamic.datasource.annotation.DataSource; |
|
|
|
import com.epmet.commons.tools.constant.NumConstant; |
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.constant.DataSourceConstant; |
|
|
|
import com.epmet.datareport.dao.evaluationindex.screen.ScreenEventDataDao; |
|
|
@ -77,7 +78,10 @@ public class ScreenProjectServiceImpl implements ScreenProjectService { |
|
|
|
if (StringUtils.isNotBlank(formDTO.getAreaCode())){ |
|
|
|
areaIds = screenProjectDataDao.selectIdsByAreaCode(formDTO.getAreaCode()); |
|
|
|
} |
|
|
|
List<ScreenProjectDistributionResultDTO> resultDTOS = screenProjectDataDao.projectDistribution(formDTO.getAgencyId(),areaIds,formDTO.getLevel()); |
|
|
|
if (formDTO.getPageSize() == null){ |
|
|
|
formDTO.setPageSize(NumConstant.TWO_HUNDRED); |
|
|
|
} |
|
|
|
List<ScreenProjectDistributionResultDTO> resultDTOS = screenProjectDataDao.projectDistribution(formDTO.getAgencyId(),areaIds,formDTO.getLevel(),formDTO.getPageSize()); |
|
|
|
return new Result().ok(resultDTOS); |
|
|
|
} |
|
|
|
|
|
|
|