diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java index 5c87a49..f4ff4f3 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java @@ -304,6 +304,16 @@ public class AppController extends BaseController return getDataTable(tRecordService.selectTRecordListWithoutResult(recordResultReq)); } + @ApiOperation("首页患者列表") + @GetMapping("/home/patient/list") + public TableDataInfo queryHomePatientsList(TRecordResultReq recordResultReq) + { +// recordResultReq.setStatus("1"); + //startPage(); + List tRecordResps = tRecordService.queryHomePatientList(recordResultReq); + return getDataTable(tRecordResps); + } + /** * 病人等待名单 * diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/TRecordMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/TRecordMapper.java index 6147914..fedcf65 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/TRecordMapper.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/TRecordMapper.java @@ -141,6 +141,8 @@ public interface TRecordMapper List selectTRecordListWithoutResult(TRecordResultReq tRecord); + List selectHomePatientList(TRecordResultReq tRecord); + TRecordResp selectById(Long id); /** diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/ITRecordService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/ITRecordService.java index 499e206..151519d 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/ITRecordService.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/ITRecordService.java @@ -72,6 +72,8 @@ public interface ITRecordService */ List selectTRecordListWithoutResult(TRecordResultReq tRecord); + List queryHomePatientList(TRecordResultReq tRecord); + /** * 根据患者记录id查询就诊记录详情 * diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TRecordServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TRecordServiceImpl.java index 7ceae93..dfee497 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TRecordServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TRecordServiceImpl.java @@ -141,6 +141,12 @@ public class TRecordServiceImpl implements ITRecordService return tRecordMapper.selectTRecordListWithoutResult(tRecord); } + @Override + public List queryHomePatientList(TRecordResultReq tRecord) { + List tRecordResps = tRecordMapper.selectHomePatientList(tRecord); + return tRecordResps; + } + @Override public TRecordResp selectById(Long id) { diff --git a/ruoyi-system/src/main/resources/mapper/system/TRecordMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TRecordMapper.xml index 2863bbb..961eb5c 100644 --- a/ruoyi-system/src/main/resources/mapper/system/TRecordMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/TRecordMapper.xml @@ -87,6 +87,66 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" LEFT JOIN t_patient tp ON tr.patient_id = tp.id + +