Commit 1431f0ce authored by maqing's avatar maqing

意向服务机构权限放开

parent 9b1cd79d
...@@ -111,6 +111,20 @@ public class DisableController { ...@@ -111,6 +111,20 @@ public class DisableController {
} }
/** /**
* 查询意向服务机构
*
* @param organId
*/
@RequestMapping("/srvOrganList2")
public Result<List<ChSrvOrgan>> srvOrganList2(String organId) {
if (StringUtils.isBlank(organId)) {
return Result.failed(ResultCode.REQUEST_PARAM_ERROR);
}
List<ChSrvOrgan> chFndSrvModes = disableService.srvOrganList2(organId, false);
return Result.success(chFndSrvModes);
}
/**
* 查询机构下或者包含子机构下的所有护理机构 * 查询机构下或者包含子机构下的所有护理机构
* *
* @param 机构id * @param 机构id
......
...@@ -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,13 @@ public class DisableServiceImpl implements DisableService { ...@@ -344,6 +344,13 @@ public class DisableServiceImpl implements DisableService {
} }
@Override @Override
public List<ChSrvOrgan> srvOrganList2(String organId, Boolean isInvolveChild) {
// zhangch 2021-11-04 修改查询条件 new QueryWrapper<ChSrvOrgan>().eq("organ_id", organId).eq("STATUS", (short) 0)
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");
......
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