Browse Source

新增判空

tags/v2.4.1
xiaoying 1 year ago
parent
commit
9e36ccfe33
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      tuoheng_oidc_admin/src/main/java/com/tuoheng/service/impl/TenantServiceImpl.java

+ 3
- 1
tuoheng_oidc_admin/src/main/java/com/tuoheng/service/impl/TenantServiceImpl.java View File

@@ -140,7 +140,9 @@ public class TenantServiceImpl implements TenantService {
TenantEmploy tenantEmploy = new TenantEmploy();
tenantEmploy.setTenantId(tenantPo.getId());
tenantEmploy.setPlatformCode(platform.getPlatformCode());
tenantEmploy.setServiceId(clientRoleDto.getServiceId());
if (ObjectUtil.isNotEmpty(clientRoleDto.getServiceId())) {
tenantEmploy.setServiceId(clientRoleDto.getServiceId());
}
tenantEmployMapper.insert(tenantEmploy);
}
//拼接

Loading…
Cancel
Save