| | |
| | | |
| | | 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; |
| | |
| | | * @author smartor |
| | | * @date 2023-03-04 |
| | | */ |
| | | @Api(description = "患者住院记录") |
| | | @RestController |
| | | @RequestMapping("/smartor/patinhosp") |
| | | public class PatMedInhospController extends BaseController |
| | |
| | | /** |
| | | * 查询患者住院记录列表 |
| | | */ |
| | | @ApiOperation("查询患者住院记录列表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patinhosp:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(PatMedInhosp patMedInhosp) |
| | |
| | | /** |
| | | * 导出患者住院记录列表 |
| | | */ |
| | | @ApiOperation("导出患者住院记录列表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patinhosp:export')") |
| | | @Log(title = "患者住院记录", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | |
| | | /** |
| | | * 获取患者住院记录详细信息 |
| | | */ |
| | | @ApiOperation("获取患者住院记录详细信息") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patinhosp:query')") |
| | | @GetMapping(value = "/{inhospid}") |
| | | public AjaxResult getInfo(@PathVariable("inhospid") Long inhospid) |
| | |
| | | /** |
| | | * 新增患者住院记录 |
| | | */ |
| | | @ApiOperation("新增患者住院记录") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patinhosp:add')") |
| | | @Log(title = "患者住院记录", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | |
| | | /** |
| | | * 修改患者住院记录 |
| | | */ |
| | | @ApiOperation("修改患者住院记录") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patinhosp:edit')") |
| | | @Log(title = "患者住院记录", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | |
| | | /** |
| | | * 删除患者住院记录 |
| | | */ |
| | | @ApiOperation("删除患者住院记录") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patinhosp:remove')") |
| | | @Log(title = "患者住院记录", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{inhospids}") |