ソースを参照

1.小组成员详情补充信息

yuanliang 1 年間 前
コミット
e5a84a149c

+ 2 - 1
cooleshow-app/src/main/java/com/yonge/cooleshow/tenant/controller/TenantGroupController.java

@@ -17,6 +17,7 @@ import com.yonge.cooleshow.tenant.vo.TenantGroupVo;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import lombok.extern.slf4j.Slf4j;
+import org.apache.commons.lang3.StringUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.validation.annotation.Validated;
 import org.springframework.web.bind.annotation.GetMapping;
@@ -55,7 +56,7 @@ public class TenantGroupController {
             return R.from(new TenantGroupWrapper.TenantGroup());
         }
         TenantGroupWrapper.TenantGroup group = TenantGroupWrapper.TenantGroup.from(JSON.toJSONString(wrapper));
-        if (wrapper.getImGroupId() != null) {
+        if (StringUtils.isNotEmpty(wrapper.getImGroupId())) {
             ImGroup imGroup = imGroupService.getById(wrapper.getImGroupId());
             if (imGroup != null) {
                 group.setImGroupExist(true);

+ 2 - 1
cooleshow-user/user-tenant/src/main/java/com/yonge/cooleshow/tenant/controller/TenantGroupController.java

@@ -17,6 +17,7 @@ import com.yonge.cooleshow.tenant.vo.TenantGroupVo;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import lombok.extern.slf4j.Slf4j;
+import org.apache.commons.lang3.StringUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.validation.annotation.Validated;
@@ -56,7 +57,7 @@ public class TenantGroupController {
             return R.from(new TenantGroupWrapper.TenantGroup());
         }
         TenantGroupWrapper.TenantGroup group = TenantGroupWrapper.TenantGroup.from(JSON.toJSONString(wrapper));
-        if (wrapper.getImGroupId() != null) {
+        if (StringUtils.isNotEmpty(wrapper.getImGroupId())) {
             ImGroup imGroup = imGroupService.getById(wrapper.getImGroupId());
             if (imGroup != null) {
                 group.setImGroupExist(true);