| | |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.smartor.domain.PatMedRegistration; |
| | | import com.smartor.service.IPatMedRegistrationService; |
| | | 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.*; |
| | |
| | | * @author ruoyi |
| | | * @date 2024-08-01 |
| | | */ |
| | | @Api(description = " 患者挂号记录") |
| | | @RestController |
| | | @RequestMapping("/smartor/registration") |
| | | public class PatMedRegistrationController extends BaseController { |
| | |
| | | /** |
| | | * 查询患者挂号记录列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:registration:list')") |
| | | @ApiOperation("查询患者挂号记录列表") |
| | | //@PreAuthorize("@ss.hasPermi('system:registration:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(PatMedRegistration patMedRegistration) { |
| | | startPage(); |
| | |
| | | /** |
| | | * 导出患者挂号记录列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:registration:export')") |
| | | @ApiOperation("导出患者挂号记录列表") |
| | | //@PreAuthorize("@ss.hasPermi('system:registration:export')") |
| | | @Log(title = "患者挂号记录", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, PatMedRegistration patMedRegistration) { |
| | |
| | | /** |
| | | * 获取患者挂号记录详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:registration:query')") |
| | | @ApiOperation("获取患者挂号记录详细信息") |
| | | //@PreAuthorize("@ss.hasPermi('system:registration:query')") |
| | | @GetMapping(value = "/getInfo/{registid}") |
| | | public AjaxResult getInfo(@PathVariable("registid") Long registid) { |
| | | return success(patMedRegistrationService.selectPatMedRegistrationByRegistid(registid)); |
| | |
| | | /** |
| | | * 新增患者挂号记录 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:registration:add')") |
| | | @ApiOperation("新增患者挂号记录") |
| | | //@PreAuthorize("@ss.hasPermi('system:registration:add')") |
| | | @Log(title = "患者挂号记录", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatMedRegistration patMedRegistration) { |
| | |
| | | /** |
| | | * 修改患者挂号记录 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:registration:edit')") |
| | | @ApiOperation("修改患者挂号记录") |
| | | //@PreAuthorize("@ss.hasPermi('system:registration:edit')") |
| | | @Log(title = "患者挂号记录", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatMedRegistration patMedRegistration) { |
| | |
| | | /** |
| | | * 删除患者挂号记录 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:registration:remove')") |
| | | @ApiOperation("删除患者挂号记录") |
| | | //@PreAuthorize("@ss.hasPermi('system:registration:remove')") |
| | | @Log(title = "患者挂号记录", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{registids}") |
| | | public AjaxResult remove(@PathVariable Long[] registids) { |