|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
|
|
<mapper namespace="com.sunyo.wlpt.message.bus.service.mapper.MessageRouterReciverFilterMapper" >
|
|
|
<resultMap id="BaseResultMap" type="com.sunyo.wlpt.message.bus.service.model.MessageRouterReciverFilter" >
|
|
|
<id column="id" property="id" jdbcType="VARCHAR" />
|
|
|
<result column="filter" property="filter" jdbcType="VARCHAR" />
|
|
|
<result column="filter_value" property="filterValue" jdbcType="VARCHAR" />
|
|
|
<result column="type" property="type" jdbcType="VARCHAR" />
|
|
|
<result column="status" property="status" jdbcType="BIT" />
|
|
|
<result column="message_router_reciver_id" property="messageRouterReciverId" jdbcType="VARCHAR" />
|
|
|
<result column="creat_time" property="creatTime" jdbcType="TIMESTAMP" />
|
|
|
<result column="update_time" property="updateTime" jdbcType="TIMESTAMP" />
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.sunyo.wlpt.message.bus.service.mapper.MessageRouterReciverFilterMapper">
|
|
|
<resultMap id="BaseResultMap" type="com.sunyo.wlpt.message.bus.service.model.MessageRouterReciverFilter">
|
|
|
<id column="id" jdbcType="VARCHAR" property="id" />
|
|
|
<result column="filter" jdbcType="VARCHAR" property="filter" />
|
|
|
<result column="filter_value" jdbcType="VARCHAR" property="filterValue" />
|
|
|
<result column="type" jdbcType="VARCHAR" property="type" />
|
|
|
<result column="status" jdbcType="BIT" property="status" />
|
|
|
<result column="message_router_reciver_id" jdbcType="VARCHAR" property="messageRouterReciverId" />
|
|
|
<result column="creat_time" jdbcType="TIMESTAMP" property="creatTime" />
|
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
|
<sql id="Base_Column_List">
|
|
|
id, filter, filter_value, type, status, message_router_reciver_id, creat_time, update_time
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from message_router_reciver_filter
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
delete from message_router_reciver_filter
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.sunyo.wlpt.message.bus.service.model.MessageRouterReciverFilter" >
|
|
|
<insert id="insert" parameterType="com.sunyo.wlpt.message.bus.service.model.MessageRouterReciverFilter">
|
|
|
insert into message_router_reciver_filter (id, filter, filter_value,
|
|
|
type, status, message_router_reciver_id,
|
|
|
creat_time, update_time)
|
...
|
...
|
@@ -32,89 +32,89 @@ |
|
|
#{type,jdbcType=VARCHAR}, #{status,jdbcType=BIT}, #{messageRouterReciverId,jdbcType=VARCHAR},
|
|
|
#{creatTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.sunyo.wlpt.message.bus.service.model.MessageRouterReciverFilter" >
|
|
|
<insert id="insertSelective" parameterType="com.sunyo.wlpt.message.bus.service.model.MessageRouterReciverFilter">
|
|
|
insert into message_router_reciver_filter
|
|
|
<trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
<if test="id != null" >
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
|
id,
|
|
|
</if>
|
|
|
<if test="filter != null" >
|
|
|
<if test="filter != null">
|
|
|
filter,
|
|
|
</if>
|
|
|
<if test="filterValue != null" >
|
|
|
<if test="filterValue != null">
|
|
|
filter_value,
|
|
|
</if>
|
|
|
<if test="type != null" >
|
|
|
<if test="type != null">
|
|
|
type,
|
|
|
</if>
|
|
|
<if test="status != null" >
|
|
|
<if test="status != null">
|
|
|
status,
|
|
|
</if>
|
|
|
<if test="messageRouterReciverId != null" >
|
|
|
<if test="messageRouterReciverId != null">
|
|
|
message_router_reciver_id,
|
|
|
</if>
|
|
|
<if test="creatTime != null" >
|
|
|
<if test="creatTime != null">
|
|
|
creat_time,
|
|
|
</if>
|
|
|
<if test="updateTime != null" >
|
|
|
<if test="updateTime != null">
|
|
|
update_time,
|
|
|
</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
<if test="id != null" >
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
|
#{id,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="filter != null" >
|
|
|
<if test="filter != null">
|
|
|
#{filter,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="filterValue != null" >
|
|
|
<if test="filterValue != null">
|
|
|
#{filterValue,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="type != null" >
|
|
|
<if test="type != null">
|
|
|
#{type,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="status != null" >
|
|
|
<if test="status != null">
|
|
|
#{status,jdbcType=BIT},
|
|
|
</if>
|
|
|
<if test="messageRouterReciverId != null" >
|
|
|
<if test="messageRouterReciverId != null">
|
|
|
#{messageRouterReciverId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="creatTime != null" >
|
|
|
<if test="creatTime != null">
|
|
|
#{creatTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="updateTime != null" >
|
|
|
<if test="updateTime != null">
|
|
|
#{updateTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.sunyo.wlpt.message.bus.service.model.MessageRouterReciverFilter" >
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.sunyo.wlpt.message.bus.service.model.MessageRouterReciverFilter">
|
|
|
update message_router_reciver_filter
|
|
|
<set >
|
|
|
<if test="filter != null" >
|
|
|
<set>
|
|
|
<if test="filter != null">
|
|
|
filter = #{filter,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="filterValue != null" >
|
|
|
<if test="filterValue != null">
|
|
|
filter_value = #{filterValue,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="type != null" >
|
|
|
<if test="type != null">
|
|
|
type = #{type,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="status != null" >
|
|
|
<if test="status != null">
|
|
|
status = #{status,jdbcType=BIT},
|
|
|
</if>
|
|
|
<if test="messageRouterReciverId != null" >
|
|
|
<if test="messageRouterReciverId != null">
|
|
|
message_router_reciver_id = #{messageRouterReciverId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="creatTime != null" >
|
|
|
<if test="creatTime != null">
|
|
|
creat_time = #{creatTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="updateTime != null" >
|
|
|
<if test="updateTime != null">
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.sunyo.wlpt.message.bus.service.model.MessageRouterReciverFilter" >
|
|
|
<update id="updateByPrimaryKey" parameterType="com.sunyo.wlpt.message.bus.service.model.MessageRouterReciverFilter">
|
|
|
update message_router_reciver_filter
|
|
|
set filter = #{filter,jdbcType=VARCHAR},
|
|
|
filter_value = #{filterValue,jdbcType=VARCHAR},
|
...
|
...
|
|