| | |
| | | package com.smartor.controller; |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | 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; |
| | |
| | | |
| | | /** |
| | | * 患者体检记录Controller |
| | | * |
| | | * |
| | | * @author smartor |
| | | * @date 2023-03-04 |
| | | */ |
| | | @Api(description = "患者体检记录") |
| | | @RestController |
| | | @RequestMapping("/smartor/patphysical") |
| | | public class PatMedPhysicalController extends BaseController |
| | |
| | | /** |
| | | * 查询患者体检记录列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:patphysical:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(PatMedPhysical patMedPhysical) |
| | | @ApiOperation("查询患者体检记录列表") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:patphysical:list')") |
| | | @PostMapping("/selectPatMedPhysicalList") |
| | | public TableDataInfo selectPatMedPhysicallist(@RequestBody PatMedPhysical patMedPhysical) |
| | | { |
| | | startPage(); |
| | | List<PatMedPhysical> list = patMedPhysicalService.selectPatMedPhysicalList(patMedPhysical); |
| | |
| | | /** |
| | | * 导出患者体检记录列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:patphysical:export')") |
| | | @ApiOperation("导出患者体检记录列表") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:patphysical:export')") |
| | | @Log(title = "患者体检记录", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, PatMedPhysical patMedPhysical) |
| | |
| | | /** |
| | | * 获取患者体检记录详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:patphysical:query')") |
| | | @ApiOperation("获取患者体检记录详细信息") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:patphysical:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | |
| | | /** |
| | | * 新增患者体检记录 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:patphysical:add')") |
| | | @ApiOperation("新增患者体检记录") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:patphysical:add')") |
| | | @Log(title = "患者体检记录", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatMedPhysical patMedPhysical) |
| | | { |
| | | return toAjax(patMedPhysicalService.insertPatMedPhysical(patMedPhysical)); |
| | |
| | | /** |
| | | * 修改患者体检记录 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:patphysical:edit')") |
| | | @ApiOperation("修改患者体检记录") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:patphysical:edit')") |
| | | @Log(title = "患者体检记录", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatMedPhysical patMedPhysical) |
| | | { |
| | | return toAjax(patMedPhysicalService.updatePatMedPhysical(patMedPhysical)); |
| | |
| | | /** |
| | | * 删除患者体检记录 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:patphysical:remove')") |
| | | @ApiOperation("删除患者体检记录") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:patphysical:remove')") |
| | | @Log(title = "患者体检记录", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | return toAjax(patMedPhysicalService.deletePatMedPhysicalByIds(ids)); |