| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import cn.hutool.db.Page; |
| | | 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; |
| | |
| | | * 查询病史列表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:history:list')") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/selectMedicalHistoryList") |
| | | @ApiOperation("查询病史列表") |
| | | public TableDataInfo selectMedicalHistorylist(@RequestBody MedicalHistory medicalHistory) { |
| | | PageUtils.startPageByPost(medicalHistory.getPageNum(),medicalHistory.getPageSize()); |
| | | public TableDataInfo selectMedicalHistorylist(@RequestBody MedicalHistory medicalHistory) { |
| | | PageUtils.startPageByPost(medicalHistory.getPageNum(), medicalHistory.getPageSize()); |
| | | List<MedicalHistory> list = medicalHistoryService.selectMedicalHistoryList(medicalHistory); |
| | | return getDataTable(list); |
| | | } |
| | |
| | | //@PreAuthorize("@ss.hasPermi('system:history:query')") |
| | | @ApiOperation("获取病史详细信息") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id,@PathVariable("pid") Long pid) { |
| | | public AjaxResult getInfo(@PathVariable("id") Long id, @PathVariable("pid") Long pid) { |
| | | return success(medicalHistoryService.selectMedicalHistoryById(id)); |
| | | } |
| | | |
| | |
| | | //@PreAuthorize("@ss.hasPermi('system:history:add')") |
| | | @Log(title = "病史", businessType = BusinessType.INSERT) |
| | | @ApiOperation("新增病史") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody MedicalHistory medicalHistory) { |
| | | medicalHistory.setOrgid(getOrgid()); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('system:history:edit')") |
| | | @Log(title = "病史", businessType = BusinessType.UPDATE) |
| | | @ApiOperation("修改病史") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody MedicalHistory medicalHistory) { |
| | | return toAjax(medicalHistoryService.updateMedicalHistory(medicalHistory)); |