|
@ -108,18 +108,17 @@ public class GrassRootsGovernServiceImpl implements GrassRootsGovernService { |
|
|
UserJoinIndicatorGrowthRateResultDTO latest = screenUserJoinDao.selectUserJoinData(param.getAgencyId(), monthId); |
|
|
UserJoinIndicatorGrowthRateResultDTO latest = screenUserJoinDao.selectUserJoinData(param.getAgencyId(), monthId); |
|
|
//保证获取公众参与概率数据的最大可能性
|
|
|
//保证获取公众参与概率数据的最大可能性
|
|
|
int time = NumConstant.TWELVE; |
|
|
int time = NumConstant.TWELVE; |
|
|
while(null == latest && time > NumConstant.ONE) |
|
|
while (null == latest && time > NumConstant.ONE) { |
|
|
{ |
|
|
time--; |
|
|
time --; |
|
|
monthId = dateUtils.getPreviousMonthIdByDest(null, monthId); |
|
|
monthId = dateUtils.getPreviousMonthIdByDest(null,monthId); |
|
|
|
|
|
latest = screenUserJoinDao.selectUserJoinData(param.getAgencyId(), monthId); |
|
|
latest = screenUserJoinDao.selectUserJoinData(param.getAgencyId(), monthId); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if(null == latest) return new PublicPartiProfileResultDTO(); |
|
|
if (null == latest) return new PublicPartiProfileResultDTO(); |
|
|
PublicPartiProfileResultDTO result = ConvertUtils.sourceToTarget(latest,PublicPartiProfileResultDTO.class); |
|
|
PublicPartiProfileResultDTO result = ConvertUtils.sourceToTarget(latest, PublicPartiProfileResultDTO.class); |
|
|
result.setMonthIncr(convertPercentStr(latest.getMonthIncr(),NumConstant.ZERO)); |
|
|
result.setMonthIncr(convertPercentStr(latest.getMonthIncr(), NumConstant.ZERO)); |
|
|
result.setJoinCompareLatestMonth(convertPercentStr(latest.getJoinCompareLatestMonth(),NumConstant.ZERO)); |
|
|
result.setJoinCompareLatestMonth(convertPercentStr(latest.getJoinCompareLatestMonth().abs(), NumConstant.ZERO)); |
|
|
result.setIssueCompareLatestMonth(convertPercentStr(latest.getIssueCompareLatestMonth(),NumConstant.ZERO)); |
|
|
result.setIssueCompareLatestMonth(convertPercentStr(latest.getIssueCompareLatestMonth().abs(), NumConstant.ZERO)); |
|
|
return result; |
|
|
return result; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|