| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526 |
- <?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.MessageFromBusinessMapper">
- <resultMap id="BaseResultMap" type="com.goafanti.common.model.MessageFromBusiness">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Mon Dec 25 18:55:04 CST 2017.
- -->
- <id column="id" jdbcType="VARCHAR" property="id" />
- <result column="creater" jdbcType="VARCHAR" property="creater" />
- <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
- <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
- <result column="sponsor_id" jdbcType="VARCHAR" property="sponsorId" />
- <result column="sponsor_type" jdbcType="INTEGER" property="sponsorType" />
- <result column="sponsor_read" jdbcType="BIT" property="sponsorRead" />
- <result column="sponsor_read_time" jdbcType="TIMESTAMP" property="sponsorReadTime" />
- <result column="resource_id" jdbcType="VARCHAR" property="resourceId" />
- <result column="resource_type" jdbcType="INTEGER" property="resourceType" />
- <result column="resource_owner_id" jdbcType="VARCHAR" property="resourceOwnerId" />
- <result column="resource_owner_type" jdbcType="INTEGER" property="resourceOwnerType" />
- <result column="resource_owner_read" jdbcType="BIT" property="resourceOwnerRead" />
- <result column="resource_owner_read_time" jdbcType="TIMESTAMP" property="resourceOwnerReadTime" />
- <result column="admin_id" jdbcType="VARCHAR" property="adminId" />
- <result column="admin_read_time" jdbcType="TIMESTAMP" property="adminReadTime" />
- <result column="operator_type" jdbcType="INTEGER" property="operatorType" />
- <result column="operator_result" jdbcType="VARCHAR" property="operatorResult" />
- <result column="title" jdbcType="VARCHAR" property="title" />
- <result column="body" jdbcType="VARCHAR" property="body" />
- </resultMap>
- <sql id="Example_Where_Clause">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Mon Dec 25 18:55:04 CST 2017.
- -->
- <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 - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Mon Dec 25 18:55:04 CST 2017.
- -->
- <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 - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Mon Dec 25 18:55:04 CST 2017.
- -->
- id, creater, create_time, update_time, sponsor_id, sponsor_type, sponsor_read, sponsor_read_time,
- resource_id, resource_type, resource_owner_id, resource_owner_type, resource_owner_read,
- resource_owner_read_time, admin_id, admin_read_time, operator_type, operator_result,
- title, body
- </sql>
- <select id="selectByExample" parameterType="com.goafanti.common.model.MessageFromBusinessExample" resultMap="BaseResultMap">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Mon Dec 25 18:55:04 CST 2017.
- -->
- select
- <if test="distinct">
- distinct
- </if>
- <include refid="Base_Column_List" />
- from message_from_business
- <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 - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Mon Dec 25 18:55:04 CST 2017.
- -->
- select
- <include refid="Base_Column_List" />
- from message_from_business
- where id = #{id,jdbcType=VARCHAR}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Mon Dec 25 18:55:04 CST 2017.
- -->
- delete from message_from_business
- where id = #{id,jdbcType=VARCHAR}
- </delete>
- <delete id="deleteByExample" parameterType="com.goafanti.common.model.MessageFromBusinessExample">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Mon Dec 25 18:55:04 CST 2017.
- -->
- delete from message_from_business
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </delete>
- <insert id="insert" parameterType="com.goafanti.common.model.MessageFromBusiness">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Mon Dec 25 18:55:04 CST 2017.
- -->
- insert into message_from_business (id, creater, create_time,
- update_time, sponsor_id, sponsor_type,
- sponsor_read, sponsor_read_time, resource_id,
- resource_type, resource_owner_id, resource_owner_type,
- resource_owner_read, resource_owner_read_time,
- admin_id, admin_read_time, operator_type,
- operator_result, title, body
- )
- values (#{id,jdbcType=VARCHAR}, #{creater,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
- #{updateTime,jdbcType=TIMESTAMP}, #{sponsorId,jdbcType=VARCHAR}, #{sponsorType,jdbcType=INTEGER},
- #{sponsorRead,jdbcType=BIT}, #{sponsorReadTime,jdbcType=TIMESTAMP}, #{resourceId,jdbcType=VARCHAR},
- #{resourceType,jdbcType=INTEGER}, #{resourceOwnerId,jdbcType=VARCHAR}, #{resourceOwnerType,jdbcType=INTEGER},
- #{resourceOwnerRead,jdbcType=BIT}, #{resourceOwnerReadTime,jdbcType=TIMESTAMP},
- #{adminId,jdbcType=VARCHAR}, #{adminReadTime,jdbcType=TIMESTAMP}, #{operatorType,jdbcType=INTEGER},
- #{operatorResult,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR}, #{body,jdbcType=VARCHAR}
- )
- </insert>
- <insert id="insertSelective" parameterType="com.goafanti.common.model.MessageFromBusiness">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Mon Dec 25 18:55:04 CST 2017.
- -->
- insert into message_from_business
- <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="updateTime != null">
- update_time,
- </if>
- <if test="sponsorId != null">
- sponsor_id,
- </if>
- <if test="sponsorType != null">
- sponsor_type,
- </if>
- <if test="sponsorRead != null">
- sponsor_read,
- </if>
- <if test="sponsorReadTime != null">
- sponsor_read_time,
- </if>
- <if test="resourceId != null">
- resource_id,
- </if>
- <if test="resourceType != null">
- resource_type,
- </if>
- <if test="resourceOwnerId != null">
- resource_owner_id,
- </if>
- <if test="resourceOwnerType != null">
- resource_owner_type,
- </if>
- <if test="resourceOwnerRead != null">
- resource_owner_read,
- </if>
- <if test="resourceOwnerReadTime != null">
- resource_owner_read_time,
- </if>
- <if test="adminId != null">
- admin_id,
- </if>
- <if test="adminReadTime != null">
- admin_read_time,
- </if>
- <if test="operatorType != null">
- operator_type,
- </if>
- <if test="operatorResult != null">
- operator_result,
- </if>
- <if test="title != null">
- title,
- </if>
- <if test="body != null">
- body,
- </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="updateTime != null">
- #{updateTime,jdbcType=TIMESTAMP},
- </if>
- <if test="sponsorId != null">
- #{sponsorId,jdbcType=VARCHAR},
- </if>
- <if test="sponsorType != null">
- #{sponsorType,jdbcType=INTEGER},
- </if>
- <if test="sponsorRead != null">
- #{sponsorRead,jdbcType=BIT},
- </if>
- <if test="sponsorReadTime != null">
- #{sponsorReadTime,jdbcType=TIMESTAMP},
- </if>
- <if test="resourceId != null">
- #{resourceId,jdbcType=VARCHAR},
- </if>
- <if test="resourceType != null">
- #{resourceType,jdbcType=INTEGER},
- </if>
- <if test="resourceOwnerId != null">
- #{resourceOwnerId,jdbcType=VARCHAR},
- </if>
- <if test="resourceOwnerType != null">
- #{resourceOwnerType,jdbcType=INTEGER},
- </if>
- <if test="resourceOwnerRead != null">
- #{resourceOwnerRead,jdbcType=BIT},
- </if>
- <if test="resourceOwnerReadTime != null">
- #{resourceOwnerReadTime,jdbcType=TIMESTAMP},
- </if>
- <if test="adminId != null">
- #{adminId,jdbcType=VARCHAR},
- </if>
- <if test="adminReadTime != null">
- #{adminReadTime,jdbcType=TIMESTAMP},
- </if>
- <if test="operatorType != null">
- #{operatorType,jdbcType=INTEGER},
- </if>
- <if test="operatorResult != null">
- #{operatorResult,jdbcType=VARCHAR},
- </if>
- <if test="title != null">
- #{title,jdbcType=VARCHAR},
- </if>
- <if test="body != null">
- #{body,jdbcType=VARCHAR},
- </if>
- </trim>
- </insert>
- <select id="countByExample" parameterType="com.goafanti.common.model.MessageFromBusinessExample" resultType="java.lang.Long">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Mon Dec 25 18:55:04 CST 2017.
- -->
- select count(*) from message_from_business
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </select>
- <update id="updateByExampleSelective" parameterType="map">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Mon Dec 25 18:55:04 CST 2017.
- -->
- update message_from_business
- <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.updateTime != null">
- update_time = #{record.updateTime,jdbcType=TIMESTAMP},
- </if>
- <if test="record.sponsorId != null">
- sponsor_id = #{record.sponsorId,jdbcType=VARCHAR},
- </if>
- <if test="record.sponsorType != null">
- sponsor_type = #{record.sponsorType,jdbcType=INTEGER},
- </if>
- <if test="record.sponsorRead != null">
- sponsor_read = #{record.sponsorRead,jdbcType=BIT},
- </if>
- <if test="record.sponsorReadTime != null">
- sponsor_read_time = #{record.sponsorReadTime,jdbcType=TIMESTAMP},
- </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.resourceOwnerId != null">
- resource_owner_id = #{record.resourceOwnerId,jdbcType=VARCHAR},
- </if>
- <if test="record.resourceOwnerType != null">
- resource_owner_type = #{record.resourceOwnerType,jdbcType=INTEGER},
- </if>
- <if test="record.resourceOwnerRead != null">
- resource_owner_read = #{record.resourceOwnerRead,jdbcType=BIT},
- </if>
- <if test="record.resourceOwnerReadTime != null">
- resource_owner_read_time = #{record.resourceOwnerReadTime,jdbcType=TIMESTAMP},
- </if>
- <if test="record.adminId != null">
- admin_id = #{record.adminId,jdbcType=VARCHAR},
- </if>
- <if test="record.adminReadTime != null">
- admin_read_time = #{record.adminReadTime,jdbcType=TIMESTAMP},
- </if>
- <if test="record.operatorType != null">
- operator_type = #{record.operatorType,jdbcType=INTEGER},
- </if>
- <if test="record.operatorResult != null">
- operator_result = #{record.operatorResult,jdbcType=VARCHAR},
- </if>
- <if test="record.title != null">
- title = #{record.title,jdbcType=VARCHAR},
- </if>
- <if test="record.body != null">
- body = #{record.body,jdbcType=VARCHAR},
- </if>
- </set>
- <if test="_parameter != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByExample" parameterType="map">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Mon Dec 25 18:55:04 CST 2017.
- -->
- update message_from_business
- set id = #{record.id,jdbcType=VARCHAR},
- creater = #{record.creater,jdbcType=VARCHAR},
- create_time = #{record.createTime,jdbcType=TIMESTAMP},
- update_time = #{record.updateTime,jdbcType=TIMESTAMP},
- sponsor_id = #{record.sponsorId,jdbcType=VARCHAR},
- sponsor_type = #{record.sponsorType,jdbcType=INTEGER},
- sponsor_read = #{record.sponsorRead,jdbcType=BIT},
- sponsor_read_time = #{record.sponsorReadTime,jdbcType=TIMESTAMP},
- resource_id = #{record.resourceId,jdbcType=VARCHAR},
- resource_type = #{record.resourceType,jdbcType=INTEGER},
- resource_owner_id = #{record.resourceOwnerId,jdbcType=VARCHAR},
- resource_owner_type = #{record.resourceOwnerType,jdbcType=INTEGER},
- resource_owner_read = #{record.resourceOwnerRead,jdbcType=BIT},
- resource_owner_read_time = #{record.resourceOwnerReadTime,jdbcType=TIMESTAMP},
- admin_id = #{record.adminId,jdbcType=VARCHAR},
- admin_read_time = #{record.adminReadTime,jdbcType=TIMESTAMP},
- operator_type = #{record.operatorType,jdbcType=INTEGER},
- operator_result = #{record.operatorResult,jdbcType=VARCHAR},
- title = #{record.title,jdbcType=VARCHAR},
- body = #{record.body,jdbcType=VARCHAR}
- <if test="_parameter != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.MessageFromBusiness">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Mon Dec 25 18:55:04 CST 2017.
- -->
- update message_from_business
- <set>
- <if test="creater != null">
- creater = #{creater,jdbcType=VARCHAR},
- </if>
- <if test="createTime != null">
- create_time = #{createTime,jdbcType=TIMESTAMP},
- </if>
- <if test="updateTime != null">
- update_time = #{updateTime,jdbcType=TIMESTAMP},
- </if>
- <if test="sponsorId != null">
- sponsor_id = #{sponsorId,jdbcType=VARCHAR},
- </if>
- <if test="sponsorType != null">
- sponsor_type = #{sponsorType,jdbcType=INTEGER},
- </if>
- <if test="sponsorRead != null">
- sponsor_read = #{sponsorRead,jdbcType=BIT},
- </if>
- <if test="sponsorReadTime != null">
- sponsor_read_time = #{sponsorReadTime,jdbcType=TIMESTAMP},
- </if>
- <if test="resourceId != null">
- resource_id = #{resourceId,jdbcType=VARCHAR},
- </if>
- <if test="resourceType != null">
- resource_type = #{resourceType,jdbcType=INTEGER},
- </if>
- <if test="resourceOwnerId != null">
- resource_owner_id = #{resourceOwnerId,jdbcType=VARCHAR},
- </if>
- <if test="resourceOwnerType != null">
- resource_owner_type = #{resourceOwnerType,jdbcType=INTEGER},
- </if>
- <if test="resourceOwnerRead != null">
- resource_owner_read = #{resourceOwnerRead,jdbcType=BIT},
- </if>
- <if test="resourceOwnerReadTime != null">
- resource_owner_read_time = #{resourceOwnerReadTime,jdbcType=TIMESTAMP},
- </if>
- <if test="adminId != null">
- admin_id = #{adminId,jdbcType=VARCHAR},
- </if>
- <if test="adminReadTime != null">
- admin_read_time = #{adminReadTime,jdbcType=TIMESTAMP},
- </if>
- <if test="operatorType != null">
- operator_type = #{operatorType,jdbcType=INTEGER},
- </if>
- <if test="operatorResult != null">
- operator_result = #{operatorResult,jdbcType=VARCHAR},
- </if>
- <if test="title != null">
- title = #{title,jdbcType=VARCHAR},
- </if>
- <if test="body != null">
- body = #{body,jdbcType=VARCHAR},
- </if>
- </set>
- where id = #{id,jdbcType=VARCHAR}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.MessageFromBusiness">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Mon Dec 25 18:55:04 CST 2017.
- -->
- update message_from_business
- set creater = #{creater,jdbcType=VARCHAR},
- create_time = #{createTime,jdbcType=TIMESTAMP},
- update_time = #{updateTime,jdbcType=TIMESTAMP},
- sponsor_id = #{sponsorId,jdbcType=VARCHAR},
- sponsor_type = #{sponsorType,jdbcType=INTEGER},
- sponsor_read = #{sponsorRead,jdbcType=BIT},
- sponsor_read_time = #{sponsorReadTime,jdbcType=TIMESTAMP},
- resource_id = #{resourceId,jdbcType=VARCHAR},
- resource_type = #{resourceType,jdbcType=INTEGER},
- resource_owner_id = #{resourceOwnerId,jdbcType=VARCHAR},
- resource_owner_type = #{resourceOwnerType,jdbcType=INTEGER},
- resource_owner_read = #{resourceOwnerRead,jdbcType=BIT},
- resource_owner_read_time = #{resourceOwnerReadTime,jdbcType=TIMESTAMP},
- admin_id = #{adminId,jdbcType=VARCHAR},
- admin_read_time = #{adminReadTime,jdbcType=TIMESTAMP},
- operator_type = #{operatorType,jdbcType=INTEGER},
- operator_result = #{operatorResult,jdbcType=VARCHAR},
- title = #{title,jdbcType=VARCHAR},
- body = #{body,jdbcType=VARCHAR}
- where id = #{id,jdbcType=VARCHAR}
- </update>
- </mapper>
|