Commit a2b017a6 authored by 蔡镇泽's avatar 蔡镇泽

失能人员信息列表省市区、机构

parent 5cde5d64
...@@ -53,24 +53,25 @@ public class DisableController { ...@@ -53,24 +53,25 @@ public class DisableController {
/** /**
* 失能人员信息列表 * 失能人员信息列表
* *
* @param organId 适用机构代码 * @param organId 适用机构代码
* @param districtProvincial 所在省 * @param isIncludeSubsidiaries 是否包含子机构 0包含,1不包含
* @param districtCity 所在市 * @param districtProvincial 所在省
* @param districtArea 所在区域 * @param districtCity 所在市
* @param realName 失能人员姓名 * @param districtArea 所在区域
* @param certiCode 失能人员身份证号码 * @param realName 失能人员姓名
* @param dataFrom 申请来源 * @param certiCode 失能人员身份证号码
* @param srvOrganId 护理机构 * @param dataFrom 申请来源
* @param pageNum 当前页 * @param srvOrganId 护理机构
* @param pageSize 每页几条数据 * @param pageNum 当前页
* @param pageSize 每页几条数据
* @return 失能人员信息列表 * @return 失能人员信息列表
*/ */
@RequestMapping("/disableList") @RequestMapping("/disableList")
public Result<List<DisableVO>> disableList(String organId, String districtProvincial, public Result<List<DisableVO>> disableList(String organId, String districtProvincial, String isIncludeSubsidiaries,
String districtCity, String districtArea, String districtCity, String districtArea,
String realName, String certiCode, String dataFrom, String realName, String certiCode, String dataFrom,
String srvOrganId, int pageNum, int pageSize) { String srvOrganId, int pageNum, int pageSize) {
IPage<DisableVO> iPage = disableService.disableList(organId, districtProvincial, IPage<DisableVO> iPage = disableService.disableList(organId, isIncludeSubsidiaries, districtProvincial,
districtCity, districtArea, realName, certiCode, dataFrom, srvOrganId, pageNum, pageSize); districtCity, districtArea, realName, certiCode, dataFrom, srvOrganId, pageNum, pageSize);
return Result.success(iPage.getRecords()); return Result.success(iPage.getRecords());
} }
......
...@@ -22,16 +22,17 @@ public interface DisableApplyMapper extends BaseMapper<ChDisableApply> { ...@@ -22,16 +22,17 @@ public interface DisableApplyMapper extends BaseMapper<ChDisableApply> {
/** /**
* 查询待遇申请管理列表 * 查询待遇申请管理列表
* *
* @param organId 机构代码 * @param organId 机构代码
* @param provincial 省 * @param isIncludeSubsidiaries 是否包含子机构 0包含,1不包含
* @param city 市 * @param provincial 省
* @param area 区 * @param city 市
* @param name 参保人员姓名 * @param area 区
* @param certiCode 参保人身份证号码 * @param name 参保人员姓名
* @param dataFrom 申请来源 * @param certiCode 参保人身份证号码
* @param srvOrganId 护理机构 * @param dataFrom 申请来源
* @param srvOrganId 护理机构
*/ */
Page<DisableVO> disableList(Page<DisableVO> page, String organId, String provincial, Page<DisableVO> disableList(Page<DisableVO> page, String organId, String isIncludeSubsidiaries, String provincial,
String city, String area, String name, String certiCode, String city, String area, String name, String certiCode,
String dataFrom, String srvOrganId); String dataFrom, String srvOrganId);
......
...@@ -21,19 +21,20 @@ public interface DisableService { ...@@ -21,19 +21,20 @@ public interface DisableService {
/** /**
* 查询所有资源对应的角色 * 查询所有资源对应的角色
* *
* @param organId 适用机构代码 * @param organId 适用机构代码
* @param districtProvincial 所在省 * @param isIncludeSubsidiaries 是否包含子机构 0包含,1不包含
* @param districtCity 所在市 * @param districtProvincial 所在省
* @param districtArea 所在区域 * @param districtCity 所在市
* @param realName 失能人员姓名 * @param districtArea 所在区域
* @param certiCode 失能人员身份证号码 * @param realName 失能人员姓名
* @param dataFrom 申请来源 * @param certiCode 失能人员身份证号码
* @param srvOrganId 护理机构 * @param dataFrom 申请来源
* @param pageNum 当前页 * @param srvOrganId 护理机构
* @param pageSize 每页几条数据 * @param pageNum 当前页
* @param pageSize 每页几条数据
* @return list * @return list
*/ */
Page<DisableVO> disableList(String organId, String districtProvincial, String districtCity, Page<DisableVO> disableList(String organId, String isIncludeSubsidiaries, String districtProvincial, String districtCity,
String districtArea, String realName, String certiCode, String dataFrom, String districtArea, String realName, String certiCode, String dataFrom,
String srvOrganId, int pageNum, int pageSize); String srvOrganId, int pageNum, int pageSize);
......
...@@ -33,10 +33,10 @@ public class DisableServiceImpl implements DisableService { ...@@ -33,10 +33,10 @@ public class DisableServiceImpl implements DisableService {
private FndStreetMapper fndStreetMapper; private FndStreetMapper fndStreetMapper;
@Override @Override
public Page<DisableVO> disableList(String organId, String districtProvincial, String districtCity, public Page<DisableVO> disableList(String organId, String isIncludeSubsidiaries, String districtProvincial, String districtCity,
String districtArea, String realName, String certiCode, String dataFrom, String districtArea, String realName, String certiCode, String dataFrom,
String srvOrganId, int page, int pageSize) { String srvOrganId, int page, int pageSize) {
return disableApplyMapper.disableList(new Page<>(page, pageSize), organId, districtProvincial, return disableApplyMapper.disableList(new Page<>(page, pageSize), organId, isIncludeSubsidiaries, districtProvincial,
districtCity, districtArea, realName, certiCode, dataFrom, srvOrganId); districtCity, districtArea, realName, certiCode, dataFrom, srvOrganId);
} }
......
...@@ -21,11 +21,17 @@ ...@@ -21,11 +21,17 @@
a.eff_time effTime, a.eff_time effTime,
a.data_from dataFrom, a.data_from dataFrom,
a.ADRESS_DETAIL adressDetail a.ADRESS_DETAIL adressDetail
from CH_DISABLE_APPLY a,CH_SRV_ORGAN o from CH_DISABLE_APPLY a,CH_FND_ORGAN o
where a.organ_id = o.ORGAN_ID where a.organ_id = o.ORGAN_ID
<if test="organId != null and organId != ''"> <if test="organId != null and organId != ''">
and a.organ_id = #{organId} <if test="isIncludeSubsidiaries == '0'">
and a.organ_id in (select organ_id form CH_FND_ORGAN where PARENT_ID = #{organId})
</if>
<if test="isIncludeSubsidiaries != '0'">
and a.organ_id = #{organId}
</if>
</if> </if>
<if test="provincial != null and provincial != ''"> <if test="provincial != null and provincial != ''">
and a.DISTRICT_PROVINCIAL = #{provincial} and a.DISTRICT_PROVINCIAL = #{provincial}
</if> </if>
......
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