| | |
| | | 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("专病患者分类") |
| | | @RestController |
| | | @RequestMapping("/smartor/patSpeciallistCategory") |
| | | public class PatSpeciallistCategoryController extends BaseController |
| | | { |
| | | public class PatSpeciallistCategoryController extends BaseController { |
| | | @Autowired |
| | | private IPatSpeciallistCategoryService patSpeciallistCategoryService; |
| | | |
| | |
| | | @ApiOperation("查询专病患者分类列表") |
| | | //@PreAuthorize("@ss.hasPermi('system:category:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(PatSpeciallistCategory patSpeciallistCategory) |
| | | { |
| | | public TableDataInfo list(PatSpeciallistCategory patSpeciallistCategory) { |
| | | startPage(); |
| | | List<PatSpeciallistCategory> list = patSpeciallistCategoryService.selectPatSpeciallistCategoryList(patSpeciallistCategory); |
| | | return getDataTable(list); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('system:category:export')") |
| | | @Log(title = "专病患者分类", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, PatSpeciallistCategory patSpeciallistCategory) |
| | | { |
| | | public void export(HttpServletResponse response, PatSpeciallistCategory patSpeciallistCategory) { |
| | | List<PatSpeciallistCategory> list = patSpeciallistCategoryService.selectPatSpeciallistCategoryList(patSpeciallistCategory); |
| | | ExcelUtil<PatSpeciallistCategory> util = new ExcelUtil<PatSpeciallistCategory>(PatSpeciallistCategory.class); |
| | | util.exportExcel(response, list, "专病患者分类数据"); |
| | |
| | | @ApiOperation("获取专病患者分类详细信息") |
| | | //@PreAuthorize("@ss.hasPermi('system:category:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(patSpeciallistCategoryService.selectPatSpeciallistCategoryById(id)); |
| | | } |
| | | |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:category:add')") |
| | | @Log(title = "专病患者分类", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatSpeciallistCategory patSpeciallistCategory) |
| | | { |
| | | public AjaxResult add(@RequestBody PatSpeciallistCategory patSpeciallistCategory) { |
| | | return toAjax(patSpeciallistCategoryService.insertPatSpeciallistCategory(patSpeciallistCategory)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("修改专病患者分类") |
| | | //@PreAuthorize("@ss.hasPermi('system:category:edit')") |
| | | @Log(title = "专病患者分类", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatSpeciallistCategory patSpeciallistCategory) |
| | | { |
| | | public AjaxResult edit(@RequestBody PatSpeciallistCategory patSpeciallistCategory) { |
| | | return toAjax(patSpeciallistCategoryService.updatePatSpeciallistCategory(patSpeciallistCategory)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("删除专病患者分类") |
| | | //@PreAuthorize("@ss.hasPermi('system:category:remove')") |
| | | @Log(title = "专病患者分类", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(patSpeciallistCategoryService.deletePatSpeciallistCategoryByIds(ids)); |
| | | } |
| | | } |