| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | @Api(description = "专病患者") |
| | | @RestController |
| | | @RequestMapping("/smartor/speciallist") |
| | | public class PatSpeciallistController extends BaseController |
| | | { |
| | | public class PatSpeciallistController extends BaseController { |
| | | @Autowired |
| | | private IPatSpeciallistService patSpeciallistService; |
| | | |
| | |
| | | //@PreAuthorize("@ss.hasPermi('system:speciallist:list')") |
| | | @ApiOperation("查询专病患者列表") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(PatSpeciallist patSpeciallist) |
| | | { |
| | | public TableDataInfo list(PatSpeciallist patSpeciallist) { |
| | | startPage(); |
| | | List<PatSpeciallist> list = patSpeciallistService.selectPatSpeciallistList(patSpeciallist); |
| | | return getDataTable(list); |
| | |
| | | @Log(title = "专病患者", businessType = BusinessType.EXPORT) |
| | | @ApiOperation("导出专病患者列表") |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, PatSpeciallist patSpeciallist) |
| | | { |
| | | public void export(HttpServletResponse response, PatSpeciallist patSpeciallist) { |
| | | List<PatSpeciallist> list = patSpeciallistService.selectPatSpeciallistList(patSpeciallist); |
| | | ExcelUtil<PatSpeciallist> util = new ExcelUtil<PatSpeciallist>(PatSpeciallist.class); |
| | | util.exportExcel(response, list, "专病患者数据"); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:speciallist:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(patSpeciallistService.selectPatSpeciallistById(id)); |
| | | } |
| | | |
| | |
| | | //@PreAuthorize("@ss.hasPermi('system:speciallist:add')") |
| | | @Log(title = "专病患者", businessType = BusinessType.INSERT) |
| | | @ApiOperation("新增专病患者") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatSpeciallist patSpeciallist) |
| | | { |
| | | public AjaxResult add(@RequestBody PatSpeciallist patSpeciallist) { |
| | | return toAjax(patSpeciallistService.insertPatSpeciallist(patSpeciallist)); |
| | | } |
| | | |
| | |
| | | //@PreAuthorize("@ss.hasPermi('system:speciallist:edit')") |
| | | @Log(title = "专病患者", businessType = BusinessType.UPDATE) |
| | | @ApiOperation("修改专病患者") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatSpeciallist patSpeciallist) |
| | | { |
| | | public AjaxResult edit(@RequestBody PatSpeciallist patSpeciallist) { |
| | | return toAjax(patSpeciallistService.updatePatSpeciallist(patSpeciallist)); |
| | | } |
| | | |
| | |
| | | //@PreAuthorize("@ss.hasPermi('system:speciallist:remove')") |
| | | @Log(title = "专病患者", businessType = BusinessType.DELETE) |
| | | @ApiOperation("删除专病患者") |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(patSpeciallistService.deletePatSpeciallistByIds(ids)); |
| | | } |
| | | } |