|
@@ -1,14 +1,13 @@
|
|
|
-package com.ruoyi.web.work.controller;
|
|
|
+package com.ruoyi.web.work.api;
|
|
|
|
|
|
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
-import com.ruoyi.web.work.domain.ObrRequest;
|
|
|
import com.ruoyi.web.work.domain.ObxResult;
|
|
|
-import com.ruoyi.web.work.service.ObrRequestService;
|
|
|
import com.ruoyi.web.work.service.ObxResultService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -18,8 +17,8 @@ import java.util.List;
|
|
|
|
|
|
@RestController
|
|
|
@RequestMapping("/work/obxResult")
|
|
|
-@Api(tags = "检测报告结果详情")
|
|
|
-public class ObxResultController {
|
|
|
+@Api(tags = "小程序检测报告结果详情")
|
|
|
+public class Api_ObxResultController {
|
|
|
|
|
|
@Autowired
|
|
|
private ObxResultService obxResultService;
|
|
@@ -27,11 +26,10 @@ public class ObxResultController {
|
|
|
|
|
|
/**
|
|
|
* 根据检测报告ID获取报告结果
|
|
|
- * @param cardId
|
|
|
+ * @param obrId
|
|
|
* @return
|
|
|
*/
|
|
|
@ApiOperation(value = "检测报告列表")
|
|
|
- //@PreAuthorize("@ss.hasPermi('work:template:list')")
|
|
|
@GetMapping("/{obrId}")
|
|
|
public AjaxResult getObxResultByObrId(@PathVariable String obrId){
|
|
|
List<ObxResult> obxResults = obxResultService.getObxResultByObrId(obrId);
|