|
@@ -25,11 +25,11 @@ |
|
@@ -25,11 +25,11 @@ |
25
|
<!-- 该Mapper映射关系的作用,服务器:虚拟主机—>1:n ; 虚拟主机:交换机—>1:n 的关系映射 -->
|
25
|
<!-- 该Mapper映射关系的作用,服务器:虚拟主机—>1:n ; 虚拟主机:交换机—>1:n 的关系映射 -->
|
26
|
<resultMap id="ServerAndHostAndExchangeMap" type="com.sunyo.wlpt.message.bus.service.domain.BusServer"
|
26
|
<resultMap id="ServerAndHostAndExchangeMap" type="com.sunyo.wlpt.message.bus.service.domain.BusServer"
|
27
|
extends="BaseResultMap">
|
27
|
extends="BaseResultMap">
|
28
|
- <collection property="virtualHosts" ofType="com.sunyo.wlpt.message.bus.service.domain.VirtualHost">
|
28
|
+ <collection property="aliasList" ofType="com.sunyo.wlpt.message.bus.service.domain.VirtualHost">
|
29
|
<id column="vid" jdbcType="VARCHAR" property="id"/>
|
29
|
<id column="vid" jdbcType="VARCHAR" property="id"/>
|
30
|
<result column="virtual_host_name" jdbcType="VARCHAR" property="virtualHostName"/>
|
30
|
<result column="virtual_host_name" jdbcType="VARCHAR" property="virtualHostName"/>
|
31
|
<result column="virtual_host_name" jdbcType="VARCHAR" property="aliasName"/>
|
31
|
<result column="virtual_host_name" jdbcType="VARCHAR" property="aliasName"/>
|
32
|
- <collection property="busExchanges" ofType="com.sunyo.wlpt.message.bus.service.domain.BusExchange">
|
32
|
+ <collection property="aliasList" ofType="com.sunyo.wlpt.message.bus.service.domain.BusExchange">
|
33
|
<id column="eid" jdbcType="VARCHAR" property="id"/>
|
33
|
<id column="eid" jdbcType="VARCHAR" property="id"/>
|
34
|
<result column="exchange_name" jdbcType="VARCHAR" property="exchangeName"/>
|
34
|
<result column="exchange_name" jdbcType="VARCHAR" property="exchangeName"/>
|
35
|
<result column="exchange_name" jdbcType="VARCHAR" property="aliasName"/>
|
35
|
<result column="exchange_name" jdbcType="VARCHAR" property="aliasName"/>
|
|
@@ -72,7 +72,7 @@ |
|
@@ -72,7 +72,7 @@ |
72
|
s.id,s.server_name,v.id as vid,v.virtual_host_name,e.id as eid,e.exchange_name
|
72
|
s.id,s.server_name,v.id as vid,v.virtual_host_name,e.id as eid,e.exchange_name
|
73
|
from bus_server as s, virtual_host as v,bus_exchange as e
|
73
|
from bus_server as s, virtual_host as v,bus_exchange as e
|
74
|
where s.id = v.server_id
|
74
|
where s.id = v.server_id
|
75
|
- and vid = e.virtual_host_id
|
75
|
+ and v.id = e.virtual_host_id
|
76
|
</select>
|
76
|
</select>
|
77
|
<!-- 获取服务器列表,分页 -->
|
77
|
<!-- 获取服务器列表,分页 -->
|
78
|
<select id="selectBusServerList" parameterType="com.sunyo.wlpt.message.bus.service.domain.BusServer"
|
78
|
<select id="selectBusServerList" parameterType="com.sunyo.wlpt.message.bus.service.domain.BusServer"
|