|
@@ -1,13 +1,10 @@
|
|
|
package com.ruoyi.web.work.controller;
|
|
|
|
|
|
import java.util.Arrays;
|
|
|
-import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
-import java.util.Map;
|
|
|
|
|
|
import com.ruoyi.common.annotation.Anonymous;
|
|
|
-import com.ruoyi.web.work.domain.Patient;
|
|
|
-import com.ruoyi.web.work.domain.PatientCard;
|
|
|
+import com.ruoyi.web.work.domain.dto.PatientCardDto;
|
|
|
import com.ruoyi.web.work.domain.Pv1;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
@@ -34,12 +31,13 @@ public class Pv1Controller extends BaseController {
|
|
|
@Autowired
|
|
|
private IPv1Service pv1Service;
|
|
|
|
|
|
+
|
|
|
@ApiOperation(value = "获取所有科室")
|
|
|
@Anonymous
|
|
|
@GetMapping("/department")
|
|
|
public TableDataInfo getAllDepartment() {
|
|
|
startPage();
|
|
|
- List<PatientCard> list=pv1Service.getAllDepartment();
|
|
|
+ List<PatientCardDto> list=pv1Service.getAllDepartment();
|
|
|
return getDataTable(list);
|
|
|
}
|
|
|
|
|
@@ -50,7 +48,7 @@ public class Pv1Controller extends BaseController {
|
|
|
@RequestParam(value = "departmentName",required = false) String departmentName,
|
|
|
@RequestParam(value = "physician",required = false) String physician){
|
|
|
startPage();
|
|
|
- List<PatientCard> list=pv1Service.getPatientCardByNameOrDepartment(patientName,departmentName,physician);
|
|
|
+ List<PatientCardDto> list=pv1Service.getPatientCardByNameOrDepartment(patientName,departmentName,physician);
|
|
|
return getDataTable(list);
|
|
|
}
|
|
|
|