|
|
@ -13,6 +13,7 @@ import com.epmet.dataaggre.dto.resigroup.ActCategoryDictDTO; |
|
|
|
import com.epmet.dataaggre.dto.resigroup.ResiTopicDTO; |
|
|
|
import com.epmet.dataaggre.dto.resigroup.form.BranchConAnalysisFormDTO; |
|
|
|
import com.epmet.dataaggre.dto.resigroup.form.CandidateListFormDTO; |
|
|
|
import com.epmet.dataaggre.dto.resigroup.form.GroupActCategoryQueryFormDTO; |
|
|
|
import com.epmet.dataaggre.dto.resigroup.form.SubAnalysisByCodeFormDTO; |
|
|
|
import com.epmet.dataaggre.dto.resigroup.result.*; |
|
|
|
import com.epmet.dataaggre.entity.resigroup.ResiGroupEntity; |
|
|
@ -244,4 +245,30 @@ public class ResiGroupServiceImpl implements ResiGroupService { |
|
|
|
} |
|
|
|
return resultList; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 004、【支建+联建】排序方式下拉框 |
|
|
|
* |
|
|
|
* @param formDTO |
|
|
|
* @return com.epmet.dataaggre.dto.resigroup.result.RankCodeResultDTO |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public List<RankCodeResultDTO> queryRankCodeList(GroupActCategoryQueryFormDTO formDTO) { |
|
|
|
List<RankCodeResultDTO> resultList=new ArrayList<>(); |
|
|
|
RankCodeResultDTO defaultResult=new RankCodeResultDTO(); |
|
|
|
defaultResult.setRankCode("orgtotal"); |
|
|
|
defaultResult.setRankName("组织活动总次数"); |
|
|
|
resultList.add(defaultResult); |
|
|
|
List<ActCategoryDictDTO> categoryList=resiGroupDao.selectActCategoryDictDTOByPcode(formDTO.getCustomerId(),formDTO.getFirstCategoryCode()); |
|
|
|
if(CollectionUtils.isEmpty(categoryList)){ |
|
|
|
categoryList=resiGroupDao.selectActCategoryDictDTOByPcode(Constant.DEFAULT_CUSTOMER,formDTO.getFirstCategoryCode()); |
|
|
|
} |
|
|
|
categoryList.forEach(category->{ |
|
|
|
RankCodeResultDTO result=new RankCodeResultDTO(); |
|
|
|
result.setRankCode(category.getCategoryCode()); |
|
|
|
result.setRankName(category.getCategoryName().concat("-组织次数")); |
|
|
|
resultList.add(result); |
|
|
|
}); |
|
|
|
return resultList; |
|
|
|
} |
|
|
|
} |
|
|
|