|
@@ -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);
|