更新新增租户时对必填字段的检查
This commit is contained in:
parent
0a7ce15c4a
commit
e8279570c1
@ -35,6 +35,7 @@ public class XhpcTenantServiceImpl implements XhpcTenantService {
|
||||
@Override
|
||||
public boolean insertTenant(XhpcTenantDomain domain){
|
||||
if(StringUtils.isEmpty(domain.getTenantName())
|
||||
|| StringUtils.isEmpty(domain.getTenantId())
|
||||
|| StringUtils.isEmpty(domain.getLinkman())
|
||||
|| StringUtils.isEmpty(domain.getContactNumber())){
|
||||
throw new CustomException("必填字段为空");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user