From d697333b185ed9994ad1f537e970e2dbbb11a79e Mon Sep 17 00:00:00 2001 From: "1437892690@qq.com" <1437892690@qq.com> Date: Tue, 3 Dec 2024 15:14:03 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=8A=9F=E8=83=BD]=20=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E5=AE=A1=E8=AE=A1=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 关联 #[1300078306754560]接口审计优化 http://192.168.0.96:8090/demo/rdm.html#/story-detail/939050947543040/939050947543042/1300078306754560 --- .../api/apimanage/ApiManageNeedAuditUpdateApi.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/main/java/neatlogic/module/tenant/api/apimanage/ApiManageNeedAuditUpdateApi.java b/src/main/java/neatlogic/module/tenant/api/apimanage/ApiManageNeedAuditUpdateApi.java index cab9e006..c61545cb 100644 --- a/src/main/java/neatlogic/module/tenant/api/apimanage/ApiManageNeedAuditUpdateApi.java +++ b/src/main/java/neatlogic/module/tenant/api/apimanage/ApiManageNeedAuditUpdateApi.java @@ -15,20 +15,22 @@ along with this program. If not, see .*/ package neatlogic.module.tenant.api.apimanage; +import com.alibaba.fastjson.JSONObject; import neatlogic.framework.auth.core.AuthAction; import neatlogic.framework.auth.label.INTERFACE_MODIFY; import neatlogic.framework.common.constvalue.ApiParamType; import neatlogic.framework.exception.type.ApiNotFoundException; -import neatlogic.framework.restful.annotation.*; +import neatlogic.framework.restful.annotation.Description; +import neatlogic.framework.restful.annotation.Input; +import neatlogic.framework.restful.annotation.OperationType; +import neatlogic.framework.restful.annotation.Param; import neatlogic.framework.restful.constvalue.OperationTypeEnum; import neatlogic.framework.restful.core.privateapi.PrivateApiComponentBase; import neatlogic.framework.restful.core.privateapi.PrivateApiComponentFactory; import neatlogic.framework.restful.core.publicapi.PublicApiComponentFactory; -import neatlogic.framework.restful.dao.mapper.ApiAuditMapper; import neatlogic.framework.restful.dao.mapper.ApiMapper; import neatlogic.framework.restful.dto.ApiVo; import neatlogic.framework.util.RegexUtils; -import com.alibaba.fastjson.JSONObject; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -42,9 +44,6 @@ public class ApiManageNeedAuditUpdateApi extends PrivateApiComponentBase { @Autowired private ApiMapper ApiMapper; - @Autowired - private ApiAuditMapper apiAuditMapper; - @Override public String getToken() { return "apimanage/needaudit/udpate"; @@ -69,7 +68,7 @@ public class ApiManageNeedAuditUpdateApi extends PrivateApiComponentBase { String token = jsonObj.getString("token"); ApiVo apiVo = ApiMapper.getApiByToken(token); if (apiVo != null) { - apiAuditMapper.updateApiNeedAuditByToken(token); + ApiMapper.updateApiNeedAuditByToken(token); return 1 - apiVo.getNeedAudit(); } else { ApiVo ramApiVo = PrivateApiComponentFactory.getApiByToken(apiVo.getToken()); -- Gitee