|
@@ -4,8 +4,9 @@ import java.util.Arrays;
|
|
|
import java.util.List;
|
|
|
|
|
|
import com.ruoyi.common.annotation.Anonymous;
|
|
|
+import com.ruoyi.web.work.domain.Visit;
|
|
|
import com.ruoyi.web.work.domain.dto.PatientCardDto;
|
|
|
-import com.ruoyi.web.work.domain.Pv1;
|
|
|
+import com.ruoyi.web.work.service.IVisitService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -14,7 +15,6 @@ import com.ruoyi.common.annotation.Log;
|
|
|
import com.ruoyi.common.core.controller.BaseController;
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
import com.ruoyi.common.enums.BusinessType;
|
|
|
-import com.ruoyi.web.work.service.IPv1Service;
|
|
|
import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
|
|
|
/**
|
|
@@ -25,11 +25,12 @@ import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
@Api(tags = "住院信息管理")
|
|
|
@Anonymous
|
|
|
@RestController
|
|
|
-@RequestMapping("/work/pv1")
|
|
|
-public class Pv1Controller extends BaseController {
|
|
|
+@RequestMapping("/work/visit")
|
|
|
+public class VisitController extends BaseController {
|
|
|
|
|
|
@Autowired
|
|
|
- private IPv1Service pv1Service;
|
|
|
+ private IVisitService visitService;
|
|
|
+
|
|
|
|
|
|
//@PreAuthorize("@ss.hasPermi('work:pv1:list')")
|
|
|
@ApiOperation(value = "获取所有科室")
|
|
@@ -37,7 +38,7 @@ public class Pv1Controller extends BaseController {
|
|
|
@GetMapping("/department")
|
|
|
public TableDataInfo getAllDepartment() {
|
|
|
startPage();
|
|
|
- List<PatientCardDto> list=pv1Service.getAllDepartment();
|
|
|
+ List<PatientCardDto> list=visitService.getAllDepartment();
|
|
|
return getDataTable(list);
|
|
|
}
|
|
|
|
|
@@ -48,7 +49,7 @@ public class Pv1Controller extends BaseController {
|
|
|
@RequestParam(value = "departmentName",required = false) String departmentName,
|
|
|
@RequestParam(value = "physician",required = false) String physician){
|
|
|
startPage();
|
|
|
- List<PatientCardDto> list=pv1Service.getPatientCardByNameOrDepartment(patientName,departmentName,physician);
|
|
|
+ List<PatientCardDto> list=visitService.getPatientCardByNameOrDepartmentOrPhysician(patientName,departmentName,physician);
|
|
|
return getDataTable(list);
|
|
|
}
|
|
|
|
|
@@ -57,9 +58,9 @@ public class Pv1Controller extends BaseController {
|
|
|
@Anonymous
|
|
|
//@PreAuthorize("@ss.hasPermi('work:pv1:list')")
|
|
|
@GetMapping("/list")
|
|
|
- public TableDataInfo list(Pv1 pv1){
|
|
|
+ public TableDataInfo list(Visit visit){
|
|
|
startPage();
|
|
|
- List<Pv1> list = pv1Service.selectList(pv1);
|
|
|
+ List<Visit> list = visitService.selectList(visit);
|
|
|
return getDataTable(list);
|
|
|
}
|
|
|
|
|
@@ -68,7 +69,7 @@ public class Pv1Controller extends BaseController {
|
|
|
//@PreAuthorize("@ss.hasPermi('work:pv1:query')")
|
|
|
@GetMapping(value = "/detail/{id}")
|
|
|
public AjaxResult detail(@PathVariable("id") Long id){
|
|
|
- return AjaxResult.success(pv1Service.getById(id));
|
|
|
+ return AjaxResult.success(visitService.getById(id));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "添加住院信息")
|
|
@@ -76,8 +77,8 @@ public class Pv1Controller extends BaseController {
|
|
|
//@PreAuthorize("@ss.hasPermi('work:pv1:add')")
|
|
|
@Log(title = "住院信息", businessType = BusinessType.INSERT)
|
|
|
@PostMapping("/add")
|
|
|
- public AjaxResult add(@RequestBody Pv1 pv1){
|
|
|
- return toAjax(pv1Service.save(pv1));
|
|
|
+ public AjaxResult add(@RequestBody Visit pv1){
|
|
|
+ return toAjax(visitService.save(pv1));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "修改住院信息")
|
|
@@ -85,8 +86,8 @@ public class Pv1Controller extends BaseController {
|
|
|
//@PreAuthorize("@ss.hasPermi('work:pv1:edit')")
|
|
|
@Log(title = "住院信息", businessType = BusinessType.UPDATE)
|
|
|
@PostMapping("/edit")
|
|
|
- public AjaxResult edit(@RequestBody Pv1 pv1){
|
|
|
- return toAjax(pv1Service.updateById(pv1));
|
|
|
+ public AjaxResult edit(@RequestBody Visit pv1){
|
|
|
+ return toAjax(visitService.updateById(pv1));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "删除住院信息")
|
|
@@ -95,6 +96,6 @@ public class Pv1Controller extends BaseController {
|
|
|
@Log(title = "住院信息", businessType = BusinessType.DELETE)
|
|
|
@GetMapping("/remove/{ids}")
|
|
|
public AjaxResult remove(@PathVariable Long[] ids){
|
|
|
- return toAjax(pv1Service.removeByIds(Arrays.asList(ids)));
|
|
|
+ return toAjax(visitService.removeByIds(Arrays.asList(ids)));
|
|
|
}
|
|
|
}
|