|
|
@ -85,12 +85,19 @@ public class ScreenUserJoinServiceImpl extends BaseServiceImpl<ScreenUserJoinDao |
|
|
|
for (int j = NumConstant.ZERO; j < lastMonthJoinList.size(); j++) { |
|
|
|
if (list.get(i).getOrgId().equals(lastMonthJoinList.get(j).getOrgId())) { |
|
|
|
ScreenUserJoinEntity entity = ConvertUtils.sourceToTarget(list.get(i), ScreenUserJoinEntity.class); |
|
|
|
entity.setJoinTotalUpRate(this.calculateGrowthRateNumber(lastMonthJoinList.get(i).getJoinTotal(), list.get(j).getJoinTotal())); |
|
|
|
entity.setJoinTotalUpFlag(this.calculateGrowthRateFlag(lastMonthJoinList.get(i).getJoinTotal(), list.get(j).getJoinTotal())); |
|
|
|
entity.setAvgIssueUpRate(this.calculateGrowthRateNumber(lastMonthJoinList.get(i).getAvgIssue(), list.get(j).getAvgIssue())); |
|
|
|
entity.setAvgIssueUpFlag(this.calculateGrowthRateFlag(lastMonthJoinList.get(i).getAvgIssue(), list.get(j).getAvgIssue())); |
|
|
|
entity.setAgvgJoinUpRate(this.calculateGrowthRateNumber(lastMonthJoinList.get(i).getAvgJoin(), list.get(j).getAvgJoin())); |
|
|
|
entity.setAgvgJoinUpFlag(this.calculateGrowthRateFlag(lastMonthJoinList.get(i).getAvgJoin(), list.get(j).getAvgJoin())); |
|
|
|
ScreenUserJoinEntity lastJoinEntity = lastMonthJoinList.get(i); |
|
|
|
if (lastJoinEntity == null){ |
|
|
|
lastJoinEntity = new ScreenUserJoinEntity(); |
|
|
|
lastJoinEntity.setJoinTotal(NumConstant.ZERO); |
|
|
|
lastJoinEntity.setAvgIssue(NumConstant.ZERO_DECIMAL); |
|
|
|
lastJoinEntity.setAvgJoin(NumConstant.ZERO_DECIMAL); |
|
|
|
} |
|
|
|
entity.setJoinTotalUpRate(this.calculateGrowthRateNumber(lastJoinEntity.getJoinTotal(), list.get(j).getJoinTotal())); |
|
|
|
entity.setJoinTotalUpFlag(this.calculateGrowthRateFlag(lastJoinEntity.getJoinTotal(), list.get(j).getJoinTotal())); |
|
|
|
entity.setAvgIssueUpRate(this.calculateGrowthRateNumber(lastJoinEntity.getAvgIssue(), list.get(j).getAvgIssue())); |
|
|
|
entity.setAvgIssueUpFlag(this.calculateGrowthRateFlag(lastJoinEntity.getAvgIssue(), list.get(j).getAvgIssue())); |
|
|
|
entity.setAgvgJoinUpRate(this.calculateGrowthRateNumber(lastJoinEntity.getAvgJoin(), list.get(j).getAvgJoin())); |
|
|
|
entity.setAgvgJoinUpFlag(this.calculateGrowthRateFlag(lastJoinEntity.getAvgJoin(), list.get(j).getAvgJoin())); |
|
|
|
curMonthJoinEntityList.add(entity); |
|
|
|
} |
|
|
|
} |
|
|
@ -191,4 +198,4 @@ public class ScreenUserJoinServiceImpl extends BaseServiceImpl<ScreenUserJoinDao |
|
|
|
return CompareConstant.EQ_STR; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|