更新新增租户时对必填字段的检查

This commit is contained in:
panshuling321 2022-02-24 10:03:31 +08:00
parent 0a7ce15c4a
commit e8279570c1

View File

@ -35,6 +35,7 @@ public class XhpcTenantServiceImpl implements XhpcTenantService {
@Override @Override
public boolean insertTenant(XhpcTenantDomain domain){ public boolean insertTenant(XhpcTenantDomain domain){
if(StringUtils.isEmpty(domain.getTenantName()) if(StringUtils.isEmpty(domain.getTenantName())
|| StringUtils.isEmpty(domain.getTenantId())
|| StringUtils.isEmpty(domain.getLinkman()) || StringUtils.isEmpty(domain.getLinkman())
|| StringUtils.isEmpty(domain.getContactNumber())){ || StringUtils.isEmpty(domain.getContactNumber())){
throw new CustomException("必填字段为空"); throw new CustomException("必填字段为空");