路由列表查询增加Appcode
This commit is contained in:
parent
91701462b3
commit
b9a3cd67b7
@ -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);
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user