路由列表查询增加Appcode

This commit is contained in:
akun 2024-05-16 14:12:32 +08:00
parent 91701462b3
commit b9a3cd67b7
2 changed files with 2 additions and 0 deletions

View File

@ -50,6 +50,7 @@ public class GatewayRouteController extends BaseController
@GetMapping("/list")
public TableDataInfo list(GatewayRoute gatewayRoute)
{
gatewayRoute.setAppCode(AppUtils.getAppCodeFromRequestHeader());
startPage();
List<GatewayRoute> list = gatewayRouteService.selectGatewayRouteList(gatewayRoute);
TableDataInfo tableDataInfo = getDataTable(list);

View File

@ -36,6 +36,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="requestProtocol != null and requestProtocol != ''"> and request_protocol = #{requestProtocol}</if>
<if test="created != null "> and created = #{created}</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>
<if test="params.ids != null and params.ids.size() > 0">
and id in