liusheng
2024-01-30 7ae67ba965ea680407ae21fedbd035d43ce8c313
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedInhospController.java
@@ -2,6 +2,9 @@
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
@@ -27,6 +30,7 @@
 * @author smartor
 * @date 2023-03-04
 */
@Api(description = "患者住院记录")
@RestController
@RequestMapping("/smartor/patinhosp")
public class PatMedInhospController extends BaseController
@@ -37,9 +41,10 @@
    /**
     * 查询患者住院记录列表
     */
    @ApiOperation("查询患者住院记录列表")
    @PreAuthorize("@ss.hasPermi('smartor:patinhosp:list')")
    @GetMapping("/list")
    public TableDataInfo list(PatMedInhosp patMedInhosp)
    @PostMapping("/selectPatMedInhospList")
    public TableDataInfo selectPatMedInhosplist(@RequestBody  PatMedInhosp patMedInhosp)
    {
        startPage();
        List<PatMedInhosp> list = patMedInhospService.selectPatMedInhospList(patMedInhosp);
@@ -49,6 +54,7 @@
    /**
     * 导出患者住院记录列表
     */
    @ApiOperation("导出患者住院记录列表")
    @PreAuthorize("@ss.hasPermi('smartor:patinhosp:export')")
    @Log(title = "患者住院记录", businessType = BusinessType.EXPORT)
    @PostMapping("/export")
@@ -62,6 +68,7 @@
    /**
     * 获取患者住院记录详细信息
     */
    @ApiOperation("获取患者住院记录详细信息")
    @PreAuthorize("@ss.hasPermi('smartor:patinhosp:query')")
    @GetMapping(value = "/{inhospid}")
    public AjaxResult getInfo(@PathVariable("inhospid") Long inhospid)
@@ -72,9 +79,10 @@
    /**
     * 新增患者住院记录
     */
    @ApiOperation("新增患者住院记录")
    @PreAuthorize("@ss.hasPermi('smartor:patinhosp:add')")
    @Log(title = "患者住院记录", businessType = BusinessType.INSERT)
    @PostMapping
    @PostMapping("/add")
    public AjaxResult add(@RequestBody PatMedInhosp patMedInhosp)
    {
        return toAjax(patMedInhospService.insertPatMedInhosp(patMedInhosp));
@@ -83,9 +91,10 @@
    /**
     * 修改患者住院记录
     */
    @ApiOperation("修改患者住院记录")
    @PreAuthorize("@ss.hasPermi('smartor:patinhosp:edit')")
    @Log(title = "患者住院记录", businessType = BusinessType.UPDATE)
    @PutMapping
    @PostMapping("/edit")
    public AjaxResult edit(@RequestBody PatMedInhosp patMedInhosp)
    {
        return toAjax(patMedInhospService.updatePatMedInhosp(patMedInhosp));
@@ -94,9 +103,10 @@
    /**
     * 删除患者住院记录
     */
    @ApiOperation("删除患者住院记录")
    @PreAuthorize("@ss.hasPermi('smartor:patinhosp:remove')")
    @Log(title = "患者住院记录", businessType = BusinessType.DELETE)
   @DeleteMapping("/{inhospids}")
   @GetMapping("/remove/{inhospids}")
    public AjaxResult remove(@PathVariable Long[] inhospids)
    {
        return toAjax(patMedInhospService.deletePatMedInhospByInhospids(inhospids));