userId 为null处理
This commit is contained in:
parent
9ea2ecf552
commit
b0392f70e1
|
|
@ -73,7 +73,8 @@ public class TbShopUserServiceImpl implements TbShopUserService {
|
|||
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.setInMoney(tbShopUserRepository.sumAmount(shopUserInfoVo.getId()));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue