Commit 1c56772d authored by alex yao's avatar alex yao

feat: 創建個數攔截

parent 28d29468
......@@ -176,7 +176,7 @@ public class AgentApplicationInfoRestImpl implements AgentApplicationInfoRest {
//次数检查
if (StringUtils.isBlank(entity.getAgentId())) {
MemberEquityInfo equityInfo = memberEquityService.getEquityInfo(userId);
if (equityInfo.getAgentNum() <= equityInfo.getUsedAgentNum()) {
if (equityInfo.getAgentNum() > 0 && equityInfo.getAgentNum() <= equityInfo.getUsedAgentNum()) {
throw new I18nMessageException("exception/create.num.limit");
}
}
......
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