Commit 2f813478 authored by 蔡镇泽's avatar 蔡镇泽

查询所有服务方式

parent 9ddfcbac
......@@ -7,6 +7,7 @@ import com.hungraim.ism.service.DisableService;
import com.hungraim.ltc.pojo.entity.disable.ChDisableApply;
import com.hungraim.ltc.pojo.entity.disable.ChFndDistrict;
import com.hungraim.ltc.pojo.entity.disable.ChFndOrgan;
import com.hungraim.ltc.pojo.entity.disable.ChFndSrvMode;
import com.hungraim.ltc.util.Result;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang.StringUtils;
......@@ -51,6 +52,15 @@ public class DisableController {
}
/**
* 查询所有服务方式
*/
@RequestMapping("/fndSrvMode")
public Result<List<ChFndSrvMode>> fndSrvMode() {
List<ChFndSrvMode> fndSrvModes = disableService.fndSrvModeList();
return Result.success(fndSrvModes);
}
/**
* 失能人员信息列表
*
* @param organId 适用机构代码
......
package com.hungraim.ism.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hungraim.ltc.pojo.entity.disable.ChFndSrvMode;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
/**
* 服务项目分类信息表Mapper
*
* @author czz
*/
@Mapper
@Repository
public interface FndSrvModeMapper extends BaseMapper<ChFndSrvMode> {
}
......@@ -6,6 +6,7 @@ import com.hungraim.ism.pojo.vo.disable.DisableVO;
import com.hungraim.ltc.pojo.entity.disable.ChDisableApply;
import com.hungraim.ltc.pojo.entity.disable.ChFndDistrict;
import com.hungraim.ltc.pojo.entity.disable.ChFndOrgan;
import com.hungraim.ltc.pojo.entity.disable.ChFndSrvMode;
import org.springframework.stereotype.Service;
import java.util.List;
......@@ -53,4 +54,9 @@ public interface DisableService {
List<ChFndDistrict> district(String districtLevel, String districtCode);
List<ChFndOrgan> fndOrganRoot();
/**
* 查询所有服务方式
*/
List<ChFndSrvMode> fndSrvModeList();
}
......@@ -3,18 +3,12 @@ package com.hungraim.ism.service.impl;
import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hungraim.ism.dao.DisableApplyMapper;
import com.hungraim.ism.dao.FndDistrictMapper;
import com.hungraim.ism.dao.FndOrganMapper;
import com.hungraim.ism.dao.FndStreetMapper;
import com.hungraim.ism.dao.*;
import com.hungraim.ism.pojo.vo.disable.DisableExamineInfoVO;
import com.hungraim.ism.pojo.vo.disable.DisableVO;
import com.hungraim.ism.pojo.vo.disable.ExamineRecord;
import com.hungraim.ism.service.DisableService;
import com.hungraim.ltc.pojo.entity.disable.ChDisableApply;
import com.hungraim.ltc.pojo.entity.disable.ChFndDistrict;
import com.hungraim.ltc.pojo.entity.disable.ChFndOrgan;
import com.hungraim.ltc.pojo.entity.disable.ChFndStreet;
import com.hungraim.ltc.pojo.entity.disable.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
......@@ -32,6 +26,8 @@ public class DisableServiceImpl implements DisableService {
private FndOrganMapper fndOrganMapper;
@Autowired
private FndStreetMapper fndStreetMapper;
@Autowired
private FndSrvModeMapper fndSrvModeMapper;
/**
* 获取机构ids
......@@ -69,23 +65,6 @@ public class DisableServiceImpl implements DisableService {
// 获取子孙机构集合
if ("0".equals(isIncludeSubsidiaries)) {
this.getOrganList(organId, organIds);
// boolean flag = true;
// while (flag) {
// QueryWrapper<ChFndOrgan> queryWrapper = new QueryWrapper<>();
// queryWrapper.eq("STATUS", "1");
// queryWrapper.eq("PARENT_ID", organId);
// List<ChFndOrgan> organs = fndOrganMapper.selectList(queryWrapper);
// if (organs != null && organs.size() != 0) {
// for (ChFndOrgan chFndOrgan : organs) {
// organId = organId + "," + chFndOrgan.getOrganId();
// if ("2".equals(chFndOrgan.getIsLeaf())) {
// flag = false;
// }
// }
// } else {
// flag = false;
// }
// }
}
}
return disableApplyMapper.disableList(new Page<>(page, pageSize), organIds, isIncludeSubsidiaries, districtProvincial,
......@@ -147,4 +126,9 @@ public class DisableServiceImpl implements DisableService {
return fndOrganMapper.selectList(queryWrapper);
}
@Override
public List<ChFndSrvMode> fndSrvModeList() {
return fndSrvModeMapper.selectList(new QueryWrapper<>());
}
}
\ No newline at end of file
package com.hungraim.ltc.pojo.entity.disable;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
/**
* 服务项目分类信息表
*/
@Data
@TableName("CH_FND_SRV_MODE")
public class ChFndSrvMode {
private Integer srvModeId;
private String srvModeName;
}
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