|
|
@ -3,6 +3,7 @@ package com.epmet.datareport.service.fact.impl; |
|
|
|
import com.epmet.commons.dynamic.datasource.annotation.DataSource; |
|
|
|
import com.epmet.commons.tools.constant.NumConstant; |
|
|
|
import com.epmet.commons.tools.exception.RenException; |
|
|
|
import com.epmet.commons.tools.utils.DateUtils; |
|
|
|
import com.epmet.constant.DataSourceConstant; |
|
|
|
import com.epmet.datareport.constant.FactConstant; |
|
|
|
import com.epmet.datareport.dao.evaluationindex.screen.ScreenCustomerAgencyDao; |
|
|
@ -457,6 +458,9 @@ public class FactIndexServiceImpl implements FactIndexService { |
|
|
|
@DataSource(value = DataSourceConstant.EVALUATION_INDEX, datasourceNameFromArg = true) |
|
|
|
public List<PeerComparisonResultDTO> peerComparison(PeerComparisonFormDTO formDTO) { |
|
|
|
//1.根据组织或网格Id的上级组织Id查询同级组织或网格对应类型的得分排名(按月查询)
|
|
|
|
if (null == formDTO.getMonthId() || "".equals(formDTO.getMonthId())) { |
|
|
|
formDTO.setMonthId(DateUtils.getBeforeNMonth(1)); |
|
|
|
} |
|
|
|
List<PeerComparisonResultDTO> resultList = screenIndexDataMonthlyDao.selectScoreList(formDTO); |
|
|
|
return resultList; |
|
|
|
} |
|
|
|