## 当日新会员月度业绩显示;
This commit is contained in:
parent
acb0d8c1c9
commit
80fb1966ac
|
@ -408,13 +408,14 @@ public class CuMemberAchieveServiceImpl extends ServiceImpl<CuMemberAchieveMappe
|
||||||
.filter(tmp -> tmp.getAwardsValue() > bdAwards.getAwardsValue())
|
.filter(tmp -> tmp.getAwardsValue() > bdAwards.getAwardsValue())
|
||||||
.min(Comparator.comparingInt(BdAwards::getAwardsValue)).get();
|
.min(Comparator.comparingInt(BdAwards::getAwardsValue)).get();
|
||||||
resultVO.setTarAwardsName(nextBdAwards.getAwardsName());
|
resultVO.setTarAwardsName(nextBdAwards.getAwardsName());
|
||||||
|
resultVO.setTargetPv(nextBdAwards.getCommunityCheck().divide(big10000, 2, BigDecimal.ROUND_FLOOR));
|
||||||
|
|
||||||
if (resultVO.getASumRealPv().compareTo(resultVO.getBSumRealPv()) <= 0) {
|
if (resultVO.getASumRealPv().compareTo(resultVO.getBSumRealPv()) <= 0) {
|
||||||
// 左区 小于等于 右区,左区为小区
|
// 左区 小于等于 右区,左区为小区
|
||||||
resultVO.setTargetPv(nextBdAwards.getCommunityCheck().subtract(resultVO.getASumRealPv()).divide(big10000, 2, BigDecimal.ROUND_FLOOR));
|
resultVO.setSumRealPv(nextBdAwards.getCommunityCheck().subtract(resultVO.getASumRealPv()).divide(big10000, 2, BigDecimal.ROUND_FLOOR));
|
||||||
} else {
|
} else {
|
||||||
// 右区为小区
|
// 右区为小区
|
||||||
resultVO.setTargetPv(nextBdAwards.getCommunityCheck().subtract(resultVO.getBSumRealPv()).divide(big10000, 2, BigDecimal.ROUND_FLOOR));
|
resultVO.setSumRealPv(nextBdAwards.getCommunityCheck().subtract(resultVO.getBSumRealPv()).divide(big10000, 2, BigDecimal.ROUND_FLOOR));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -48,6 +48,12 @@ public class MemberAwardsNewVO implements Serializable {
|
||||||
@BigDecimalFormat()
|
@BigDecimalFormat()
|
||||||
private BigDecimal targetPv;
|
private BigDecimal targetPv;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 小区累计业绩
|
||||||
|
*/
|
||||||
|
@BigDecimalFormat()
|
||||||
|
private BigDecimal sumRealPv;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 目标奖衔名称
|
* 目标奖衔名称
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue