Commit 59546b82 authored by 董天德's avatar 董天德

Merge remote-tracking branch 'origin/dev_20230210_dtd' into dev_ch_master

parents 254054bb 75dc02bb
...@@ -109,6 +109,16 @@ public class DisableController { ...@@ -109,6 +109,16 @@ public class DisableController {
List<ChSrvOrgan> chFndSrvModes = disableService.srvOrganList(String.valueOf(organId), srvOrganId, false); List<ChSrvOrgan> chFndSrvModes = disableService.srvOrganList(String.valueOf(organId), srvOrganId, false);
return Result.success(chFndSrvModes); return Result.success(chFndSrvModes);
} }
/**
* 查询机构意向服务机构
*
* @param
*/
@RequestMapping("/srvOrganList2")
public Result<List<ChSrvOrgan>> srvOrganList2(String organId) {
List<ChSrvOrgan> chFndSrvModes = disableService.srvOrganList2(String.valueOf(organId), false);
return Result.success(chFndSrvModes);
}
/** /**
* 查询机构下或者包含子机构下的所有护理机构 * 查询机构下或者包含子机构下的所有护理机构
......
...@@ -67,6 +67,14 @@ public interface DisableService { ...@@ -67,6 +67,14 @@ public interface DisableService {
List<ChSrvOrgan> srvOrganList(String organId,Long srvOrganId, Boolean isInvolveChild); List<ChSrvOrgan> srvOrganList(String organId,Long srvOrganId, Boolean isInvolveChild);
/** /**
* 查询机构意向服务机构
*
* @param organId 机构id
* @param isInvolveChild 是否包含子机构
*/
List<ChSrvOrgan> srvOrganList2(String organId, Boolean isInvolveChild);
/**
* 查询疾病类型 * 查询疾病类型
* *
* @param parDiseTypeId 父疾病类型id * @param parDiseTypeId 父疾病类型id
......
...@@ -344,6 +344,12 @@ public class DisableServiceImpl implements DisableService { ...@@ -344,6 +344,12 @@ public class DisableServiceImpl implements DisableService {
} }
@Override @Override
public List<ChSrvOrgan> srvOrganList2(String organId, Boolean isInvolveChild) {
List<Long> organIds = organService.getOrganIds(Long.valueOf(organId), isInvolveChild);
return srvOrganMapper.selectList(new LambdaQueryWrapper<ChSrvOrgan>().eq(ChSrvOrgan::getStatus, (short) 0).in(ChSrvOrgan::getOrganId, organIds));
}
@Override
public List<ChFndDiseaseType> fndDiseaseList(String parDiseTypeId) { public List<ChFndDiseaseType> fndDiseaseList(String parDiseTypeId) {
QueryWrapper<ChFndDiseaseType> queryWrapper = new QueryWrapper<>(); QueryWrapper<ChFndDiseaseType> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("IS_VALID", "0"); queryWrapper.eq("IS_VALID", "0");
......
...@@ -85,6 +85,10 @@ public class AuthorizationManager implements ReactiveAuthorizationManager<Author ...@@ -85,6 +85,10 @@ public class AuthorizationManager implements ReactiveAuthorizationManager<Author
if ("ROLE_0".equals(roleId)) { if ("ROLE_0".equals(roleId)) {
return true; return true;
} }
//如果是公共资源 直接放行
if ("ROLE_1".equals(roleId)) {
return true;
}
String[] splitpath = path.split("/"); String[] splitpath = path.split("/");
String pathNew = "/" + splitpath[1] + "/" + splitpath[2] + "/*"; String pathNew = "/" + splitpath[1] + "/" + splitpath[2] + "/*";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment