## 新会员显示业绩报错处理;

This commit is contained in:
cabbage 2025-04-22 13:40:04 +08:00
parent 734ad1d9b5
commit 80b83c6aad
2 changed files with 20 additions and 25 deletions

View File

@ -10,6 +10,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hzs.common.core.constant.*; import com.hzs.common.core.constant.*;
import com.hzs.common.core.domain.R; import com.hzs.common.core.domain.R;
import com.hzs.common.core.enums.*; import com.hzs.common.core.enums.*;
import com.hzs.common.core.exception.ServiceException;
import com.hzs.common.core.utils.*; import com.hzs.common.core.utils.*;
import com.hzs.common.domain.member.achieve.CuMemberAchieve; import com.hzs.common.domain.member.achieve.CuMemberAchieve;
import com.hzs.common.domain.member.achieve.CuMemberSettlePeriod; 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); CuMemberAwardsUnderVO awardsUnderVO = iCuMemberTreeService.queryMemberPv(settleTable, pkMember, monthTable);
if (null != awardsUnderVO) {
return CuMemberAwardsUnderVO.builder() return CuMemberAwardsUnderVO.builder()
.aNewPv(null != awardsUnderVO.getANewPv() ? awardsUnderVO.getANewPv() : BigDecimal.ZERO) .aNewPv(null != awardsUnderVO.getANewPv() ? awardsUnderVO.getANewPv() : BigDecimal.ZERO)
.bNewPv(null != awardsUnderVO.getBNewPv() ? awardsUnderVO.getBNewPv() : BigDecimal.ZERO) .bNewPv(null != awardsUnderVO.getBNewPv() ? awardsUnderVO.getBNewPv() : BigDecimal.ZERO)
.aMonthPv(null != awardsUnderVO.getAMonthPv() ? awardsUnderVO.getAMonthPv() : BigDecimal.ZERO) .aMonthPv(null != awardsUnderVO.getAMonthPv() ? awardsUnderVO.getAMonthPv() : BigDecimal.ZERO)
.bMonthPv(null != awardsUnderVO.getBMonthPv() ? awardsUnderVO.getBMonthPv() : BigDecimal.ZERO) .bMonthPv(null != awardsUnderVO.getBMonthPv() ? awardsUnderVO.getBMonthPv() : BigDecimal.ZERO)
.aSumPv(null != awardsUnderVO.getASumPv() ? awardsUnderVO.getASumPv() : BigDecimal.ZERO) .aSumPv(null != awardsUnderVO.getASumPv() ? awardsUnderVO.getASumPv() : BigDecimal.ZERO)
.bSumPv(null != awardsUnderVO.getBSumPv() ? awardsUnderVO.getBSumPv() : BigDecimal.ZERO) .bSumPv(null != awardsUnderVO.getBSumPv() ? awardsUnderVO.getBSumPv() : BigDecimal.ZERO)
.build(); .build();
} else { }
return CuMemberAwardsUnderVO.builder()
.aNewPv(BigDecimal.ZERO)
.bNewPv(BigDecimal.ZERO)
.aMonthPv(BigDecimal.ZERO)
.bMonthPv(BigDecimal.ZERO)
.aSumPv(BigDecimal.ZERO)
.bSumPv(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();
} }
/** /**

View File

@ -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 @Slf4j
@RequestMapping("/api/member") @RequestMapping("/api/member")
@ -67,7 +61,7 @@ public class ApiHomePageController {
} }
/** /**
* 会员荣誉奖衔 * 会员业绩显示 -- 昨日历史业绩
* *
* @return AjaxResult * @return AjaxResult
*/ */