|
@@ -2,14 +2,12 @@ package com.ruoyi.web.work.controller;
|
|
|
|
|
|
import java.util.Arrays;
|
|
|
import java.util.List;
|
|
|
+
|
|
|
+import com.ruoyi.common.annotation.Anonymous;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.PathVariable;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
import com.ruoyi.common.annotation.Log;
|
|
|
import com.ruoyi.common.core.controller.BaseController;
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
@@ -23,13 +21,25 @@ import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
* @author lsw
|
|
|
* @date 2024-07-23
|
|
|
*/
|
|
|
+@Anonymous
|
|
|
@RestController
|
|
|
@RequestMapping("/work/obx")
|
|
|
public class ObxController extends BaseController {
|
|
|
@Autowired
|
|
|
private IObxService obxService;
|
|
|
|
|
|
- @PreAuthorize("@ss.hasPermi('work:obx:list')")
|
|
|
+ @ApiOperation(value = "根据就诊卡号获取患者的全部检查项目",notes = "通过就诊卡号获取")
|
|
|
+ @Anonymous
|
|
|
+ //@PreAuthorize("@ss.hasPermi('work:obx:list')")
|
|
|
+ @GetMapping("/patientObx")
|
|
|
+ public TableDataInfo getPatientObxByCard(@RequestParam("card") String card){
|
|
|
+ startPage();
|
|
|
+ List<Obx> list = obxService.getPatientObxByCard(card);
|
|
|
+ return getDataTable(list);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Anonymous
|
|
|
+ //@PreAuthorize("@ss.hasPermi('work:obx:list')")
|
|
|
@GetMapping("/list")
|
|
|
public TableDataInfo list(Obx obx){
|
|
|
startPage();
|
|
@@ -37,27 +47,31 @@ public class ObxController extends BaseController {
|
|
|
return getDataTable(list);
|
|
|
}
|
|
|
|
|
|
- @PreAuthorize("@ss.hasPermi('work:obx:query')")
|
|
|
+ @Anonymous
|
|
|
+ //@PreAuthorize("@ss.hasPermi('work:obx:query')")
|
|
|
@GetMapping(value = "/detail/{id}")
|
|
|
public AjaxResult detail(@PathVariable("id") Long id){
|
|
|
return AjaxResult.success(obxService.getById(id));
|
|
|
}
|
|
|
|
|
|
- @PreAuthorize("@ss.hasPermi('work:obx:add')")
|
|
|
+ @Anonymous
|
|
|
+ //@PreAuthorize("@ss.hasPermi('work:obx:add')")
|
|
|
@Log(title = "obx", businessType = BusinessType.INSERT)
|
|
|
@PostMapping("/add")
|
|
|
public AjaxResult add(@RequestBody Obx obx){
|
|
|
return toAjax(obxService.save(obx));
|
|
|
}
|
|
|
|
|
|
- @PreAuthorize("@ss.hasPermi('work:obx:edit')")
|
|
|
+ @Anonymous
|
|
|
+ //@PreAuthorize("@ss.hasPermi('work:obx:edit')")
|
|
|
@Log(title = "obx", businessType = BusinessType.UPDATE)
|
|
|
@PostMapping("/edit")
|
|
|
public AjaxResult edit(@RequestBody Obx obx){
|
|
|
return toAjax(obxService.updateById(obx));
|
|
|
}
|
|
|
|
|
|
- @PreAuthorize("@ss.hasPermi('work:obx:remove')")
|
|
|
+ @Anonymous
|
|
|
+ //@PreAuthorize("@ss.hasPermi('work:obx:remove')")
|
|
|
@Log(title = "obx", businessType = BusinessType.DELETE)
|
|
|
@GetMapping("/remove/{ids}")
|
|
|
public AjaxResult remove(@PathVariable Long[] ids){
|