## 新会员显示业绩报错处理;
This commit is contained in:
parent
734ad1d9b5
commit
80b83c6aad
|
@ -10,6 +10,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|||
import com.hzs.common.core.constant.*;
|
||||
import com.hzs.common.core.domain.R;
|
||||
import com.hzs.common.core.enums.*;
|
||||
import com.hzs.common.core.exception.ServiceException;
|
||||
import com.hzs.common.core.utils.*;
|
||||
import com.hzs.common.domain.member.achieve.CuMemberAchieve;
|
||||
import com.hzs.common.domain.member.achieve.CuMemberSettlePeriod;
|
||||
|
@ -457,25 +458,25 @@ public class CuMemberAchieveServiceImpl extends ServiceImpl<CuMemberAchieveMappe
|
|||
}
|
||||
// 查询会员首页业绩显示
|
||||
CuMemberAwardsUnderVO awardsUnderVO = iCuMemberTreeService.queryMemberPv(settleTable, pkMember, monthTable);
|
||||
|
||||
return CuMemberAwardsUnderVO.builder()
|
||||
.aNewPv(null != awardsUnderVO.getANewPv() ? awardsUnderVO.getANewPv() : BigDecimal.ZERO)
|
||||
.bNewPv(null != awardsUnderVO.getBNewPv() ? awardsUnderVO.getBNewPv() : BigDecimal.ZERO)
|
||||
.aMonthPv(null != awardsUnderVO.getAMonthPv() ? awardsUnderVO.getAMonthPv() : BigDecimal.ZERO)
|
||||
.bMonthPv(null != awardsUnderVO.getBMonthPv() ? awardsUnderVO.getBMonthPv() : BigDecimal.ZERO)
|
||||
.aSumPv(null != awardsUnderVO.getASumPv() ? awardsUnderVO.getASumPv() : BigDecimal.ZERO)
|
||||
.bSumPv(null != awardsUnderVO.getBSumPv() ? awardsUnderVO.getBSumPv() : BigDecimal.ZERO)
|
||||
.build();
|
||||
} else {
|
||||
return CuMemberAwardsUnderVO.builder()
|
||||
.aNewPv(BigDecimal.ZERO)
|
||||
.bNewPv(BigDecimal.ZERO)
|
||||
.aMonthPv(BigDecimal.ZERO)
|
||||
.bMonthPv(BigDecimal.ZERO)
|
||||
.aSumPv(BigDecimal.ZERO)
|
||||
.bSumPv(BigDecimal.ZERO)
|
||||
.build();
|
||||
if (null != awardsUnderVO) {
|
||||
return CuMemberAwardsUnderVO.builder()
|
||||
.aNewPv(null != awardsUnderVO.getANewPv() ? awardsUnderVO.getANewPv() : BigDecimal.ZERO)
|
||||
.bNewPv(null != awardsUnderVO.getBNewPv() ? awardsUnderVO.getBNewPv() : BigDecimal.ZERO)
|
||||
.aMonthPv(null != awardsUnderVO.getAMonthPv() ? awardsUnderVO.getAMonthPv() : BigDecimal.ZERO)
|
||||
.bMonthPv(null != awardsUnderVO.getBMonthPv() ? awardsUnderVO.getBMonthPv() : BigDecimal.ZERO)
|
||||
.aSumPv(null != awardsUnderVO.getASumPv() ? awardsUnderVO.getASumPv() : BigDecimal.ZERO)
|
||||
.bSumPv(null != awardsUnderVO.getBSumPv() ? awardsUnderVO.getBSumPv() : BigDecimal.ZERO)
|
||||
.build();
|
||||
}
|
||||
}
|
||||
return CuMemberAwardsUnderVO.builder()
|
||||
.aNewPv(BigDecimal.ZERO)
|
||||
.bNewPv(BigDecimal.ZERO)
|
||||
.aMonthPv(BigDecimal.ZERO)
|
||||
.bMonthPv(BigDecimal.ZERO)
|
||||
.aSumPv(BigDecimal.ZERO)
|
||||
.bSumPv(BigDecimal.ZERO)
|
||||
.build();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -23,12 +23,6 @@ import java.util.*;
|
|||
|
||||
/**
|
||||
* 会员首页
|
||||
*
|
||||
* @Description:
|
||||
* @Author: ljc
|
||||
* @Time: 2023/5/4 21:06
|
||||
* @Classname: ApiHomePageController
|
||||
* @Package_name: com.hzs.member.base.controller.api
|
||||
*/
|
||||
@Slf4j
|
||||
@RequestMapping("/api/member")
|
||||
|
@ -67,7 +61,7 @@ public class ApiHomePageController {
|
|||
}
|
||||
|
||||
/**
|
||||
* 会员荣誉奖衔
|
||||
* 会员业绩显示 -- 昨日、月、历史业绩
|
||||
*
|
||||
* @return AjaxResult
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue