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