...
|
...
|
@@ -364,12 +364,12 @@ |
|
|
from user_message_binding
|
|
|
<where>
|
|
|
<!-- 所属用户id -->
|
|
|
<!-- <if test="userId != null and userId != ''">-->
|
|
|
<!-- user_id = #{userId,jdbcType=VARCHAR}-->
|
|
|
<!-- </if>-->
|
|
|
<if test="username != null and username != ''">
|
|
|
AND username = #{username,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
<!-- <if test="userId != null and userId != ''">-->
|
|
|
<!-- user_id = #{userId,jdbcType=VARCHAR}-->
|
|
|
<!-- </if>-->
|
|
|
<if test="username != null and username != ''">
|
|
|
AND username = #{username,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
<!-- 所属服务器id -->
|
|
|
<if test="serverId != null and serverId != ''">
|
|
|
AND server_id = #{serverId,jdbcType=VARCHAR}
|
...
|
...
|
@@ -399,8 +399,8 @@ |
|
|
from user_message_binding
|
|
|
<where>
|
|
|
<!-- 所属用户id -->
|
|
|
<if test="userId != null and userId != ''">
|
|
|
user_id = #{userId,jdbcType=VARCHAR}
|
|
|
<if test="username != null and username != ''">
|
|
|
username = #{username,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
<!-- 所属服务器id -->
|
|
|
<if test="serverId != null and serverId != ''">
|
...
|
...
|
@@ -449,4 +449,16 @@ |
|
|
</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
<select id="validateRabbitBinding" parameterType="com.sunyo.wlpt.message.bus.service.domain.UserMessageBinding"
|
|
|
resultMap="BaseResultMap">
|
|
|
select
|
|
|
<include refid="Base_Column_List"/>
|
|
|
from user_message_binding
|
|
|
<where>
|
|
|
queue_name = #{queueName,jdbcType=VARCHAR}
|
|
|
AND exchange_name = #{exchangeName,jdbcType=VARCHAR}
|
|
|
AND routing_key_name = #{routingKeyName,jdbcType=VARCHAR}
|
|
|
</where>
|
|
|
</select>
|
|
|
</mapper> |
|
|
\ No newline at end of file |
...
|
...
|
|