已诊和和候诊列表加分页功能

master
chenfei 2 years ago
parent d1744dc12d
commit 3a89e0d94e

@ -3,6 +3,7 @@ package com.ruoyi.web.controller.api;
import com.ruoyi.common.annotation.Log; import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType; import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.THospital; import com.ruoyi.system.domain.THospital;
import com.ruoyi.system.domain.TPatient; import com.ruoyi.system.domain.TPatient;
@ -238,10 +239,10 @@ public class AppController extends BaseController
*/ */
@ApiOperation("患者已诊列表") @ApiOperation("患者已诊列表")
@GetMapping("/record/diagnosedList") @GetMapping("/record/diagnosedList")
public AjaxResult patientsDiagnosedList(TRecordResultReq recordResultReq) { public TableDataInfo patientsDiagnosedList(TRecordResultReq recordResultReq) {
recordResultReq.setStatus("1"); recordResultReq.setStatus("1");
startPage(); startPage();
return AjaxResult.success(tRecordService.selectTRecordListWithoutResult(recordResultReq)); return getDataTable(tRecordService.selectTRecordListWithoutResult(recordResultReq));
} }
/** /**
@ -252,10 +253,10 @@ public class AppController extends BaseController
*/ */
@ApiOperation("患者候诊列表") @ApiOperation("患者候诊列表")
@GetMapping("/record/waitingList") @GetMapping("/record/waitingList")
public AjaxResult patientsWaitingList(TRecordResultReq recordResultReq) { public TableDataInfo patientsWaitingList(TRecordResultReq recordResultReq) {
recordResultReq.setStatus("0"); recordResultReq.setStatus("0");
startPage(); startPage();
return AjaxResult.success(tRecordService.selectTRecordListWithoutResult(recordResultReq)); return getDataTable(tRecordService.selectTRecordListWithoutResult(recordResultReq));
} }
@ApiOperation("获取患者详细信息") @ApiOperation("获取患者详细信息")

Loading…
Cancel
Save