From 75da19eb41b0c622f09822348b8fa0cdc5c395bb Mon Sep 17 00:00:00 2001 From: memorylkf <312904636@qq.com> Date: Wed, 7 Jan 2026 13:21:21 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20[=E8=90=BD=E7=AC=94=E7=95=99=E7=97=95]?= =?UTF-8?q?=20=E6=B5=8B=E8=AF=95=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/hxhq/business/controller/TestController.java | 12 ++++++++++++ .../com/hxhq/business/service/impl/StudyServiceImpl.java | 6 +++--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/TestController.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/TestController.java index d456e61..d173fe9 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/TestController.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/TestController.java @@ -3,6 +3,7 @@ package com.hxhq.business.controller; import java.util.Arrays; import java.util.List; +import com.alibaba.fastjson2.JSONObject; import com.hxhq.common.core.web.controller.BaseController; import com.hxhq.common.core.web.domain.AjaxResult; import com.hxhq.common.core.web.page.TableDataInfo; @@ -62,4 +63,15 @@ public class TestController extends BaseController { return toAjax(testService.removeByIds(Arrays.asList(ids))); } + + + /** + * 查询落笔留痕 + */ + @GetMapping("/testLblh") + public AjaxResult testLblh(@RequestBody JSONObject json) + { + logger.info("落笔留痕请求:"+JSONObject.toJSONString(json)); + return AjaxResult.success(); + } } diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyServiceImpl.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyServiceImpl.java index 50a0779..5476d2a 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyServiceImpl.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyServiceImpl.java @@ -80,9 +80,9 @@ public class StudyServiceImpl extends ServiceImpl implements if(form.getStatus()!=null && form.getStatus().intValue()>0){ queryWrapper.eq("s.status",form.getStatus()); } - //又新增权限的表示SD,SD能看所有试验,其他只能看自己进入的试验 - String sdPermit = "business:study:add"; - if (!AuthUtil.hasPermi(sdPermit)) + //TFM看所有试验,其他只能看自己进入的试验 + String tmfRole = "TFM"; + if (!AuthUtil.hasRole(tmfRole)) { queryWrapper.apply("(\n" + "s.id IN (\n" +