Commit 594ae640 authored by 蔡镇泽's avatar 蔡镇泽

查询护理机构人员列表

parent f01cbe9f
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.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;
...@@ -27,6 +28,15 @@ public class SrvTaskController { ...@@ -27,6 +28,15 @@ public class SrvTaskController {
private SrvTaskService srvTaskService; private SrvTaskService srvTaskService;
/** /**
* 查询护理机构人员列表
*/
@RequestMapping("/getSrvOrganEmpList")
public Result<List<ChOrganEmp>> getSrvOrganEmpList() {
List<ChOrganEmp> organEmps = srvTaskService.getSrvOrganEmpList();
return Result.success(organEmps);
}
/**
* 服务计划、服务计划配置列表 * 服务计划、服务计划配置列表
* *
* @param organId 护理机构id * @param organId 护理机构id
......
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.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;
...@@ -23,4 +24,7 @@ public interface SrvTaskService { ...@@ -23,4 +24,7 @@ public interface SrvTaskService {
void addSrvTask(Long programId, Long srvEmpId, Date startTime, Date endTime); void addSrvTask(Long programId, Long srvEmpId, Date startTime, Date endTime);
void updateSrvTask(String taskId, Long srvEmpId, Date startTime, Date endTime); void updateSrvTask(String taskId, Long srvEmpId, Date startTime, Date endTime);
List<ChOrganEmp> getSrvOrganEmpList();
} }
package com.hungraim.ltc.governance.service.impl; package com.hungraim.ltc.governance.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
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.SrvTaskInfoVO; import com.hungraim.ltc.pojo.vo.governance.SrvTaskInfoVO;
...@@ -24,6 +26,8 @@ public class SrvTaskServiceImpl implements SrvTaskService { ...@@ -24,6 +26,8 @@ public class SrvTaskServiceImpl implements SrvTaskService {
private SrvTaskMapper srvTaskMapper; private SrvTaskMapper srvTaskMapper;
@Autowired @Autowired
private ChSrvTaskDetailMapper chSrvTaskDetailMapper; private ChSrvTaskDetailMapper chSrvTaskDetailMapper;
@Autowired
private ChOrganEmpMapper chOrganEmpMapper;
/** /**
* 服务计划列表 * 服务计划列表
...@@ -106,4 +110,9 @@ public class SrvTaskServiceImpl implements SrvTaskService { ...@@ -106,4 +110,9 @@ public class SrvTaskServiceImpl implements SrvTaskService {
throw new RuntimeException("修改服务计划详情计划起止日期失败!"); throw new RuntimeException("修改服务计划详情计划起止日期失败!");
} }
} }
@Override
public List<ChOrganEmp> getSrvOrganEmpList() {
return chOrganEmpMapper.selectList(new QueryWrapper<>());
}
} }
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