| | |
| | | package com.smartor.controller; |
| | | |
| | | 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; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.smartor.domain.PatMedInhosp; |
| | | import com.smartor.service.IPatMedInhospService; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 患者住院记录Controller |
| | | * |
| | | * |
| | | * @author smartor |
| | | * @date 2023-03-04 |
| | | */ |
| | |
| | | */ |
| | | @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); |
| | |
| | | @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)); |
| | |
| | | @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)); |
| | |
| | | @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)); |