|
|
@ -3,6 +3,7 @@ package com.epmet.datareport.service.screen.impl; |
|
|
|
import com.epmet.commons.tools.constant.NumConstant; |
|
|
|
import com.epmet.datareport.dao.screen.ScreenPartyBranchDataDao; |
|
|
|
import com.epmet.datareport.dao.screen.ScreenPartyLinkMassesDataDao; |
|
|
|
import com.epmet.datareport.dao.screen.ScreenPioneerDataDao; |
|
|
|
import com.epmet.datareport.service.screen.PartyMemberLeadService; |
|
|
|
import com.epmet.screen.dto.form.ContactMassLineChartFormDTO; |
|
|
|
import com.epmet.screen.dto.form.FineExampleFormDTO; |
|
|
@ -11,6 +12,7 @@ import com.epmet.screen.dto.result.*; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
import java.math.BigDecimal; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.Comparator; |
|
|
|
import java.util.List; |
|
|
@ -32,6 +34,8 @@ public class PartyMemberLeadServiceImpl implements PartyMemberLeadService { |
|
|
|
private GrassrootsPartyDevServiceImpl grassrootsPartyDevServiceImpl; |
|
|
|
@Autowired |
|
|
|
private ScreenPartyBranchDataDao screenPartyBranchDataDao; |
|
|
|
@Autowired |
|
|
|
private ScreenPioneerDataDao screenPioneerDataDao; |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description 1、先锋模范 |
|
|
@ -41,8 +45,27 @@ public class PartyMemberLeadServiceImpl implements PartyMemberLeadService { |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public FineExampleResultDTO fineExample(FineExampleFormDTO fineExampleFormDTO) { |
|
|
|
FineExampleResultDTO fineExampleResultDTO = screenPioneerDataDao.selectFineExample(fineExampleFormDTO.getAgencyId()); |
|
|
|
if (null == fineExampleResultDTO){ |
|
|
|
return new FineExampleResultDTO(); |
|
|
|
} |
|
|
|
fineExampleResultDTO.setIssueRatio(this.getRatio(fineExampleResultDTO.getIssueRatioA()).concat("%")); |
|
|
|
fineExampleResultDTO.setPublishIssueRatio(this.getRatio(fineExampleResultDTO.getPublishIssueRatioA()).concat("%")); |
|
|
|
fineExampleResultDTO.setResolvedProjectRatio(this.getRatio(fineExampleResultDTO.getResolvedProjectRatioA()).concat("%")); |
|
|
|
fineExampleResultDTO.setTopicRatio(this.getRatio(fineExampleResultDTO.getTopicRatioA()).concat("%")); |
|
|
|
fineExampleResultDTO.setShiftProjectRatio(this.getRatio(fineExampleResultDTO.getShiftProjectRatioA()).concat("%")); |
|
|
|
return fineExampleResultDTO; |
|
|
|
} |
|
|
|
|
|
|
|
return null; |
|
|
|
/** |
|
|
|
* @Description |
|
|
|
* @param d |
|
|
|
* @author zxc |
|
|
|
* @date 2020/8/20 6:06 下午 |
|
|
|
*/ |
|
|
|
public String getRatio(Double d){ |
|
|
|
BigDecimal bigDecimal = new BigDecimal(d * NumConstant.ONE_HUNDRED); |
|
|
|
return bigDecimal.setScale(NumConstant.TWO, BigDecimal.ROUND_HALF_UP).toPlainString(); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|