Merge branch 'deployment_gateway_20240416' of https://codeup.aliyun.com/zsmarter/sac/server/smarterFramework into deployment_gateway_20240416

* 'deployment_gateway_20240416' of https://codeup.aliyun.com/zsmarter/sac/server/smarterFramework:
  路由列表查询增加Appcode
This commit is contained in:
ztzh_xieyun 2024-05-16 14:54:19 +08:00
commit f590dd5c64
2 changed files with 2 additions and 0 deletions

View File

@ -50,6 +50,7 @@ public class GatewayRouteController extends BaseController
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(GatewayRoute gatewayRoute) public TableDataInfo list(GatewayRoute gatewayRoute)
{ {
gatewayRoute.setAppCode(AppUtils.getAppCodeFromRequestHeader());
startPage(); startPage();
List<GatewayRoute> list = gatewayRouteService.selectGatewayRouteList(gatewayRoute); List<GatewayRoute> list = gatewayRouteService.selectGatewayRouteList(gatewayRoute);
TableDataInfo tableDataInfo = getDataTable(list); 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="requestProtocol != null and requestProtocol != ''"> and request_protocol = #{requestProtocol}</if>
<if test="created != null "> and created = #{created}</if> <if test="created != null "> and created = #{created}</if>
<if test="routeStatusActiveMonitoring != null "> and route_status_active_monitoring = #{routeStatusActiveMonitoring}</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.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"> <if test="params.ids != null and params.ids.size() > 0">
and id in and id in