Forráskód Böngészése

feat(电子病例): 诊断管理分页

matianxiang 3 hónap óta
szülő
commit
e96278db8f

+ 4 - 2
eitc-patient-pc/src/main/java/com/eitc/patient/controller/DiagnosisManageController.java

@@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.core.toolkit.Wrappers;
6 6
 import com.eitc.common.annotation.Log;
7 7
 import com.eitc.common.core.controller.BaseController;
8 8
 import com.eitc.common.core.domain.AjaxResult;
9
+import com.eitc.common.core.page.TableDataInfo;
9 10
 import com.eitc.common.enums.BusinessType;
10 11
 import com.eitc.common.utils.poi.ExcelUtil;
11 12
 import com.eitc.patient.domain.DiagnosisManage;
@@ -50,15 +51,16 @@ public class DiagnosisManageController extends BaseController {
50 51
      */
51 52
     @GetMapping("/list")
52 53
     @ApiOperation("查询诊断管理")
53
-    public AjaxResult list(@ApiParam(name = "diagnosisParam", value = "搜索条件")
54
+    public TableDataInfo list(@ApiParam(name = "diagnosisParam", value = "搜索条件")
54 55
                            @RequestParam(name = "diagnosisParam", required = false) String diagnosisParam) {
56
+        startPage();
55 57
         LambdaQueryWrapper<DiagnosisManage> wrapper = Wrappers.lambdaQuery();
56 58
         if (StringUtils.isNotBlank(diagnosisParam)) {
57 59
             wrapper.like(DiagnosisManage::getDiagnosisName, diagnosisParam).or()
58 60
                     .like(DiagnosisManage::getDiagnosisCode, diagnosisParam);
59 61
         }
60 62
 
61
-        return success(diagnosisManageService.list(wrapper));
63
+        return getDataTable(diagnosisManageService.list(wrapper));
62 64
     }
63 65
 
64 66
     /**