소스 검색

fix client/inf 修复未APIID参数查询问题。

bianlz 2 주 전
부모
커밋
2446aefb6d

+ 4 - 0
op-admin-server-client/src/main/java/com/hrsk/cloud/op/client/dto/command/EgressApiEndpointQry.java

@@ -10,6 +10,10 @@ import lombok.Data;
  **/
 @Data
 public class EgressApiEndpointQry extends AntDQuery {
+    /**
+     * APIID
+     */
+    private Long apiId;
     /**
      * API名称
      */

+ 3 - 0
op-admin-server-infrastructure/src/main/resources/mybatis/EgressApiEndpointMapper.xml

@@ -11,6 +11,9 @@
         <if test="apiName!=null" >
             and ea.api_name = like concat('%', #{apiName}, '%')
         </if>
+        <if test="apiId!=null and apiId > 0" >
+            and epe.api_id = #{apiId}
+        </if>
         <if test="endpointName!=null" >
             and epe.endpoint_name like concat('%', #{endpointName}, '%')
         </if>