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 9e8e296..9a3c829 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 @@ -415,7 +415,7 @@ public class AppController extends BaseController { // recordResultReq.setStatus("0"); startPage(); - return getDataTable(tRecordService.selectTRecordListWithoutResult(recordResultReq)); + return getDataTable(tRecordService.selectTodayRecord(recordResultReq)); } @ApiOperation("小程序获取患者详细信息") 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 c25dce4..02ae4fb 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 @@ -138,6 +138,14 @@ public interface TRecordMapper List selectTRecordListWithoutResult(TRecordResultReq tRecord); + /** + * 查询今天记录 + * + * @param tRecord t记录 + * @return {@code List} + */ + List selectTodayRecord(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 de88a5b..333c828 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 @@ -108,4 +108,12 @@ public interface ITRecordService int queryDoctorNumberOfDiagnosis(Long doctorId); List queryPatientHistoryRecord(TRecord tRecord); + + /** + * 查询今天记录 + * + * @param tRecord t记录 + * @return {@code List} + */ + List selectTodayRecord(TRecordResultReq tRecord); } 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 e2c0436..2679b6c 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 @@ -287,5 +287,16 @@ public class TRecordServiceImpl implements ITRecordService return tRecordMapper.queryPatientHistoryRecord(tRecord); } + /** + * 查询今天记录 + * + * @param tRecord t记录 + * @return {@code List} + */ + @Override + public List selectTodayRecord(TRecordResultReq tRecord) { + return tRecordMapper.selectTodayRecord(tRecord); + } + } diff --git a/ruoyi-system/src/main/resources/mapper/system/TRecordMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TRecordMapper.xml index 5497226..fd84008 100644 --- a/ruoyi-system/src/main/resources/mapper/system/TRecordMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/TRecordMapper.xml @@ -303,6 +303,36 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" order by tp.create_time ${firstVisitOder} + +