更新租户创建运营商限额的判断
This commit is contained in:
parent
35b3adf639
commit
305a7be5ea
@ -99,7 +99,7 @@ public class XhpcOperatorController extends BaseController {
|
|||||||
Map data =(Map) r.getData();
|
Map data =(Map) r.getData();
|
||||||
int operatorQuote = data.get("operatorQuote") == null ? 1: Integer.parseInt(data.get("operatorQuote").toString());
|
int operatorQuote = data.get("operatorQuote") == null ? 1: Integer.parseInt(data.get("operatorQuote").toString());
|
||||||
List<XhpcOperator> operators = iXhpcOperatorService.getOperatorListByTenantId(xhpcOperator.getTenantId());
|
List<XhpcOperator> operators = iXhpcOperatorService.getOperatorListByTenantId(xhpcOperator.getTenantId());
|
||||||
if(operators.size() >= operatorQuote){
|
if( -1 != operatorQuote && operators.size() >= operatorQuote){
|
||||||
return AjaxResult.error("该租户运营商已超限额,无法创建");
|
return AjaxResult.error("该租户运营商已超限额,无法创建");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user