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

查询护理机构方式

parent 2f813478
......@@ -4,10 +4,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hungraim.ism.pojo.vo.disable.DisableExamineInfoVO;
import com.hungraim.ism.pojo.vo.disable.DisableVO;
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.pojo.entity.disable.*;
import com.hungraim.ltc.util.Result;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang.StringUtils;
......@@ -61,6 +58,17 @@ public class DisableController {
}
/**
* 查询机构下所有护理机构
*
* @param organId 机构id
*/
@RequestMapping("/srvOrganList")
public Result<List<ChSrvOrgan>> srvOrganList(String organId) {
List<ChSrvOrgan> chFndSrvModes = disableService.srvOrganList(organId);
return Result.success(chFndSrvModes);
}
/**
* 失能人员信息列表
*
* @param organId 适用机构代码
......
package com.hungraim.ism.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hungraim.ltc.pojo.entity.disable.ChSrvOrgan;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
/**
* 护理机构Mapper
*
* @author czz
*/
@Mapper
@Repository
public interface SrvOrganMapper extends BaseMapper<ChSrvOrgan> {
}
......@@ -3,10 +3,7 @@ package com.hungraim.ism.service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hungraim.ism.pojo.vo.disable.DisableExamineInfoVO;
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 com.hungraim.ltc.pojo.entity.disable.*;
import org.springframework.stereotype.Service;
import java.util.List;
......@@ -59,4 +56,11 @@ public interface DisableService {
* 查询所有服务方式
*/
List<ChFndSrvMode> fndSrvModeList();
/**
* 查询机构下所有护理机构
*
* @param organId 机构id
*/
List<ChSrvOrgan> srvOrganList(String organId);
}
......@@ -28,6 +28,8 @@ public class DisableServiceImpl implements DisableService {
private FndStreetMapper fndStreetMapper;
@Autowired
private FndSrvModeMapper fndSrvModeMapper;
@Autowired
private SrvOrganMapper srvOrganMapper;
/**
* 获取机构ids
......@@ -131,4 +133,9 @@ public class DisableServiceImpl implements DisableService {
return fndSrvModeMapper.selectList(new QueryWrapper<>());
}
@Override
public List<ChSrvOrgan> srvOrganList(String organId) {
return srvOrganMapper.selectList(new QueryWrapper<ChSrvOrgan>().eq("organ_id", organId));
}
}
\ 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_SRV_ORGAN")
public class ChSrvOrgan {
private Integer srvOrganId;
private String acptRoadDetail;
private String acptLongitude;
private String unifiedSocialCreditCode;
private String accName;
private String bankNo;
private Integer sTATUS;
private java.util.Date endTime;
private Integer acptRoadType;
private String acptProvincial;
private Integer webDefineEmp;
private Integer levelCode;
private String acptCity;
private Integer acptNumberType;
private Integer defineEmp;
private String checkRemarkCh;
private String adressDetail;
private java.util.Date fCD;
private Integer checkStatusCh;
private java.util.Date lCD;
private String acptNumberDetail;
private Integer dataFrom;
private String organId;
private String districtCity;
private Integer endEmp;
private Integer organTypeId;
private String linkName;
private String bankDistrictCity;
private Integer fCU;
private String bankAccCode;
private String bankDistrictProvincial;
private String srvOrganCode;
private Integer lCU;
private String checkRemarkLp;
private String srvType;
private String districtProvincial;
private String checkNameLp;
private Integer cardType;
private Integer checkStatusLp;
private Integer bUNK;
private String medicareNumber;
private String bankAccName;
private String linkTel;
private Integer webEndEmp;
private String districtArea;
private String linkMail;
private String permitId;
private String acptStreet;
private Integer cfgModeId;
private String rEMARK;
private String bankDistrictWebsite;
private String srvOrganName;
private java.util.Date checkTimeLp;
private String acptAddress;
private String checkNameCh;
private String acptLatitude;
private String acptArea;
private java.util.Date checkTimeCh;
private java.util.Date effTime;
}
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