Quellcode durchsuchen

生成的文件

limin vor 7 Jahren
Ursprung
Commit
b4c788d0a8

+ 96 - 0
src/main/java/com/goafanti/common/dao/JtMessageConsumerMapper.java

@@ -0,0 +1,96 @@
+package com.goafanti.common.dao;
+
+import com.goafanti.common.model.JtMessageConsumer;
+import com.goafanti.common.model.JtMessageConsumerExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface JtMessageConsumerMapper {
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_message_consumer
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    int countByExample(JtMessageConsumerExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_message_consumer
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    int deleteByExample(JtMessageConsumerExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_message_consumer
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    int deleteByPrimaryKey(String id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_message_consumer
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    int insert(JtMessageConsumer record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_message_consumer
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    int insertSelective(JtMessageConsumer record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_message_consumer
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    List<JtMessageConsumer> selectByExample(JtMessageConsumerExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_message_consumer
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    JtMessageConsumer selectByPrimaryKey(String id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_message_consumer
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    int updateByExampleSelective(@Param("record") JtMessageConsumer record, @Param("example") JtMessageConsumerExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_message_consumer
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    int updateByExample(@Param("record") JtMessageConsumer record, @Param("example") JtMessageConsumerExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_message_consumer
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    int updateByPrimaryKeySelective(JtMessageConsumer record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_message_consumer
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    int updateByPrimaryKey(JtMessageConsumer record);
+}

+ 96 - 0
src/main/java/com/goafanti/common/dao/JtMessageProducerMapper.java

@@ -0,0 +1,96 @@
+package com.goafanti.common.dao;
+
+import com.goafanti.common.model.JtMessageProducer;
+import com.goafanti.common.model.JtMessageProducerExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface JtMessageProducerMapper {
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_message_producer
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    int countByExample(JtMessageProducerExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_message_producer
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    int deleteByExample(JtMessageProducerExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_message_producer
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    int deleteByPrimaryKey(String id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_message_producer
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    int insert(JtMessageProducer record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_message_producer
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    int insertSelective(JtMessageProducer record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_message_producer
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    List<JtMessageProducer> selectByExample(JtMessageProducerExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_message_producer
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    JtMessageProducer selectByPrimaryKey(String id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_message_producer
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    int updateByExampleSelective(@Param("record") JtMessageProducer record, @Param("example") JtMessageProducerExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_message_producer
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    int updateByExample(@Param("record") JtMessageProducer record, @Param("example") JtMessageProducerExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_message_producer
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    int updateByPrimaryKeySelective(JtMessageProducer record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_message_producer
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    int updateByPrimaryKey(JtMessageProducer record);
+}

+ 286 - 0
src/main/java/com/goafanti/common/mapper/JtMessageConsumerMapper.xml

@@ -0,0 +1,286 @@
+<?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.goafanti.common.dao.JtMessageConsumerMapper">
+  <resultMap id="BaseResultMap" type="com.goafanti.common.model.JtMessageConsumer">
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Tue Aug 28 17:44:59 CST 2018.
+    -->
+    <id column="id" jdbcType="VARCHAR" property="id" />
+    <result column="aid" jdbcType="VARCHAR" property="aid" />
+    <result column="message_id" jdbcType="VARCHAR" property="messageId" />
+    <result column="is_read" jdbcType="TINYINT" property="isRead" />
+    <result column="delete_sign" jdbcType="TINYINT" property="deleteSign" />
+  </resultMap>
+  <sql id="Example_Where_Clause">
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Tue Aug 28 17:44:59 CST 2018.
+    -->
+    <where>
+      <foreach collection="oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Update_By_Example_Where_Clause">
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Tue Aug 28 17:44:59 CST 2018.
+    -->
+    <where>
+      <foreach collection="example.oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Base_Column_List">
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Tue Aug 28 17:44:59 CST 2018.
+    -->
+    id, aid, message_id, is_read, delete_sign
+  </sql>
+  <select id="selectByExample" parameterType="com.goafanti.common.model.JtMessageConsumerExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Tue Aug 28 17:44:59 CST 2018.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from jt_message_consumer
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </if>
+  </select>
+  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Tue Aug 28 17:44:59 CST 2018.
+    -->
+    select 
+    <include refid="Base_Column_List" />
+    from jt_message_consumer
+    where id = #{id,jdbcType=VARCHAR}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Tue Aug 28 17:44:59 CST 2018.
+    -->
+    delete from jt_message_consumer
+    where id = #{id,jdbcType=VARCHAR}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.goafanti.common.model.JtMessageConsumerExample">
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Tue Aug 28 17:44:59 CST 2018.
+    -->
+    delete from jt_message_consumer
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.goafanti.common.model.JtMessageConsumer">
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Tue Aug 28 17:44:59 CST 2018.
+    -->
+    insert into jt_message_consumer (id, aid, message_id, 
+      is_read, delete_sign)
+    values (#{id,jdbcType=VARCHAR}, #{aid,jdbcType=VARCHAR}, #{messageId,jdbcType=VARCHAR}, 
+      #{isRead,jdbcType=TINYINT}, #{deleteSign,jdbcType=TINYINT})
+  </insert>
+  <insert id="insertSelective" parameterType="com.goafanti.common.model.JtMessageConsumer">
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Tue Aug 28 17:44:59 CST 2018.
+    -->
+    insert into jt_message_consumer
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        id,
+      </if>
+      <if test="aid != null">
+        aid,
+      </if>
+      <if test="messageId != null">
+        message_id,
+      </if>
+      <if test="isRead != null">
+        is_read,
+      </if>
+      <if test="deleteSign != null">
+        delete_sign,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        #{id,jdbcType=VARCHAR},
+      </if>
+      <if test="aid != null">
+        #{aid,jdbcType=VARCHAR},
+      </if>
+      <if test="messageId != null">
+        #{messageId,jdbcType=VARCHAR},
+      </if>
+      <if test="isRead != null">
+        #{isRead,jdbcType=TINYINT},
+      </if>
+      <if test="deleteSign != null">
+        #{deleteSign,jdbcType=TINYINT},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.goafanti.common.model.JtMessageConsumerExample" resultType="java.lang.Integer">
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Tue Aug 28 17:44:59 CST 2018.
+    -->
+    select count(*) from jt_message_consumer
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Tue Aug 28 17:44:59 CST 2018.
+    -->
+    update jt_message_consumer
+    <set>
+      <if test="record.id != null">
+        id = #{record.id,jdbcType=VARCHAR},
+      </if>
+      <if test="record.aid != null">
+        aid = #{record.aid,jdbcType=VARCHAR},
+      </if>
+      <if test="record.messageId != null">
+        message_id = #{record.messageId,jdbcType=VARCHAR},
+      </if>
+      <if test="record.isRead != null">
+        is_read = #{record.isRead,jdbcType=TINYINT},
+      </if>
+      <if test="record.deleteSign != null">
+        delete_sign = #{record.deleteSign,jdbcType=TINYINT},
+      </if>
+    </set>
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Tue Aug 28 17:44:59 CST 2018.
+    -->
+    update jt_message_consumer
+    set id = #{record.id,jdbcType=VARCHAR},
+      aid = #{record.aid,jdbcType=VARCHAR},
+      message_id = #{record.messageId,jdbcType=VARCHAR},
+      is_read = #{record.isRead,jdbcType=TINYINT},
+      delete_sign = #{record.deleteSign,jdbcType=TINYINT}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.JtMessageConsumer">
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Tue Aug 28 17:44:59 CST 2018.
+    -->
+    update jt_message_consumer
+    <set>
+      <if test="aid != null">
+        aid = #{aid,jdbcType=VARCHAR},
+      </if>
+      <if test="messageId != null">
+        message_id = #{messageId,jdbcType=VARCHAR},
+      </if>
+      <if test="isRead != null">
+        is_read = #{isRead,jdbcType=TINYINT},
+      </if>
+      <if test="deleteSign != null">
+        delete_sign = #{deleteSign,jdbcType=TINYINT},
+      </if>
+    </set>
+    where id = #{id,jdbcType=VARCHAR}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.JtMessageConsumer">
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Tue Aug 28 17:44:59 CST 2018.
+    -->
+    update jt_message_consumer
+    set aid = #{aid,jdbcType=VARCHAR},
+      message_id = #{messageId,jdbcType=VARCHAR},
+      is_read = #{isRead,jdbcType=TINYINT},
+      delete_sign = #{deleteSign,jdbcType=TINYINT}
+    where id = #{id,jdbcType=VARCHAR}
+  </update>
+</mapper>

+ 398 - 0
src/main/java/com/goafanti/common/mapper/JtMessageProducerMapper.xml

@@ -0,0 +1,398 @@
+<?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.goafanti.common.dao.JtMessageProducerMapper">
+  <resultMap id="BaseResultMap" type="com.goafanti.common.model.JtMessageProducer">
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Tue Aug 28 17:44:59 CST 2018.
+    -->
+    <id column="id" jdbcType="VARCHAR" property="id" />
+    <result column="creater" jdbcType="VARCHAR" property="creater" />
+    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
+    <result column="send_time" jdbcType="TIMESTAMP" property="sendTime" />
+    <result column="title" jdbcType="VARCHAR" property="title" />
+    <result column="body" jdbcType="VARCHAR" property="body" />
+    <result column="subject" jdbcType="INTEGER" property="subject" />
+    <result column="resource_id" jdbcType="VARCHAR" property="resourceId" />
+    <result column="resource_type" jdbcType="INTEGER" property="resourceType" />
+    <result column="is_draft" jdbcType="TINYINT" property="isDraft" />
+    <result column="is_send" jdbcType="TINYINT" property="isSend" />
+    <result column="delete_sign" jdbcType="TINYINT" property="deleteSign" />
+  </resultMap>
+  <sql id="Example_Where_Clause">
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Tue Aug 28 17:44:59 CST 2018.
+    -->
+    <where>
+      <foreach collection="oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Update_By_Example_Where_Clause">
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Tue Aug 28 17:44:59 CST 2018.
+    -->
+    <where>
+      <foreach collection="example.oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Base_Column_List">
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Tue Aug 28 17:44:59 CST 2018.
+    -->
+    id, creater, create_time, send_time, title, body, subject, resource_id, resource_type, 
+    is_draft, is_send, delete_sign
+  </sql>
+  <select id="selectByExample" parameterType="com.goafanti.common.model.JtMessageProducerExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Tue Aug 28 17:44:59 CST 2018.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from jt_message_producer
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </if>
+  </select>
+  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Tue Aug 28 17:44:59 CST 2018.
+    -->
+    select 
+    <include refid="Base_Column_List" />
+    from jt_message_producer
+    where id = #{id,jdbcType=VARCHAR}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Tue Aug 28 17:44:59 CST 2018.
+    -->
+    delete from jt_message_producer
+    where id = #{id,jdbcType=VARCHAR}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.goafanti.common.model.JtMessageProducerExample">
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Tue Aug 28 17:44:59 CST 2018.
+    -->
+    delete from jt_message_producer
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.goafanti.common.model.JtMessageProducer">
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Tue Aug 28 17:44:59 CST 2018.
+    -->
+    insert into jt_message_producer (id, creater, create_time, 
+      send_time, title, body, 
+      subject, resource_id, resource_type, 
+      is_draft, is_send, delete_sign
+      )
+    values (#{id,jdbcType=VARCHAR}, #{creater,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, 
+      #{sendTime,jdbcType=TIMESTAMP}, #{title,jdbcType=VARCHAR}, #{body,jdbcType=VARCHAR}, 
+      #{subject,jdbcType=INTEGER}, #{resourceId,jdbcType=VARCHAR}, #{resourceType,jdbcType=INTEGER}, 
+      #{isDraft,jdbcType=TINYINT}, #{isSend,jdbcType=TINYINT}, #{deleteSign,jdbcType=TINYINT}
+      )
+  </insert>
+  <insert id="insertSelective" parameterType="com.goafanti.common.model.JtMessageProducer">
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Tue Aug 28 17:44:59 CST 2018.
+    -->
+    insert into jt_message_producer
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        id,
+      </if>
+      <if test="creater != null">
+        creater,
+      </if>
+      <if test="createTime != null">
+        create_time,
+      </if>
+      <if test="sendTime != null">
+        send_time,
+      </if>
+      <if test="title != null">
+        title,
+      </if>
+      <if test="body != null">
+        body,
+      </if>
+      <if test="subject != null">
+        subject,
+      </if>
+      <if test="resourceId != null">
+        resource_id,
+      </if>
+      <if test="resourceType != null">
+        resource_type,
+      </if>
+      <if test="isDraft != null">
+        is_draft,
+      </if>
+      <if test="isSend != null">
+        is_send,
+      </if>
+      <if test="deleteSign != null">
+        delete_sign,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        #{id,jdbcType=VARCHAR},
+      </if>
+      <if test="creater != null">
+        #{creater,jdbcType=VARCHAR},
+      </if>
+      <if test="createTime != null">
+        #{createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="sendTime != null">
+        #{sendTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="title != null">
+        #{title,jdbcType=VARCHAR},
+      </if>
+      <if test="body != null">
+        #{body,jdbcType=VARCHAR},
+      </if>
+      <if test="subject != null">
+        #{subject,jdbcType=INTEGER},
+      </if>
+      <if test="resourceId != null">
+        #{resourceId,jdbcType=VARCHAR},
+      </if>
+      <if test="resourceType != null">
+        #{resourceType,jdbcType=INTEGER},
+      </if>
+      <if test="isDraft != null">
+        #{isDraft,jdbcType=TINYINT},
+      </if>
+      <if test="isSend != null">
+        #{isSend,jdbcType=TINYINT},
+      </if>
+      <if test="deleteSign != null">
+        #{deleteSign,jdbcType=TINYINT},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.goafanti.common.model.JtMessageProducerExample" resultType="java.lang.Integer">
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Tue Aug 28 17:44:59 CST 2018.
+    -->
+    select count(*) from jt_message_producer
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Tue Aug 28 17:44:59 CST 2018.
+    -->
+    update jt_message_producer
+    <set>
+      <if test="record.id != null">
+        id = #{record.id,jdbcType=VARCHAR},
+      </if>
+      <if test="record.creater != null">
+        creater = #{record.creater,jdbcType=VARCHAR},
+      </if>
+      <if test="record.createTime != null">
+        create_time = #{record.createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="record.sendTime != null">
+        send_time = #{record.sendTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="record.title != null">
+        title = #{record.title,jdbcType=VARCHAR},
+      </if>
+      <if test="record.body != null">
+        body = #{record.body,jdbcType=VARCHAR},
+      </if>
+      <if test="record.subject != null">
+        subject = #{record.subject,jdbcType=INTEGER},
+      </if>
+      <if test="record.resourceId != null">
+        resource_id = #{record.resourceId,jdbcType=VARCHAR},
+      </if>
+      <if test="record.resourceType != null">
+        resource_type = #{record.resourceType,jdbcType=INTEGER},
+      </if>
+      <if test="record.isDraft != null">
+        is_draft = #{record.isDraft,jdbcType=TINYINT},
+      </if>
+      <if test="record.isSend != null">
+        is_send = #{record.isSend,jdbcType=TINYINT},
+      </if>
+      <if test="record.deleteSign != null">
+        delete_sign = #{record.deleteSign,jdbcType=TINYINT},
+      </if>
+    </set>
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Tue Aug 28 17:44:59 CST 2018.
+    -->
+    update jt_message_producer
+    set id = #{record.id,jdbcType=VARCHAR},
+      creater = #{record.creater,jdbcType=VARCHAR},
+      create_time = #{record.createTime,jdbcType=TIMESTAMP},
+      send_time = #{record.sendTime,jdbcType=TIMESTAMP},
+      title = #{record.title,jdbcType=VARCHAR},
+      body = #{record.body,jdbcType=VARCHAR},
+      subject = #{record.subject,jdbcType=INTEGER},
+      resource_id = #{record.resourceId,jdbcType=VARCHAR},
+      resource_type = #{record.resourceType,jdbcType=INTEGER},
+      is_draft = #{record.isDraft,jdbcType=TINYINT},
+      is_send = #{record.isSend,jdbcType=TINYINT},
+      delete_sign = #{record.deleteSign,jdbcType=TINYINT}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.JtMessageProducer">
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Tue Aug 28 17:44:59 CST 2018.
+    -->
+    update jt_message_producer
+    <set>
+      <if test="creater != null">
+        creater = #{creater,jdbcType=VARCHAR},
+      </if>
+      <if test="createTime != null">
+        create_time = #{createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="sendTime != null">
+        send_time = #{sendTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="title != null">
+        title = #{title,jdbcType=VARCHAR},
+      </if>
+      <if test="body != null">
+        body = #{body,jdbcType=VARCHAR},
+      </if>
+      <if test="subject != null">
+        subject = #{subject,jdbcType=INTEGER},
+      </if>
+      <if test="resourceId != null">
+        resource_id = #{resourceId,jdbcType=VARCHAR},
+      </if>
+      <if test="resourceType != null">
+        resource_type = #{resourceType,jdbcType=INTEGER},
+      </if>
+      <if test="isDraft != null">
+        is_draft = #{isDraft,jdbcType=TINYINT},
+      </if>
+      <if test="isSend != null">
+        is_send = #{isSend,jdbcType=TINYINT},
+      </if>
+      <if test="deleteSign != null">
+        delete_sign = #{deleteSign,jdbcType=TINYINT},
+      </if>
+    </set>
+    where id = #{id,jdbcType=VARCHAR}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.JtMessageProducer">
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Tue Aug 28 17:44:59 CST 2018.
+    -->
+    update jt_message_producer
+    set creater = #{creater,jdbcType=VARCHAR},
+      create_time = #{createTime,jdbcType=TIMESTAMP},
+      send_time = #{sendTime,jdbcType=TIMESTAMP},
+      title = #{title,jdbcType=VARCHAR},
+      body = #{body,jdbcType=VARCHAR},
+      subject = #{subject,jdbcType=INTEGER},
+      resource_id = #{resourceId,jdbcType=VARCHAR},
+      resource_type = #{resourceType,jdbcType=INTEGER},
+      is_draft = #{isDraft,jdbcType=TINYINT},
+      is_send = #{isSend,jdbcType=TINYINT},
+      delete_sign = #{deleteSign,jdbcType=TINYINT}
+    where id = #{id,jdbcType=VARCHAR}
+  </update>
+</mapper>

+ 168 - 0
src/main/java/com/goafanti/common/model/JtMessageConsumer.java

@@ -0,0 +1,168 @@
+package com.goafanti.common.model;
+
+public class JtMessageConsumer {
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column jt_message_consumer.id
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    private String id;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column jt_message_consumer.aid
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    private String aid;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column jt_message_consumer.message_id
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    private String messageId;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column jt_message_consumer.is_read
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    private Byte isRead;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column jt_message_consumer.delete_sign
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    private Byte deleteSign;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column jt_message_consumer.id
+     *
+     * @return the value of jt_message_consumer.id
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    public String getId() {
+        return id;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column jt_message_consumer.id
+     *
+     * @param id the value for jt_message_consumer.id
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    public void setId(String id) {
+        this.id = id;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column jt_message_consumer.aid
+     *
+     * @return the value of jt_message_consumer.aid
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    public String getAid() {
+        return aid;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column jt_message_consumer.aid
+     *
+     * @param aid the value for jt_message_consumer.aid
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    public void setAid(String aid) {
+        this.aid = aid;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column jt_message_consumer.message_id
+     *
+     * @return the value of jt_message_consumer.message_id
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    public String getMessageId() {
+        return messageId;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column jt_message_consumer.message_id
+     *
+     * @param messageId the value for jt_message_consumer.message_id
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    public void setMessageId(String messageId) {
+        this.messageId = messageId;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column jt_message_consumer.is_read
+     *
+     * @return the value of jt_message_consumer.is_read
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    public Byte getIsRead() {
+        return isRead;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column jt_message_consumer.is_read
+     *
+     * @param isRead the value for jt_message_consumer.is_read
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    public void setIsRead(Byte isRead) {
+        this.isRead = isRead;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column jt_message_consumer.delete_sign
+     *
+     * @return the value of jt_message_consumer.delete_sign
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    public Byte getDeleteSign() {
+        return deleteSign;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column jt_message_consumer.delete_sign
+     *
+     * @param deleteSign the value for jt_message_consumer.delete_sign
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    public void setDeleteSign(Byte deleteSign) {
+        this.deleteSign = deleteSign;
+    }
+}

+ 632 - 0
src/main/java/com/goafanti/common/model/JtMessageConsumerExample.java

@@ -0,0 +1,632 @@
+package com.goafanti.common.model;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class JtMessageConsumerExample {
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table jt_message_consumer
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    protected String orderByClause;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table jt_message_consumer
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    protected boolean distinct;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table jt_message_consumer
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    protected List<Criteria> oredCriteria;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_message_consumer
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    public JtMessageConsumerExample() {
+        oredCriteria = new ArrayList<Criteria>();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_message_consumer
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    public void setOrderByClause(String orderByClause) {
+        this.orderByClause = orderByClause;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_message_consumer
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    public String getOrderByClause() {
+        return orderByClause;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_message_consumer
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    public void setDistinct(boolean distinct) {
+        this.distinct = distinct;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_message_consumer
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    public boolean isDistinct() {
+        return distinct;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_message_consumer
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    public List<Criteria> getOredCriteria() {
+        return oredCriteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_message_consumer
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    public void or(Criteria criteria) {
+        oredCriteria.add(criteria);
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_message_consumer
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    public Criteria or() {
+        Criteria criteria = createCriteriaInternal();
+        oredCriteria.add(criteria);
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_message_consumer
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    public Criteria createCriteria() {
+        Criteria criteria = createCriteriaInternal();
+        if (oredCriteria.size() == 0) {
+            oredCriteria.add(criteria);
+        }
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_message_consumer
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    protected Criteria createCriteriaInternal() {
+        Criteria criteria = new Criteria();
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_message_consumer
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    public void clear() {
+        oredCriteria.clear();
+        orderByClause = null;
+        distinct = false;
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table jt_message_consumer
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    protected abstract static class GeneratedCriteria {
+        protected List<Criterion> criteria;
+
+        protected GeneratedCriteria() {
+            super();
+            criteria = new ArrayList<Criterion>();
+        }
+
+        public boolean isValid() {
+            return criteria.size() > 0;
+        }
+
+        public List<Criterion> getAllCriteria() {
+            return criteria;
+        }
+
+        public List<Criterion> getCriteria() {
+            return criteria;
+        }
+
+        protected void addCriterion(String condition) {
+            if (condition == null) {
+                throw new RuntimeException("Value for condition cannot be null");
+            }
+            criteria.add(new Criterion(condition));
+        }
+
+        protected void addCriterion(String condition, Object value, String property) {
+            if (value == null) {
+                throw new RuntimeException("Value for " + property + " cannot be null");
+            }
+            criteria.add(new Criterion(condition, value));
+        }
+
+        protected void addCriterion(String condition, Object value1, Object value2, String property) {
+            if (value1 == null || value2 == null) {
+                throw new RuntimeException("Between values for " + property + " cannot be null");
+            }
+            criteria.add(new Criterion(condition, value1, value2));
+        }
+
+        public Criteria andIdIsNull() {
+            addCriterion("id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdIsNotNull() {
+            addCriterion("id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdEqualTo(String value) {
+            addCriterion("id =", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotEqualTo(String value) {
+            addCriterion("id <>", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThan(String value) {
+            addCriterion("id >", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThanOrEqualTo(String value) {
+            addCriterion("id >=", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThan(String value) {
+            addCriterion("id <", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThanOrEqualTo(String value) {
+            addCriterion("id <=", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLike(String value) {
+            addCriterion("id like", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotLike(String value) {
+            addCriterion("id not like", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdIn(List<String> values) {
+            addCriterion("id in", values, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotIn(List<String> values) {
+            addCriterion("id not in", values, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdBetween(String value1, String value2) {
+            addCriterion("id between", value1, value2, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotBetween(String value1, String value2) {
+            addCriterion("id not between", value1, value2, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andAidIsNull() {
+            addCriterion("aid is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andAidIsNotNull() {
+            addCriterion("aid is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andAidEqualTo(String value) {
+            addCriterion("aid =", value, "aid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAidNotEqualTo(String value) {
+            addCriterion("aid <>", value, "aid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAidGreaterThan(String value) {
+            addCriterion("aid >", value, "aid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAidGreaterThanOrEqualTo(String value) {
+            addCriterion("aid >=", value, "aid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAidLessThan(String value) {
+            addCriterion("aid <", value, "aid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAidLessThanOrEqualTo(String value) {
+            addCriterion("aid <=", value, "aid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAidLike(String value) {
+            addCriterion("aid like", value, "aid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAidNotLike(String value) {
+            addCriterion("aid not like", value, "aid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAidIn(List<String> values) {
+            addCriterion("aid in", values, "aid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAidNotIn(List<String> values) {
+            addCriterion("aid not in", values, "aid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAidBetween(String value1, String value2) {
+            addCriterion("aid between", value1, value2, "aid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAidNotBetween(String value1, String value2) {
+            addCriterion("aid not between", value1, value2, "aid");
+            return (Criteria) this;
+        }
+
+        public Criteria andMessageIdIsNull() {
+            addCriterion("message_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andMessageIdIsNotNull() {
+            addCriterion("message_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andMessageIdEqualTo(String value) {
+            addCriterion("message_id =", value, "messageId");
+            return (Criteria) this;
+        }
+
+        public Criteria andMessageIdNotEqualTo(String value) {
+            addCriterion("message_id <>", value, "messageId");
+            return (Criteria) this;
+        }
+
+        public Criteria andMessageIdGreaterThan(String value) {
+            addCriterion("message_id >", value, "messageId");
+            return (Criteria) this;
+        }
+
+        public Criteria andMessageIdGreaterThanOrEqualTo(String value) {
+            addCriterion("message_id >=", value, "messageId");
+            return (Criteria) this;
+        }
+
+        public Criteria andMessageIdLessThan(String value) {
+            addCriterion("message_id <", value, "messageId");
+            return (Criteria) this;
+        }
+
+        public Criteria andMessageIdLessThanOrEqualTo(String value) {
+            addCriterion("message_id <=", value, "messageId");
+            return (Criteria) this;
+        }
+
+        public Criteria andMessageIdLike(String value) {
+            addCriterion("message_id like", value, "messageId");
+            return (Criteria) this;
+        }
+
+        public Criteria andMessageIdNotLike(String value) {
+            addCriterion("message_id not like", value, "messageId");
+            return (Criteria) this;
+        }
+
+        public Criteria andMessageIdIn(List<String> values) {
+            addCriterion("message_id in", values, "messageId");
+            return (Criteria) this;
+        }
+
+        public Criteria andMessageIdNotIn(List<String> values) {
+            addCriterion("message_id not in", values, "messageId");
+            return (Criteria) this;
+        }
+
+        public Criteria andMessageIdBetween(String value1, String value2) {
+            addCriterion("message_id between", value1, value2, "messageId");
+            return (Criteria) this;
+        }
+
+        public Criteria andMessageIdNotBetween(String value1, String value2) {
+            addCriterion("message_id not between", value1, value2, "messageId");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsReadIsNull() {
+            addCriterion("is_read is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsReadIsNotNull() {
+            addCriterion("is_read is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsReadEqualTo(Byte value) {
+            addCriterion("is_read =", value, "isRead");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsReadNotEqualTo(Byte value) {
+            addCriterion("is_read <>", value, "isRead");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsReadGreaterThan(Byte value) {
+            addCriterion("is_read >", value, "isRead");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsReadGreaterThanOrEqualTo(Byte value) {
+            addCriterion("is_read >=", value, "isRead");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsReadLessThan(Byte value) {
+            addCriterion("is_read <", value, "isRead");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsReadLessThanOrEqualTo(Byte value) {
+            addCriterion("is_read <=", value, "isRead");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsReadIn(List<Byte> values) {
+            addCriterion("is_read in", values, "isRead");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsReadNotIn(List<Byte> values) {
+            addCriterion("is_read not in", values, "isRead");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsReadBetween(Byte value1, Byte value2) {
+            addCriterion("is_read between", value1, value2, "isRead");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsReadNotBetween(Byte value1, Byte value2) {
+            addCriterion("is_read not between", value1, value2, "isRead");
+            return (Criteria) this;
+        }
+
+        public Criteria andDeleteSignIsNull() {
+            addCriterion("delete_sign is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andDeleteSignIsNotNull() {
+            addCriterion("delete_sign is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andDeleteSignEqualTo(Byte value) {
+            addCriterion("delete_sign =", value, "deleteSign");
+            return (Criteria) this;
+        }
+
+        public Criteria andDeleteSignNotEqualTo(Byte value) {
+            addCriterion("delete_sign <>", value, "deleteSign");
+            return (Criteria) this;
+        }
+
+        public Criteria andDeleteSignGreaterThan(Byte value) {
+            addCriterion("delete_sign >", value, "deleteSign");
+            return (Criteria) this;
+        }
+
+        public Criteria andDeleteSignGreaterThanOrEqualTo(Byte value) {
+            addCriterion("delete_sign >=", value, "deleteSign");
+            return (Criteria) this;
+        }
+
+        public Criteria andDeleteSignLessThan(Byte value) {
+            addCriterion("delete_sign <", value, "deleteSign");
+            return (Criteria) this;
+        }
+
+        public Criteria andDeleteSignLessThanOrEqualTo(Byte value) {
+            addCriterion("delete_sign <=", value, "deleteSign");
+            return (Criteria) this;
+        }
+
+        public Criteria andDeleteSignIn(List<Byte> values) {
+            addCriterion("delete_sign in", values, "deleteSign");
+            return (Criteria) this;
+        }
+
+        public Criteria andDeleteSignNotIn(List<Byte> values) {
+            addCriterion("delete_sign not in", values, "deleteSign");
+            return (Criteria) this;
+        }
+
+        public Criteria andDeleteSignBetween(Byte value1, Byte value2) {
+            addCriterion("delete_sign between", value1, value2, "deleteSign");
+            return (Criteria) this;
+        }
+
+        public Criteria andDeleteSignNotBetween(Byte value1, Byte value2) {
+            addCriterion("delete_sign not between", value1, value2, "deleteSign");
+            return (Criteria) this;
+        }
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table jt_message_consumer
+     *
+     * @mbggenerated do_not_delete_during_merge Tue Aug 28 17:44:59 CST 2018
+     */
+    public static class Criteria extends GeneratedCriteria {
+
+        protected Criteria() {
+            super();
+        }
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table jt_message_consumer
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    public static class Criterion {
+        private String condition;
+
+        private Object value;
+
+        private Object secondValue;
+
+        private boolean noValue;
+
+        private boolean singleValue;
+
+        private boolean betweenValue;
+
+        private boolean listValue;
+
+        private String typeHandler;
+
+        public String getCondition() {
+            return condition;
+        }
+
+        public Object getValue() {
+            return value;
+        }
+
+        public Object getSecondValue() {
+            return secondValue;
+        }
+
+        public boolean isNoValue() {
+            return noValue;
+        }
+
+        public boolean isSingleValue() {
+            return singleValue;
+        }
+
+        public boolean isBetweenValue() {
+            return betweenValue;
+        }
+
+        public boolean isListValue() {
+            return listValue;
+        }
+
+        public String getTypeHandler() {
+            return typeHandler;
+        }
+
+        protected Criterion(String condition) {
+            super();
+            this.condition = condition;
+            this.typeHandler = null;
+            this.noValue = true;
+        }
+
+        protected Criterion(String condition, Object value, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.typeHandler = typeHandler;
+            if (value instanceof List<?>) {
+                this.listValue = true;
+            } else {
+                this.singleValue = true;
+            }
+        }
+
+        protected Criterion(String condition, Object value) {
+            this(condition, value, null);
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.secondValue = secondValue;
+            this.typeHandler = typeHandler;
+            this.betweenValue = true;
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue) {
+            this(condition, value, secondValue, null);
+        }
+    }
+}

+ 401 - 0
src/main/java/com/goafanti/common/model/JtMessageProducer.java

@@ -0,0 +1,401 @@
+package com.goafanti.common.model;
+
+import java.util.Date;
+
+public class JtMessageProducer {
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column jt_message_producer.id
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    private String id;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column jt_message_producer.creater
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    private String creater;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column jt_message_producer.create_time
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    private Date createTime;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column jt_message_producer.send_time
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    private Date sendTime;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column jt_message_producer.title
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    private String title;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column jt_message_producer.body
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    private String body;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column jt_message_producer.subject
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    private Integer subject;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column jt_message_producer.resource_id
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    private String resourceId;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column jt_message_producer.resource_type
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    private Integer resourceType;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column jt_message_producer.is_draft
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    private Byte isDraft;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column jt_message_producer.is_send
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    private Byte isSend;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column jt_message_producer.delete_sign
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    private Byte deleteSign;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column jt_message_producer.id
+     *
+     * @return the value of jt_message_producer.id
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    public String getId() {
+        return id;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column jt_message_producer.id
+     *
+     * @param id the value for jt_message_producer.id
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    public void setId(String id) {
+        this.id = id;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column jt_message_producer.creater
+     *
+     * @return the value of jt_message_producer.creater
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    public String getCreater() {
+        return creater;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column jt_message_producer.creater
+     *
+     * @param creater the value for jt_message_producer.creater
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    public void setCreater(String creater) {
+        this.creater = creater;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column jt_message_producer.create_time
+     *
+     * @return the value of jt_message_producer.create_time
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    public Date getCreateTime() {
+        return createTime;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column jt_message_producer.create_time
+     *
+     * @param createTime the value for jt_message_producer.create_time
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    public void setCreateTime(Date createTime) {
+        this.createTime = createTime;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column jt_message_producer.send_time
+     *
+     * @return the value of jt_message_producer.send_time
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    public Date getSendTime() {
+        return sendTime;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column jt_message_producer.send_time
+     *
+     * @param sendTime the value for jt_message_producer.send_time
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    public void setSendTime(Date sendTime) {
+        this.sendTime = sendTime;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column jt_message_producer.title
+     *
+     * @return the value of jt_message_producer.title
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    public String getTitle() {
+        return title;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column jt_message_producer.title
+     *
+     * @param title the value for jt_message_producer.title
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    public void setTitle(String title) {
+        this.title = title;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column jt_message_producer.body
+     *
+     * @return the value of jt_message_producer.body
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    public String getBody() {
+        return body;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column jt_message_producer.body
+     *
+     * @param body the value for jt_message_producer.body
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    public void setBody(String body) {
+        this.body = body;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column jt_message_producer.subject
+     *
+     * @return the value of jt_message_producer.subject
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    public Integer getSubject() {
+        return subject;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column jt_message_producer.subject
+     *
+     * @param subject the value for jt_message_producer.subject
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    public void setSubject(Integer subject) {
+        this.subject = subject;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column jt_message_producer.resource_id
+     *
+     * @return the value of jt_message_producer.resource_id
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    public String getResourceId() {
+        return resourceId;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column jt_message_producer.resource_id
+     *
+     * @param resourceId the value for jt_message_producer.resource_id
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    public void setResourceId(String resourceId) {
+        this.resourceId = resourceId;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column jt_message_producer.resource_type
+     *
+     * @return the value of jt_message_producer.resource_type
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    public Integer getResourceType() {
+        return resourceType;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column jt_message_producer.resource_type
+     *
+     * @param resourceType the value for jt_message_producer.resource_type
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    public void setResourceType(Integer resourceType) {
+        this.resourceType = resourceType;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column jt_message_producer.is_draft
+     *
+     * @return the value of jt_message_producer.is_draft
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    public Byte getIsDraft() {
+        return isDraft;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column jt_message_producer.is_draft
+     *
+     * @param isDraft the value for jt_message_producer.is_draft
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    public void setIsDraft(Byte isDraft) {
+        this.isDraft = isDraft;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column jt_message_producer.is_send
+     *
+     * @return the value of jt_message_producer.is_send
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    public Byte getIsSend() {
+        return isSend;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column jt_message_producer.is_send
+     *
+     * @param isSend the value for jt_message_producer.is_send
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    public void setIsSend(Byte isSend) {
+        this.isSend = isSend;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column jt_message_producer.delete_sign
+     *
+     * @return the value of jt_message_producer.delete_sign
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    public Byte getDeleteSign() {
+        return deleteSign;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column jt_message_producer.delete_sign
+     *
+     * @param deleteSign the value for jt_message_producer.delete_sign
+     *
+     * @mbggenerated Tue Aug 28 17:44:59 CST 2018
+     */
+    public void setDeleteSign(Byte deleteSign) {
+        this.deleteSign = deleteSign;
+    }
+}

Datei-Diff unterdrückt, da er zu groß ist
+ 1073 - 0
src/main/java/com/goafanti/common/model/JtMessageProducerExample.java