|
@@ -271,6 +271,9 @@ public class ConsumptionRecordServiceImpl extends ServiceImpl<ConsumptionRecordM
|
|
|
}
|
|
|
if(ObjectUtil.isNotEmpty(consumptionRecordAddParam.getUserId())){
|
|
|
BizUser bizUser = bizUserService.getById(consumptionRecordAddParam.getUserId());
|
|
|
+ if(ObjectUtil.isEmpty(bizUser)){
|
|
|
+ throw new CommonException("用户不存在!");
|
|
|
+ }
|
|
|
if(StringUtils.equals(bizUser.getUserStatus(),"DISABLED")){
|
|
|
throw new CommonException("用户账号冻结,不可消费!");
|
|
|
}
|