mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-07-09 08:27:58 +08:00
update
This commit is contained in:
@@ -1514,7 +1514,7 @@ public class TempService {
|
|||||||
throw new RuntimeException("订单不是异常订单:" + orderCode);
|
throw new RuntimeException("订单不是异常订单:" + orderCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!Objects.equals(orderBasicInfo.getPayMode(), PayModeEnum.PAYMENT_OF_WHITELIST.getValue())) {
|
if (!Objects.equals(orderBasicInfo.getPayMode(), "3")) {
|
||||||
throw new RuntimeException("订单不是白名单支付方式:" + orderCode);
|
throw new RuntimeException("订单不是白名单支付方式:" + orderCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -642,11 +642,26 @@ public class MemberBasicInfoServiceImpl implements MemberBasicInfoService {
|
|||||||
List<String> merchantIdList = merchantInfoVOList.stream()
|
List<String> merchantIdList = merchantInfoVOList.stream()
|
||||||
.map(MerchantInfoVO::getMerchantId).collect(Collectors.toList());
|
.map(MerchantInfoVO::getMerchantId).collect(Collectors.toList());
|
||||||
|
|
||||||
|
List<String> queryMerchantIds;
|
||||||
|
|
||||||
|
// 权限校验一下
|
||||||
|
if (StringUtils.isNotBlank(dto.getMerchantId())) {
|
||||||
|
if (!merchantIdList.contains(dto.getMerchantId())) {
|
||||||
|
throw new BusinessException("403", "没有权限查询该运营商数据");
|
||||||
|
}
|
||||||
|
// 只查当前筛选的运营商
|
||||||
|
queryMerchantIds = Collections.singletonList(dto.getMerchantId());
|
||||||
|
} else {
|
||||||
|
// 查全部权限内的运营商
|
||||||
|
queryMerchantIds = merchantIdList;
|
||||||
|
}
|
||||||
|
|
||||||
// 分页
|
// 分页
|
||||||
int pageNum = dto.getPageNum() == null ? 1 : dto.getPageNum();
|
int pageNum = dto.getPageNum() == null ? 1 : dto.getPageNum();
|
||||||
int pageSize = dto.getPageSize() == null ? 10 : dto.getPageSize();
|
int pageSize = dto.getPageSize() == null ? 10 : dto.getPageSize();
|
||||||
PageHelper.startPage(pageNum, pageSize);
|
PageHelper.startPage(pageNum, pageSize);
|
||||||
List<MerchantVipVO> resultList = memberBasicInfoMapper.queryMerchantVipList(merchantIdList, dto);
|
List<MerchantVipVO> resultList = memberBasicInfoMapper.queryMerchantVipList(queryMerchantIds, dto);
|
||||||
|
|
||||||
if (CollectionUtils.isNotEmpty(resultList)) {
|
if (CollectionUtils.isNotEmpty(resultList)) {
|
||||||
for (MerchantVipVO merchantVipVO : resultList) {
|
for (MerchantVipVO merchantVipVO : resultList) {
|
||||||
BigDecimal principalBalance = merchantVipVO.getPrincipalBalance() == null ? BigDecimal.ZERO : merchantVipVO.getPrincipalBalance();
|
BigDecimal principalBalance = merchantVipVO.getPrincipalBalance() == null ? BigDecimal.ZERO : merchantVipVO.getPrincipalBalance();
|
||||||
|
|||||||
Reference in New Issue
Block a user