Commit f5fe8e50 authored by liuyang's avatar liuyang

修改领取会员异常的提示

parent 8bb4f978
...@@ -102,7 +102,7 @@ public class OrgUserReceiveRecordService extends ServiceImpl<OrgUserReceiveRecor ...@@ -102,7 +102,7 @@ public class OrgUserReceiveRecordService extends ServiceImpl<OrgUserReceiveRecor
//保存记录 //保存记录
save(po); save(po);
}else { }else {
throw new BusinessException("已超出剩余数量"); throw new BusinessException("领取失败,企业会员数量不足");
} }
} }
} }
......
...@@ -248,7 +248,7 @@ public class SysUserService extends BaseServiceImpl<SysUserMapper, SysUserPO> { ...@@ -248,7 +248,7 @@ public class SysUserService extends BaseServiceImpl<SysUserMapper, SysUserPO> {
if (userInfo.getVipStartTime() != null && userInfo.getVipEndTime() != null){ if (userInfo.getVipStartTime() != null && userInfo.getVipEndTime() != null){
LocalDateTime now = LocalDateTime.now(); LocalDateTime now = LocalDateTime.now();
if (now.isAfter(userInfo.getVipStartTime()) && now.isBefore(userInfo.getVipEndTime())){ if (now.isAfter(userInfo.getVipStartTime()) && now.isBefore(userInfo.getVipEndTime())){
throw new BusinessException("您的企业会员生效中,请过期后再领取"); throw new BusinessException("领取失败,请会员到期后领取");
} }
} }
//添加领用记录 //添加领用记录
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment