|
|
@@ -13,6 +13,7 @@
|
|
|
package vip.xiaonuo.sys.modular.org.controller;
|
|
|
|
|
|
import cn.hutool.core.lang.tree.Tree;
|
|
|
+import cn.hutool.core.util.StrUtil;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
@@ -166,7 +167,11 @@ public class SysOrgController {
|
|
|
*/
|
|
|
@Operation(summary = "全值匹配组织名")
|
|
|
@GetMapping("/coldchain/alarmuser/getOrgByName")
|
|
|
- public CommonResult<SysOrg> getOrgByName(String orgName) {
|
|
|
+ public CommonResult<?> getOrgByName(String orgName) {
|
|
|
+ if (StrUtil.isBlank(orgName)) {
|
|
|
+ return list();
|
|
|
+ }
|
|
|
+
|
|
|
return CommonResult.data(sysOrgService.getOrgByName(orgName));
|
|
|
}
|
|
|
}
|