添加机构列表接口
This commit is contained in:
parent
2be2ca36d0
commit
8819a6ba0a
|
@ -105,6 +105,9 @@ public class ShiroConfig {
|
||||||
//filterChainDefinitionMap.put("/sys/common/download/**", "anon");//文件下载不限制token
|
//filterChainDefinitionMap.put("/sys/common/download/**", "anon");//文件下载不限制token
|
||||||
filterChainDefinitionMap.put("/generic/**", "anon");//pdf预览需要文件
|
filterChainDefinitionMap.put("/generic/**", "anon");//pdf预览需要文件
|
||||||
|
|
||||||
|
filterChainDefinitionMap.put("/sys/sysDepart/queryInstitutionsList", "anon");//pdf预览需要文件
|
||||||
|
|
||||||
|
|
||||||
filterChainDefinitionMap.put("/sys/getLoginQrcode/**", "anon"); //登录二维码
|
filterChainDefinitionMap.put("/sys/getLoginQrcode/**", "anon"); //登录二维码
|
||||||
filterChainDefinitionMap.put("/sys/getQrcodeToken/**", "anon"); //监听扫码
|
filterChainDefinitionMap.put("/sys/getQrcodeToken/**", "anon"); //监听扫码
|
||||||
filterChainDefinitionMap.put("/sys/checkAuth", "anon"); //授权接口排除
|
filterChainDefinitionMap.put("/sys/checkAuth", "anon"); //授权接口排除
|
||||||
|
|
|
@ -2,6 +2,7 @@ package org.jeecg.modules.system.controller;
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.apache.shiro.SecurityUtils;
|
import org.apache.shiro.SecurityUtils;
|
||||||
|
@ -683,4 +684,28 @@ public class SysDepartController {
|
||||||
return Result.error("文件导入失败!");
|
return Result.error("文件导入失败!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 人员入住可选择的机构
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@RequestMapping(value = "/queryInstitutionsList", method = RequestMethod.GET)
|
||||||
|
public List<Map<String,Object>> queryInstitutionsList() {
|
||||||
|
List<Map<String,Object>> result = new ArrayList<>();
|
||||||
|
QueryWrapper<SysDepart> query = new QueryWrapper<>();
|
||||||
|
query.eq("del_flag","0");
|
||||||
|
query.eq("org_category","1");
|
||||||
|
query.eq("org_type","1");
|
||||||
|
query.isNotNull("server_url");
|
||||||
|
List<SysDepart> list = sysDepartService.list(query);
|
||||||
|
for(SysDepart depart : list){
|
||||||
|
Map<String,Object> map = new HashMap<>();
|
||||||
|
map.put("id",depart.getId());
|
||||||
|
map.put("departName",depart.getDepartName());
|
||||||
|
map.put("serverUrl",depart.getServerUrl());
|
||||||
|
result.add(map);
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -94,6 +94,9 @@ public class SysDepart implements Serializable {
|
||||||
/**是否有叶子节点: 1是0否*/
|
/**是否有叶子节点: 1是0否*/
|
||||||
private Integer izLeaf;
|
private Integer izLeaf;
|
||||||
|
|
||||||
|
/**各机构服务器后台接口地址*/
|
||||||
|
private String serverUrl;
|
||||||
|
|
||||||
//update-begin---author:wangshuai ---date:20200308 for:[JTC-119]在部门管理菜单下设置部门负责人,新增字段负责人ids和旧的负责人ids
|
//update-begin---author:wangshuai ---date:20200308 for:[JTC-119]在部门管理菜单下设置部门负责人,新增字段负责人ids和旧的负责人ids
|
||||||
/**部门负责人的ids*/
|
/**部门负责人的ids*/
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
|
|
Loading…
Reference in New Issue