userId 为null处理
This commit is contained in:
@@ -73,7 +73,8 @@ public class TbShopUserServiceImpl implements TbShopUserService {
|
|||||||
shopUserInfoVo.setTotalScore(0);
|
shopUserInfoVo.setTotalScore(0);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
Integer orderNumber=tbOrderInfoRepository.countByUserIdAndStatusAndShopId(shopUserInfoVo.getUserId().toString(),criteria.getShopId());
|
Integer orderNumber=tbOrderInfoRepository.countByUserIdAndStatusAndShopId(
|
||||||
|
shopUserInfoVo.getUserId() == null ? "0" : shopUserInfoVo.getUserId().toString(),criteria.getShopId());
|
||||||
shopUserInfoVo.setOrderNumber(Objects.isNull(orderNumber)?0:orderNumber);
|
shopUserInfoVo.setOrderNumber(Objects.isNull(orderNumber)?0:orderNumber);
|
||||||
shopUserInfoVo.setInMoney(tbShopUserRepository.sumAmount(shopUserInfoVo.getId()));
|
shopUserInfoVo.setInMoney(tbShopUserRepository.sumAmount(shopUserInfoVo.getId()));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user