|
|
@ -8,6 +8,7 @@ import com.epmet.commons.tools.utils.ConvertUtils; |
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.constant.DataSourceConstant; |
|
|
|
import com.epmet.datareport.dao.evaluationindex.screen.*; |
|
|
|
import com.epmet.datareport.service.evaluationindex.screen.AgencyService; |
|
|
|
import com.epmet.datareport.service.evaluationindex.screen.GrassRootsGovernService; |
|
|
|
import com.epmet.datareport.utils.DateUtils; |
|
|
|
import com.epmet.datareport.utils.ModuleConstant; |
|
|
@ -58,6 +59,9 @@ public class GrassRootsGovernServiceImpl implements GrassRootsGovernService { |
|
|
|
private OperCrmOpenFeignClient crmClient; |
|
|
|
@Autowired |
|
|
|
private ScreenCustomerAgencyDao agencyDao; |
|
|
|
@Autowired |
|
|
|
private AgencyService screenCustomerAgencyService; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* @Description 1、热心市民积分排行 |
|
|
@ -100,11 +104,16 @@ public class GrassRootsGovernServiceImpl implements GrassRootsGovernService { |
|
|
|
@DataSource(value = DataSourceConstant.EVALUATION_INDEX,datasourceNameFromArg = true) |
|
|
|
@Override |
|
|
|
public List<DifficultProjectResultDTO> difficultProject(AgencyNumTypeParamFormDTO param) { |
|
|
|
List<String> nextAgencyIds = screenCustomerAgencyService.getNextAgencyIds(param.getAreaCode(), param.getAgencyId()); |
|
|
|
if (CollectionUtils.isEmpty(nextAgencyIds)){ |
|
|
|
return new ArrayList<>(); |
|
|
|
} |
|
|
|
if(null == param.getTopNum()){ |
|
|
|
param.setTopNum(NumConstant.TWO); |
|
|
|
} |
|
|
|
PageHelper.startPage(NumConstant.ONE,param.getTopNum()); |
|
|
|
List<DifficultProjectResultDTO> result = screenDifficultyDataDao.selectDifficulty(param.getAgencyId(),param.getType()); |
|
|
|
// List<DifficultProjectResultDTO> result = screenDifficultyDataDao.selectDifficulty(param.getAgencyId(),param.getType());
|
|
|
|
List<DifficultProjectResultDTO> result = screenDifficultyDataDao.selectDifficultyNew(nextAgencyIds,param.getType()); |
|
|
|
for(DifficultProjectResultDTO resultDTO:result){ |
|
|
|
if (StringUtils.isNotBlank(resultDTO.getImgUrl()) && !resultDTO.getImgUrl().contains("http")) { |
|
|
|
resultDTO.setImgUrl(StrConstant.EPMETY_STR); |
|
|
|