From 2a014dba5702d1cb8454e757a408f04bc04dd6d7 Mon Sep 17 00:00:00 2001 From: heminjian502 Date: Thu, 18 Aug 2022 00:05:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8C=BB=E7=94=9F=E5=BE=AE=E4=BF=A1=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/controller/api/AppController.java | 10 ++++ .../ruoyi/system/mapper/TRecordMapper.java | 2 + .../ruoyi/system/service/ITRecordService.java | 2 + .../service/impl/TRecordServiceImpl.java | 6 ++ .../resources/mapper/system/TRecordMapper.xml | 60 +++++++++++++++++++ 5 files changed, 80 insertions(+) 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 + +