Commit 7ad7c1bf authored by 蔡镇泽's avatar 蔡镇泽

查询护理机构人员列表

parent 1f2eb1fb
package com.hungraim.ltc.pojo.vo.governance;
import lombok.Data;
@Data
public class OrganEmpVO {
/**
* 护理人员id
*/
private Integer empid;
/**
* 护理机构名称
*/
private String srvOrganName;
/**
* 统一社会信用代码
*/
private String unifiedSocialCreditCode;
/**
* 护理人员姓名
*/
private String empName;
/**
* 护理人员性别
*/
private String gender;
/**
* 护理人员年龄
*/
private String age;
/**
* 护理人员证件类型
*/
private String certifType;
/**
* 护理人员证件号码
*/
private String certifNum;
/**
* 护理人员资质
*/
private String empTypeName;
/**
* 状态 有效:0,失效:1
*/
private String isLock;
}
package com.hungraim.ltc.governance.controller; package com.hungraim.ltc.governance.controller;
import com.hungraim.ltc.governance.service.SrvTaskService; import com.hungraim.ltc.governance.service.SrvTaskService;
import com.hungraim.ltc.pojo.entity.serviceManage.ChOrganEmp; import com.hungraim.ltc.pojo.vo.governance.OrganEmpVO;
import com.hungraim.ltc.pojo.vo.governance.SrvTaskInfoVO; import com.hungraim.ltc.pojo.vo.governance.SrvTaskInfoVO;
import com.hungraim.ltc.pojo.vo.governance.SrvTaskVO; import com.hungraim.ltc.pojo.vo.governance.SrvTaskVO;
import com.hungraim.ltc.util.DateUtils; import com.hungraim.ltc.util.DateUtils;
...@@ -29,10 +29,18 @@ public class SrvTaskController { ...@@ -29,10 +29,18 @@ public class SrvTaskController {
/** /**
* 查询护理机构人员列表 * 查询护理机构人员列表
*
* @param organId 护理服务机构id
* @param name 护理人员姓名
* @param certiType 护理人员证件类型
* @param certifNum 护理人员证件号码
*/ */
@RequestMapping("/getSrvOrganEmpList") @RequestMapping("/getSrvOrganEmpList")
public Result<List<ChOrganEmp>> getSrvOrganEmpList() { public Result<List<OrganEmpVO>> getSrvOrganEmpList(String organId, String name, String certiType, String certifNum) {
List<ChOrganEmp> organEmps = srvTaskService.getSrvOrganEmpList(); if (StringUtils.isBlank(organId)) {
return Result.failed("护理服务机构不能为空!");
}
List<OrganEmpVO> organEmps = srvTaskService.getSrvOrganEmpList(organId, name, certiType, certifNum);
return Result.success(organEmps); return Result.success(organEmps);
} }
......
...@@ -2,6 +2,7 @@ package com.hungraim.ltc.governance.dao; ...@@ -2,6 +2,7 @@ package com.hungraim.ltc.governance.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hungraim.ltc.pojo.entity.serviceManage.ChSrvTask; import com.hungraim.ltc.pojo.entity.serviceManage.ChSrvTask;
import com.hungraim.ltc.pojo.vo.governance.OrganEmpVO;
import com.hungraim.ltc.pojo.vo.governance.SrvTaskInfoVO; import com.hungraim.ltc.pojo.vo.governance.SrvTaskInfoVO;
import com.hungraim.ltc.pojo.vo.governance.SrvTaskVO; import com.hungraim.ltc.pojo.vo.governance.SrvTaskVO;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
...@@ -18,4 +19,6 @@ public interface SrvTaskMapper extends BaseMapper<ChSrvTask> { ...@@ -18,4 +19,6 @@ public interface SrvTaskMapper extends BaseMapper<ChSrvTask> {
String status, String modeId); String status, String modeId);
SrvTaskInfoVO getSrvTaskInfo(String taskId); SrvTaskInfoVO getSrvTaskInfo(String taskId);
List<OrganEmpVO> getSrvOrganEmpList(String organId, String name, String certiType, String certifNum);
} }
package com.hungraim.ltc.governance.service; package com.hungraim.ltc.governance.service;
import com.hungraim.ltc.pojo.entity.serviceManage.ChOrganEmp; import com.hungraim.ltc.pojo.vo.governance.OrganEmpVO;
import com.hungraim.ltc.pojo.vo.governance.SrvTaskInfoVO; import com.hungraim.ltc.pojo.vo.governance.SrvTaskInfoVO;
import com.hungraim.ltc.pojo.vo.governance.SrvTaskVO; import com.hungraim.ltc.pojo.vo.governance.SrvTaskVO;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
...@@ -25,6 +25,6 @@ public interface SrvTaskService { ...@@ -25,6 +25,6 @@ public interface SrvTaskService {
void updateSrvTask(String taskId, Long srvEmpId, Date startTime, Date endTime); void updateSrvTask(String taskId, Long srvEmpId, Date startTime, Date endTime);
List<ChOrganEmp> getSrvOrganEmpList(); List<OrganEmpVO> getSrvOrganEmpList(String organId, String name, String certiType, String certifNum);
} }
...@@ -5,9 +5,9 @@ import com.hungraim.ltc.governance.dao.ChOrganEmpMapper; ...@@ -5,9 +5,9 @@ import com.hungraim.ltc.governance.dao.ChOrganEmpMapper;
import com.hungraim.ltc.governance.dao.ChSrvTaskDetailMapper; import com.hungraim.ltc.governance.dao.ChSrvTaskDetailMapper;
import com.hungraim.ltc.governance.dao.SrvTaskMapper; import com.hungraim.ltc.governance.dao.SrvTaskMapper;
import com.hungraim.ltc.governance.service.SrvTaskService; import com.hungraim.ltc.governance.service.SrvTaskService;
import com.hungraim.ltc.pojo.entity.serviceManage.ChOrganEmp;
import com.hungraim.ltc.pojo.entity.serviceManage.ChSrvTask; import com.hungraim.ltc.pojo.entity.serviceManage.ChSrvTask;
import com.hungraim.ltc.pojo.entity.serviceManage.ChSrvTaskDetail; import com.hungraim.ltc.pojo.entity.serviceManage.ChSrvTaskDetail;
import com.hungraim.ltc.pojo.vo.governance.OrganEmpVO;
import com.hungraim.ltc.pojo.vo.governance.SrvTaskInfoVO; import com.hungraim.ltc.pojo.vo.governance.SrvTaskInfoVO;
import com.hungraim.ltc.pojo.vo.governance.SrvTaskVO; import com.hungraim.ltc.pojo.vo.governance.SrvTaskVO;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -112,7 +112,7 @@ public class SrvTaskServiceImpl implements SrvTaskService { ...@@ -112,7 +112,7 @@ public class SrvTaskServiceImpl implements SrvTaskService {
} }
@Override @Override
public List<ChOrganEmp> getSrvOrganEmpList() { public List<OrganEmpVO> getSrvOrganEmpList(String organId, String name, String certiType, String certifNum) {
return chOrganEmpMapper.selectList(new QueryWrapper<>()); return srvTaskMapper.getSrvOrganEmpList(organId, name, certiType, certifNum);
} }
} }
...@@ -112,4 +112,46 @@ ...@@ -112,4 +112,46 @@
where task.SRV_TASK_ID = #{taskId} where task.SRV_TASK_ID = #{taskId}
</select> </select>
<!--查询护理机构人员列表-->
<select id="getSrvOrganEmpList" resultType="com.hungraim.ltc.pojo.vo.governance.OrganEmpVO">
select
--护理人员id
emp.emp_id empid,
--护理机构名称
organ.srv_organ_name srvOrganName,
--统一社会信用代码
organ.unified_social_credit_code unifiedSocialCreditCode,
--护理人员姓名
emp.emp_name empName,
--护理人员性别
emp.gender gender,
--护理人员年龄
emp.age age,
--护理人员证件类型
emp.certif_type certifType,
--护理人员证件号码
emp.certif_num certifNum,
--护理人员资质
emptype.emp_type_name empTypeName,
--状态 有效:0,失效:1
emp.is_lock isLock
from ch_srv_organ_emp emp--护理人员信息
left join ch_srv_organ organ on emp.srv_organ_id = organ.srv_organ_id--护理机构
left join ch_emp_type emptype on emp.emp_type_id = emptype.emp_type--护理人员资质
<where>
<if test="organId != null and organId != ''">
and emp.SRV_ORGAN_ID = #{organId}
</if>
<if test="name != null and name != ''">
and emp.emp_name = #{name}
</if>
<if test="certiType != null and certiType != ''">
and emp.certif_type = #{certiType}
</if>
<if test="certifNum != null and certifNum != ''">
and emp.certif_num = #{certifNum}
</if>
</where>
</select>
</mapper> </mapper>
\ No newline at end of file
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