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 cab9e006991e70d86a2cdd5530ef057b867a3c13..c61545cbd844adf05cf124f640309a23e462563c 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());