|  |  | 
 |  |  | package com.ruoyi.web.controller.smartor; | 
 |  |  |  | 
 |  |  | import java.util.List; | 
 |  |  |  | 
 |  |  | import com.ruoyi.common.core.domain.entity.SysUser; | 
 |  |  | import com.ruoyi.common.core.domain.model.LoginUser; | 
 |  |  | import io.swagger.annotations.Api; | 
 |  |  | import io.swagger.annotations.ApiOperation; | 
 |  |  |  | 
 |  |  | import javax.servlet.http.HttpServletResponse; | 
 |  |  |  | 
 |  |  | import org.springframework.security.access.prepost.PreAuthorize; | 
 |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
 |  |  | import org.springframework.web.bind.annotation.GetMapping; | 
 |  |  | 
 |  |  | @Api("手术基础信息") | 
 |  |  | @RestController | 
 |  |  | @RequestMapping("/smartor/baseopera") | 
 |  |  | public class BaseDictOperationController extends BaseController | 
 |  |  | { | 
 |  |  | public class BaseDictOperationController extends BaseController { | 
 |  |  |     @Autowired | 
 |  |  |     private IBaseDictOperationService baseDictOperationService; | 
 |  |  |  | 
 |  |  | 
 |  |  |     @ApiOperation("查询患者检查检验记录子列表") | 
 |  |  |     //@PreAuthorize("@ss.hasPermi('smartor:operation:list')") | 
 |  |  |     @PostMapping("/list") | 
 |  |  |     public TableDataInfo list(BaseDictOperation baseDictOperation) | 
 |  |  |     { | 
 |  |  |     public TableDataInfo list(@RequestBody BaseDictOperation baseDictOperation) { | 
 |  |  |         startPage(); | 
 |  |  |         LoginUser loginUser = getLoginUser(); | 
 |  |  |         SysUser user = loginUser.getUser(); | 
 |  |  |         baseDictOperation.setOrgid(user.getOrgid()); | 
 |  |  |         List<BaseDictOperation> list = baseDictOperationService.selectBaseDictOperationList(baseDictOperation); | 
 |  |  |         return getDataTable(list); | 
 |  |  |     } | 
 |  |  | 
 |  |  |     //@PreAuthorize("@ss.hasPermi('smartor:operation:export')") | 
 |  |  |     @Log(title = "患者检查检验记录子", businessType = BusinessType.EXPORT) | 
 |  |  |     @PostMapping("/export") | 
 |  |  |     public void export(HttpServletResponse response, BaseDictOperation baseDictOperation) | 
 |  |  |     { | 
 |  |  |     public void export(HttpServletResponse response, BaseDictOperation baseDictOperation) { | 
 |  |  |         List<BaseDictOperation> list = baseDictOperationService.selectBaseDictOperationList(baseDictOperation); | 
 |  |  |         ExcelUtil<BaseDictOperation> util = new ExcelUtil<BaseDictOperation>(BaseDictOperation.class); | 
 |  |  |         util.exportExcel(response, list, "患者检查检验记录子数据"); | 
 |  |  | 
 |  |  |     @ApiOperation("获取患者检查检验记录子详细信息") | 
 |  |  |     //@PreAuthorize("@ss.hasPermi('smartor:operation:query')") | 
 |  |  |     @GetMapping(value = "/getInfo/{id}") | 
 |  |  |     public AjaxResult getInfo(@PathVariable("id") Long id) | 
 |  |  |     { | 
 |  |  |     public AjaxResult getInfo(@PathVariable("id") Long id) { | 
 |  |  |         return success(baseDictOperationService.selectBaseDictOperationById(id)); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  | 
 |  |  |     //@PreAuthorize("@ss.hasPermi('smartor:operation:add')") | 
 |  |  |     @Log(title = "患者检查检验记录子", businessType = BusinessType.INSERT) | 
 |  |  |     @PostMapping("/add") | 
 |  |  |     public AjaxResult add(@RequestBody BaseDictOperation baseDictOperation) | 
 |  |  |     { | 
 |  |  |     public AjaxResult add(@RequestBody BaseDictOperation baseDictOperation) { | 
 |  |  |         return toAjax(baseDictOperationService.insertBaseDictOperation(baseDictOperation)); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  | 
 |  |  |     //@PreAuthorize("@ss.hasPermi('smartor:operation:edit')") | 
 |  |  |     @Log(title = "患者检查检验记录子", businessType = BusinessType.UPDATE) | 
 |  |  |     @PostMapping("/edit") | 
 |  |  |     public AjaxResult edit(@RequestBody BaseDictOperation baseDictOperation) | 
 |  |  |     { | 
 |  |  |     public AjaxResult edit(@RequestBody BaseDictOperation baseDictOperation) { | 
 |  |  |         return toAjax(baseDictOperationService.updateBaseDictOperation(baseDictOperation)); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  | 
 |  |  |     @ApiOperation("删除患者检查检验记录子") | 
 |  |  |     //@PreAuthorize("@ss.hasPermi('smartor:operation: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(baseDictOperationService.deleteBaseDictOperationByIds(ids)); | 
 |  |  |     } | 
 |  |  | } |