liusheng
3 天以前 c80135e5c3f7bfab96ba558a910a06f1e587c53c
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatSpeciallistCategoryController.java
@@ -1,5 +1,6 @@
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;
@@ -26,8 +27,7 @@
@Api("专病患者分类")
@RestController
@RequestMapping("/smartor/patSpeciallistCategory")
public class PatSpeciallistCategoryController extends BaseController
{
public class PatSpeciallistCategoryController extends BaseController {
    @Autowired
    private IPatSpeciallistCategoryService patSpeciallistCategoryService;
@@ -37,8 +37,7 @@
    @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);
@@ -51,8 +50,7 @@
    //@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, "专病患者分类数据");
@@ -64,8 +62,7 @@
    @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));
    }
@@ -74,9 +71,9 @@
     */
    //@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));
    }
@@ -86,9 +83,9 @@
    @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));
    }
@@ -98,9 +95,8 @@
    @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));
    }
}