|
|
|
@ -2,7 +2,9 @@ package com.ruoyi.web.controller.pc;
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
|
|
|
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
@ -27,6 +29,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
|
|
* @author ruoyi
|
|
|
|
|
* @date 2022-08-03
|
|
|
|
|
*/
|
|
|
|
|
@Api("pc-医院列表")
|
|
|
|
|
@RestController
|
|
|
|
|
@RequestMapping("/system/hospital")
|
|
|
|
|
public class THospitalController extends BaseController
|
|
|
|
@ -37,6 +40,7 @@ public class THospitalController extends BaseController
|
|
|
|
|
/**
|
|
|
|
|
* 查询医院信息列表
|
|
|
|
|
*/
|
|
|
|
|
@ApiOperation("查询医院信息列表")
|
|
|
|
|
@GetMapping("/list")
|
|
|
|
|
public TableDataInfo list(THospital tHospital)
|
|
|
|
|
{
|
|
|
|
@ -60,6 +64,7 @@ public class THospitalController extends BaseController
|
|
|
|
|
/**
|
|
|
|
|
* 获取医院信息详细信息
|
|
|
|
|
*/
|
|
|
|
|
@ApiOperation("获取医院信息详细信息")
|
|
|
|
|
@GetMapping(value = "/{id}")
|
|
|
|
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
|
|
|
|
{
|
|
|
|
@ -69,6 +74,7 @@ public class THospitalController extends BaseController
|
|
|
|
|
/**
|
|
|
|
|
* 新增医院信息
|
|
|
|
|
*/
|
|
|
|
|
@ApiOperation("新增医院信息")
|
|
|
|
|
@Log(title = "医院信息", businessType = BusinessType.INSERT)
|
|
|
|
|
@PostMapping
|
|
|
|
|
public AjaxResult add(@RequestBody THospital tHospital)
|
|
|
|
@ -79,6 +85,7 @@ public class THospitalController extends BaseController
|
|
|
|
|
/**
|
|
|
|
|
* 修改医院信息
|
|
|
|
|
*/
|
|
|
|
|
@ApiOperation("修改医院信息")
|
|
|
|
|
@Log(title = "医院信息", businessType = BusinessType.UPDATE)
|
|
|
|
|
@PutMapping
|
|
|
|
|
public AjaxResult edit(@RequestBody THospital tHospital)
|
|
|
|
@ -89,6 +96,7 @@ public class THospitalController extends BaseController
|
|
|
|
|
/**
|
|
|
|
|
* 删除医院信息
|
|
|
|
|
*/
|
|
|
|
|
@ApiOperation("删除医院信息")
|
|
|
|
|
@Log(title = "医院信息", businessType = BusinessType.DELETE)
|
|
|
|
|
@DeleteMapping("/{ids}")
|
|
|
|
|
public AjaxResult remove(@PathVariable Long[] ids)
|
|
|
|
|