网关路由增加类型查询

This commit is contained in:
akun 2024-05-23 09:20:49 +08:00
parent a7d7679047
commit 3af1185522
2 changed files with 2 additions and 1 deletions

View File

@ -35,6 +35,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="routeName != null and routeName != ''"> and route_name like concat('%', #{routeName}, '%')</if>
<if test="requestProtocol != null and requestProtocol != ''"> and request_protocol = #{requestProtocol}</if>
<if test="created != null "> and created = #{created}</if>
<if test="routeType != null "> and route_type = #{routeType}</if>
<if test="routeStatusActiveMonitoring != null "> and route_status_active_monitoring = #{routeStatusActiveMonitoring}</if>
<if test="appCode != null and appCode != ''"> and app_code = #{appCode}</if>
<if test="params.beginCreateTime != null and params.beginCreateTime != '' and params.endCreateTime != null and params.endCreateTime != ''"> and create_time between #{params.beginCreateTime} and #{params.endCreateTime}</if>

View File

@ -31,7 +31,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<include refid="selectGatewayServerVo"/>
<where>
<if test="serverName != null and serverName != ''"> and server_name like concat('%', #{serverName}, '%')</if>
<if test="serverAddress != null and serverAddress != ''"> and server_address = #{serverAddress}</if>
<if test="serverAddress != null and serverAddress != ''"> and server_address like concat('%', #{serverAddress}, '%')</if>
<if test="status != null and status != ''"> and status = #{status}</if>
<if test="serviceModel != null"> and service_model = #{serviceModel}</if>
<if test="serviceType != null"> and service_type = #{serviceType}</if>