| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | 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/item") |
| | | public class PatMedOperationItemController extends BaseController |
| | | { |
| | | public class PatMedOperationItemController extends BaseController { |
| | | @Autowired |
| | | private IPatMedOperationItemService patMedOperationItemService; |
| | | |
| | |
| | | @ApiOperation("查询患者检查检验记录子列表") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:item:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(PatMedOperationItem patMedOperationItem) |
| | | { |
| | | public TableDataInfo list(PatMedOperationItem patMedOperationItem) { |
| | | startPage(); |
| | | List<PatMedOperationItem> list = patMedOperationItemService.selectPatMedOperationItemList(patMedOperationItem); |
| | | return getDataTable(list); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:item:export')") |
| | | @Log(title = "患者检查检验记录子", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, PatMedOperationItem patMedOperationItem) |
| | | { |
| | | public void export(HttpServletResponse response, PatMedOperationItem patMedOperationItem) { |
| | | List<PatMedOperationItem> list = patMedOperationItemService.selectPatMedOperationItemList(patMedOperationItem); |
| | | ExcelUtil<PatMedOperationItem> util = new ExcelUtil<PatMedOperationItem>(PatMedOperationItem.class); |
| | | util.exportExcel(response, list, "患者检查检验记录子数据"); |
| | |
| | | @ApiOperation("获取患者检查检验记录子详细信息") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:item:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(patMedOperationItemService.selectPatMedOperationItemById(id)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("新增患者检查检验记录子") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:item:add')") |
| | | @Log(title = "患者检查检验记录子", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatMedOperationItem patMedOperationItem) |
| | | { |
| | | public AjaxResult add(@RequestBody PatMedOperationItem patMedOperationItem) { |
| | | return toAjax(patMedOperationItemService.insertPatMedOperationItem(patMedOperationItem)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("修改患者检查检验记录子") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:item:edit')") |
| | | @Log(title = "患者检查检验记录子", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatMedOperationItem patMedOperationItem) |
| | | { |
| | | public AjaxResult edit(@RequestBody PatMedOperationItem patMedOperationItem) { |
| | | return toAjax(patMedOperationItemService.updatePatMedOperationItem(patMedOperationItem)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("删除患者检查检验记录子") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:item: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(patMedOperationItemService.deletePatMedOperationItemByIds(ids)); |
| | | } |
| | | } |