Commit 38918ff5 authored by 22管33's avatar 22管33

批量替换代码,脚本上传,删除多余的东西

parent 322a9857
<?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.haomostudio.SeekTruthBackend.dao.CcAddressBookMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcAddressBook">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="contact_id" jdbcType="VARCHAR" property="contactId" />
<result column="contact_number" jdbcType="VARCHAR" property="contactNumber" />
<result column="status" jdbcType="INTEGER" property="status" />
<result column="who_address_book" jdbcType="VARCHAR" property="whoAddressBook" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="remarks" jdbcType="VARCHAR" property="remarks" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, contact_id, contact_number, status, who_address_book, create_time, name, remarks,
last_update_time
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcAddressBookExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_address_book
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_address_book
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_address_book
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcAddressBookExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_address_book
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcAddressBook">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_address_book (id, contact_id, contact_number,
status, who_address_book, create_time,
name, remarks, last_update_time
)
values (#{id,jdbcType=VARCHAR}, #{contactId,jdbcType=VARCHAR}, #{contactNumber,jdbcType=VARCHAR},
#{status,jdbcType=INTEGER}, #{whoAddressBook,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{name,jdbcType=VARCHAR}, #{remarks,jdbcType=VARCHAR}, #{lastUpdateTime,jdbcType=TIMESTAMP}
)
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcAddressBook">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_address_book
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="contactId != null">
contact_id,
</if>
<if test="contactNumber != null">
contact_number,
</if>
<if test="status != null">
status,
</if>
<if test="whoAddressBook != null">
who_address_book,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="name != null">
name,
</if>
<if test="remarks != null">
remarks,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="contactId != null">
#{contactId,jdbcType=VARCHAR},
</if>
<if test="contactNumber != null">
#{contactNumber,jdbcType=VARCHAR},
</if>
<if test="status != null">
#{status,jdbcType=INTEGER},
</if>
<if test="whoAddressBook != null">
#{whoAddressBook,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="remarks != null">
#{remarks,jdbcType=VARCHAR},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcAddressBookExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_address_book
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_address_book
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.contactId != null">
contact_id = #{record.contactId,jdbcType=VARCHAR},
</if>
<if test="record.contactNumber != null">
contact_number = #{record.contactNumber,jdbcType=VARCHAR},
</if>
<if test="record.status != null">
status = #{record.status,jdbcType=INTEGER},
</if>
<if test="record.whoAddressBook != null">
who_address_book = #{record.whoAddressBook,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.remarks != null">
remarks = #{record.remarks,jdbcType=VARCHAR},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_address_book
set id = #{record.id,jdbcType=VARCHAR},
contact_id = #{record.contactId,jdbcType=VARCHAR},
contact_number = #{record.contactNumber,jdbcType=VARCHAR},
status = #{record.status,jdbcType=INTEGER},
who_address_book = #{record.whoAddressBook,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
name = #{record.name,jdbcType=VARCHAR},
remarks = #{record.remarks,jdbcType=VARCHAR},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcAddressBook">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_address_book
<set>
<if test="contactId != null">
contact_id = #{contactId,jdbcType=VARCHAR},
</if>
<if test="contactNumber != null">
contact_number = #{contactNumber,jdbcType=VARCHAR},
</if>
<if test="status != null">
status = #{status,jdbcType=INTEGER},
</if>
<if test="whoAddressBook != null">
who_address_book = #{whoAddressBook,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="remarks != null">
remarks = #{remarks,jdbcType=VARCHAR},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcAddressBook">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_address_book
set contact_id = #{contactId,jdbcType=VARCHAR},
contact_number = #{contactNumber,jdbcType=VARCHAR},
status = #{status,jdbcType=INTEGER},
who_address_book = #{whoAddressBook,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
name = #{name,jdbcType=VARCHAR},
remarks = #{remarks,jdbcType=VARCHAR},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcAddressBookExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_address_book
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcApprovalProceMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcApprovalProce">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="approver_id" jdbcType="VARCHAR" property="approverId" />
<result column="cc_notifications_id" jdbcType="VARCHAR" property="ccNotificationsId" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
<result column="superior_circulation" jdbcType="VARCHAR" property="superiorCirculation" />
<result column="remarks" jdbcType="VARCHAR" property="remarks" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, approver_id, cc_notifications_id, create_time, last_update_time, superior_circulation,
remarks
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcApprovalProceExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_approval_proce
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_approval_proce
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_approval_proce
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcApprovalProceExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_approval_proce
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcApprovalProce">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_approval_proce (id, approver_id, cc_notifications_id,
create_time, last_update_time, superior_circulation,
remarks)
values (#{id,jdbcType=VARCHAR}, #{approverId,jdbcType=VARCHAR}, #{ccNotificationsId,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}, #{lastUpdateTime,jdbcType=TIMESTAMP}, #{superiorCirculation,jdbcType=VARCHAR},
#{remarks,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcApprovalProce">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_approval_proce
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="approverId != null">
approver_id,
</if>
<if test="ccNotificationsId != null">
cc_notifications_id,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
<if test="superiorCirculation != null">
superior_circulation,
</if>
<if test="remarks != null">
remarks,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="approverId != null">
#{approverId,jdbcType=VARCHAR},
</if>
<if test="ccNotificationsId != null">
#{ccNotificationsId,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="superiorCirculation != null">
#{superiorCirculation,jdbcType=VARCHAR},
</if>
<if test="remarks != null">
#{remarks,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcApprovalProceExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_approval_proce
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_approval_proce
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.approverId != null">
approver_id = #{record.approverId,jdbcType=VARCHAR},
</if>
<if test="record.ccNotificationsId != null">
cc_notifications_id = #{record.ccNotificationsId,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.superiorCirculation != null">
superior_circulation = #{record.superiorCirculation,jdbcType=VARCHAR},
</if>
<if test="record.remarks != null">
remarks = #{record.remarks,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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_approval_proce
set id = #{record.id,jdbcType=VARCHAR},
approver_id = #{record.approverId,jdbcType=VARCHAR},
cc_notifications_id = #{record.ccNotificationsId,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
superior_circulation = #{record.superiorCirculation,jdbcType=VARCHAR},
remarks = #{record.remarks,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcApprovalProce">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_approval_proce
<set>
<if test="approverId != null">
approver_id = #{approverId,jdbcType=VARCHAR},
</if>
<if test="ccNotificationsId != null">
cc_notifications_id = #{ccNotificationsId,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="superiorCirculation != null">
superior_circulation = #{superiorCirculation,jdbcType=VARCHAR},
</if>
<if test="remarks != null">
remarks = #{remarks,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcApprovalProce">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_approval_proce
set approver_id = #{approverId,jdbcType=VARCHAR},
cc_notifications_id = #{ccNotificationsId,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
superior_circulation = #{superiorCirculation,jdbcType=VARCHAR},
remarks = #{remarks,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcApprovalProceExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_approval_proce
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcAssociatedFileMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcAssociatedFile">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="cc_notifications_id" jdbcType="VARCHAR" property="ccNotificationsId" />
<result column="file_id" jdbcType="VARCHAR" property="fileId" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
<result column="type" jdbcType="VARCHAR" property="type" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, cc_notifications_id, file_id, create_time, last_update_time, type
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcAssociatedFileExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_associated_file
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_associated_file
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_associated_file
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcAssociatedFileExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_associated_file
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcAssociatedFile">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_associated_file (id, cc_notifications_id, file_id,
create_time, last_update_time, type
)
values (#{id,jdbcType=VARCHAR}, #{ccNotificationsId,jdbcType=VARCHAR}, #{fileId,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}, #{lastUpdateTime,jdbcType=TIMESTAMP}, #{type,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcAssociatedFile">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_associated_file
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="ccNotificationsId != null">
cc_notifications_id,
</if>
<if test="fileId != null">
file_id,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
<if test="type != null">
type,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="ccNotificationsId != null">
#{ccNotificationsId,jdbcType=VARCHAR},
</if>
<if test="fileId != null">
#{fileId,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="type != null">
#{type,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcAssociatedFileExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_associated_file
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_associated_file
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.ccNotificationsId != null">
cc_notifications_id = #{record.ccNotificationsId,jdbcType=VARCHAR},
</if>
<if test="record.fileId != null">
file_id = #{record.fileId,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.type != null">
type = #{record.type,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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_associated_file
set id = #{record.id,jdbcType=VARCHAR},
cc_notifications_id = #{record.ccNotificationsId,jdbcType=VARCHAR},
file_id = #{record.fileId,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
type = #{record.type,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcAssociatedFile">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_associated_file
<set>
<if test="ccNotificationsId != null">
cc_notifications_id = #{ccNotificationsId,jdbcType=VARCHAR},
</if>
<if test="fileId != null">
file_id = #{fileId,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="type != null">
type = #{type,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcAssociatedFile">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_associated_file
set cc_notifications_id = #{ccNotificationsId,jdbcType=VARCHAR},
file_id = #{fileId,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
type = #{type,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcAssociatedFileExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_associated_file
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcCanteenCardSpendingMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcCanteenCardSpending">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="people" jdbcType="VARCHAR" property="people" />
<result column="amount_consumption" jdbcType="DOUBLE" property="amountConsumption" />
<result column="spending_time" jdbcType="TIMESTAMP" property="spendingTime" />
<result column="type" jdbcType="INTEGER" property="type" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
<result column="balance" jdbcType="DOUBLE" property="balance" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, people, amount_consumption, spending_time, type, create_time, last_update_time,
balance
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcCanteenCardSpendingExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_canteen_card_spending
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_canteen_card_spending
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_canteen_card_spending
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcCanteenCardSpendingExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_canteen_card_spending
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcCanteenCardSpending">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_canteen_card_spending (id, people, amount_consumption,
spending_time, type, create_time,
last_update_time, balance)
values (#{id,jdbcType=VARCHAR}, #{people,jdbcType=VARCHAR}, #{amountConsumption,jdbcType=DOUBLE},
#{spendingTime,jdbcType=TIMESTAMP}, #{type,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{lastUpdateTime,jdbcType=TIMESTAMP}, #{balance,jdbcType=DOUBLE})
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcCanteenCardSpending">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_canteen_card_spending
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="people != null">
people,
</if>
<if test="amountConsumption != null">
amount_consumption,
</if>
<if test="spendingTime != null">
spending_time,
</if>
<if test="type != null">
type,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
<if test="balance != null">
balance,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="people != null">
#{people,jdbcType=VARCHAR},
</if>
<if test="amountConsumption != null">
#{amountConsumption,jdbcType=DOUBLE},
</if>
<if test="spendingTime != null">
#{spendingTime,jdbcType=TIMESTAMP},
</if>
<if test="type != null">
#{type,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="balance != null">
#{balance,jdbcType=DOUBLE},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcCanteenCardSpendingExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_canteen_card_spending
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_canteen_card_spending
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.people != null">
people = #{record.people,jdbcType=VARCHAR},
</if>
<if test="record.amountConsumption != null">
amount_consumption = #{record.amountConsumption,jdbcType=DOUBLE},
</if>
<if test="record.spendingTime != null">
spending_time = #{record.spendingTime,jdbcType=TIMESTAMP},
</if>
<if test="record.type != null">
type = #{record.type,jdbcType=INTEGER},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.balance != null">
balance = #{record.balance,jdbcType=DOUBLE},
</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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_canteen_card_spending
set id = #{record.id,jdbcType=VARCHAR},
people = #{record.people,jdbcType=VARCHAR},
amount_consumption = #{record.amountConsumption,jdbcType=DOUBLE},
spending_time = #{record.spendingTime,jdbcType=TIMESTAMP},
type = #{record.type,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
balance = #{record.balance,jdbcType=DOUBLE}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcCanteenCardSpending">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_canteen_card_spending
<set>
<if test="people != null">
people = #{people,jdbcType=VARCHAR},
</if>
<if test="amountConsumption != null">
amount_consumption = #{amountConsumption,jdbcType=DOUBLE},
</if>
<if test="spendingTime != null">
spending_time = #{spendingTime,jdbcType=TIMESTAMP},
</if>
<if test="type != null">
type = #{type,jdbcType=INTEGER},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="balance != null">
balance = #{balance,jdbcType=DOUBLE},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcCanteenCardSpending">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_canteen_card_spending
set people = #{people,jdbcType=VARCHAR},
amount_consumption = #{amountConsumption,jdbcType=DOUBLE},
spending_time = #{spendingTime,jdbcType=TIMESTAMP},
type = #{type,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
balance = #{balance,jdbcType=DOUBLE}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcCanteenCardSpendingExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_canteen_card_spending
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcCheckNavigationMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcCheckNavigation">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="icon_tile" jdbcType="VARCHAR" property="iconTile" />
<result column="official_website" jdbcType="VARCHAR" property="officialWebsite" />
<result column="parent_id" jdbcType="VARCHAR" property="parentId" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
<result column="lntroduction" jdbcType="VARCHAR" property="lntroduction" />
<result column="survey" jdbcType="VARCHAR" property="survey" />
<result column="lnstitution_setting" jdbcType="VARCHAR" property="lnstitutionSetting" />
<result column="function" jdbcType="VARCHAR" property="function" />
<result column="wechat_address" jdbcType="VARCHAR" property="wechatAddress" />
<result column="micro_blog_address" jdbcType="VARCHAR" property="microBlogAddress" />
<result column="headline_address" jdbcType="VARCHAR" property="headlineAddress" />
<result column="type" jdbcType="VARCHAR" property="type" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, name, icon_tile, official_website, parent_id, create_time, last_update_time,
lntroduction, survey, lnstitution_setting, function, wechat_address, micro_blog_address,
headline_address, type
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcCheckNavigationExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_check_navigation
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_check_navigation
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_check_navigation
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcCheckNavigationExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_check_navigation
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcCheckNavigation">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_check_navigation (id, name, icon_tile,
official_website, parent_id, create_time,
last_update_time, lntroduction, survey,
lnstitution_setting, function, wechat_address,
micro_blog_address, headline_address, type
)
values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{iconTile,jdbcType=VARCHAR},
#{officialWebsite,jdbcType=VARCHAR}, #{parentId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{lastUpdateTime,jdbcType=TIMESTAMP}, #{lntroduction,jdbcType=VARCHAR}, #{survey,jdbcType=VARCHAR},
#{lnstitutionSetting,jdbcType=VARCHAR}, #{function,jdbcType=VARCHAR}, #{wechatAddress,jdbcType=VARCHAR},
#{microBlogAddress,jdbcType=VARCHAR}, #{headlineAddress,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcCheckNavigation">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_check_navigation
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="name != null">
name,
</if>
<if test="iconTile != null">
icon_tile,
</if>
<if test="officialWebsite != null">
official_website,
</if>
<if test="parentId != null">
parent_id,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
<if test="lntroduction != null">
lntroduction,
</if>
<if test="survey != null">
survey,
</if>
<if test="lnstitutionSetting != null">
lnstitution_setting,
</if>
<if test="function != null">
function,
</if>
<if test="wechatAddress != null">
wechat_address,
</if>
<if test="microBlogAddress != null">
micro_blog_address,
</if>
<if test="headlineAddress != null">
headline_address,
</if>
<if test="type != null">
type,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="iconTile != null">
#{iconTile,jdbcType=VARCHAR},
</if>
<if test="officialWebsite != null">
#{officialWebsite,jdbcType=VARCHAR},
</if>
<if test="parentId != null">
#{parentId,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="lntroduction != null">
#{lntroduction,jdbcType=VARCHAR},
</if>
<if test="survey != null">
#{survey,jdbcType=VARCHAR},
</if>
<if test="lnstitutionSetting != null">
#{lnstitutionSetting,jdbcType=VARCHAR},
</if>
<if test="function != null">
#{function,jdbcType=VARCHAR},
</if>
<if test="wechatAddress != null">
#{wechatAddress,jdbcType=VARCHAR},
</if>
<if test="microBlogAddress != null">
#{microBlogAddress,jdbcType=VARCHAR},
</if>
<if test="headlineAddress != null">
#{headlineAddress,jdbcType=VARCHAR},
</if>
<if test="type != null">
#{type,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcCheckNavigationExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_check_navigation
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_check_navigation
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.iconTile != null">
icon_tile = #{record.iconTile,jdbcType=VARCHAR},
</if>
<if test="record.officialWebsite != null">
official_website = #{record.officialWebsite,jdbcType=VARCHAR},
</if>
<if test="record.parentId != null">
parent_id = #{record.parentId,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lntroduction != null">
lntroduction = #{record.lntroduction,jdbcType=VARCHAR},
</if>
<if test="record.survey != null">
survey = #{record.survey,jdbcType=VARCHAR},
</if>
<if test="record.lnstitutionSetting != null">
lnstitution_setting = #{record.lnstitutionSetting,jdbcType=VARCHAR},
</if>
<if test="record.function != null">
function = #{record.function,jdbcType=VARCHAR},
</if>
<if test="record.wechatAddress != null">
wechat_address = #{record.wechatAddress,jdbcType=VARCHAR},
</if>
<if test="record.microBlogAddress != null">
micro_blog_address = #{record.microBlogAddress,jdbcType=VARCHAR},
</if>
<if test="record.headlineAddress != null">
headline_address = #{record.headlineAddress,jdbcType=VARCHAR},
</if>
<if test="record.type != null">
type = #{record.type,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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_check_navigation
set id = #{record.id,jdbcType=VARCHAR},
name = #{record.name,jdbcType=VARCHAR},
icon_tile = #{record.iconTile,jdbcType=VARCHAR},
official_website = #{record.officialWebsite,jdbcType=VARCHAR},
parent_id = #{record.parentId,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
lntroduction = #{record.lntroduction,jdbcType=VARCHAR},
survey = #{record.survey,jdbcType=VARCHAR},
lnstitution_setting = #{record.lnstitutionSetting,jdbcType=VARCHAR},
function = #{record.function,jdbcType=VARCHAR},
wechat_address = #{record.wechatAddress,jdbcType=VARCHAR},
micro_blog_address = #{record.microBlogAddress,jdbcType=VARCHAR},
headline_address = #{record.headlineAddress,jdbcType=VARCHAR},
type = #{record.type,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcCheckNavigation">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_check_navigation
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="iconTile != null">
icon_tile = #{iconTile,jdbcType=VARCHAR},
</if>
<if test="officialWebsite != null">
official_website = #{officialWebsite,jdbcType=VARCHAR},
</if>
<if test="parentId != null">
parent_id = #{parentId,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="lntroduction != null">
lntroduction = #{lntroduction,jdbcType=VARCHAR},
</if>
<if test="survey != null">
survey = #{survey,jdbcType=VARCHAR},
</if>
<if test="lnstitutionSetting != null">
lnstitution_setting = #{lnstitutionSetting,jdbcType=VARCHAR},
</if>
<if test="function != null">
function = #{function,jdbcType=VARCHAR},
</if>
<if test="wechatAddress != null">
wechat_address = #{wechatAddress,jdbcType=VARCHAR},
</if>
<if test="microBlogAddress != null">
micro_blog_address = #{microBlogAddress,jdbcType=VARCHAR},
</if>
<if test="headlineAddress != null">
headline_address = #{headlineAddress,jdbcType=VARCHAR},
</if>
<if test="type != null">
type = #{type,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcCheckNavigation">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_check_navigation
set name = #{name,jdbcType=VARCHAR},
icon_tile = #{iconTile,jdbcType=VARCHAR},
official_website = #{officialWebsite,jdbcType=VARCHAR},
parent_id = #{parentId,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
lntroduction = #{lntroduction,jdbcType=VARCHAR},
survey = #{survey,jdbcType=VARCHAR},
lnstitution_setting = #{lnstitutionSetting,jdbcType=VARCHAR},
function = #{function,jdbcType=VARCHAR},
wechat_address = #{wechatAddress,jdbcType=VARCHAR},
micro_blog_address = #{microBlogAddress,jdbcType=VARCHAR},
headline_address = #{headlineAddress,jdbcType=VARCHAR},
type = #{type,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcCheckNavigationExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_check_navigation
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcConferenceSigningMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcConferenceSigning">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="meeting_id" jdbcType="VARCHAR" property="meetingId" />
<result column="sign_peple" jdbcType="VARCHAR" property="signPeple" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, meeting_id, sign_peple, create_time, last_update_time, remark
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcConferenceSigningExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_conference_signing
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_conference_signing
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_conference_signing
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcConferenceSigningExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_conference_signing
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcConferenceSigning">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_conference_signing (id, meeting_id, sign_peple,
create_time, last_update_time, remark
)
values (#{id,jdbcType=VARCHAR}, #{meetingId,jdbcType=VARCHAR}, #{signPeple,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}, #{lastUpdateTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcConferenceSigning">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_conference_signing
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="meetingId != null">
meeting_id,
</if>
<if test="signPeple != null">
sign_peple,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
<if test="remark != null">
remark,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="meetingId != null">
#{meetingId,jdbcType=VARCHAR},
</if>
<if test="signPeple != null">
#{signPeple,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="remark != null">
#{remark,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcConferenceSigningExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_conference_signing
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_conference_signing
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.meetingId != null">
meeting_id = #{record.meetingId,jdbcType=VARCHAR},
</if>
<if test="record.signPeple != null">
sign_peple = #{record.signPeple,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.remark != null">
remark = #{record.remark,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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_conference_signing
set id = #{record.id,jdbcType=VARCHAR},
meeting_id = #{record.meetingId,jdbcType=VARCHAR},
sign_peple = #{record.signPeple,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
remark = #{record.remark,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcConferenceSigning">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_conference_signing
<set>
<if test="meetingId != null">
meeting_id = #{meetingId,jdbcType=VARCHAR},
</if>
<if test="signPeple != null">
sign_peple = #{signPeple,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="remark != null">
remark = #{remark,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcConferenceSigning">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_conference_signing
set meeting_id = #{meetingId,jdbcType=VARCHAR},
sign_peple = #{signPeple,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
remark = #{remark,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcConferenceSigningExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_conference_signing
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcDictionaryDataMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcDictionaryData">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="cc_dictionary_id" jdbcType="VARCHAR" property="ccDictionaryId" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="value" jdbcType="VARCHAR" property="value" />
<result column="isfixed" jdbcType="INTEGER" property="isfixed" />
<result column="rank" jdbcType="INTEGER" property="rank" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, cc_dictionary_id, name, value, isfixed, rank, create_time, last_update_time
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDictionaryDataExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_dictionary_data
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_dictionary_data
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_dictionary_data
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDictionaryDataExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_dictionary_data
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDictionaryData">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_dictionary_data (id, cc_dictionary_id, name,
value, isfixed, rank,
create_time, last_update_time)
values (#{id,jdbcType=VARCHAR}, #{ccDictionaryId,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
#{value,jdbcType=VARCHAR}, #{isfixed,jdbcType=INTEGER}, #{rank,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP}, #{lastUpdateTime,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDictionaryData">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_dictionary_data
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="ccDictionaryId != null">
cc_dictionary_id,
</if>
<if test="name != null">
name,
</if>
<if test="value != null">
value,
</if>
<if test="isfixed != null">
isfixed,
</if>
<if test="rank != null">
rank,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="ccDictionaryId != null">
#{ccDictionaryId,jdbcType=VARCHAR},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="value != null">
#{value,jdbcType=VARCHAR},
</if>
<if test="isfixed != null">
#{isfixed,jdbcType=INTEGER},
</if>
<if test="rank != null">
#{rank,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDictionaryDataExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_dictionary_data
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_dictionary_data
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.ccDictionaryId != null">
cc_dictionary_id = #{record.ccDictionaryId,jdbcType=VARCHAR},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.value != null">
value = #{record.value,jdbcType=VARCHAR},
</if>
<if test="record.isfixed != null">
isfixed = #{record.isfixed,jdbcType=INTEGER},
</if>
<if test="record.rank != null">
rank = #{record.rank,jdbcType=INTEGER},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_dictionary_data
set id = #{record.id,jdbcType=VARCHAR},
cc_dictionary_id = #{record.ccDictionaryId,jdbcType=VARCHAR},
name = #{record.name,jdbcType=VARCHAR},
value = #{record.value,jdbcType=VARCHAR},
isfixed = #{record.isfixed,jdbcType=INTEGER},
rank = #{record.rank,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDictionaryData">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_dictionary_data
<set>
<if test="ccDictionaryId != null">
cc_dictionary_id = #{ccDictionaryId,jdbcType=VARCHAR},
</if>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="value != null">
value = #{value,jdbcType=VARCHAR},
</if>
<if test="isfixed != null">
isfixed = #{isfixed,jdbcType=INTEGER},
</if>
<if test="rank != null">
rank = #{rank,jdbcType=INTEGER},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDictionaryData">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_dictionary_data
set cc_dictionary_id = #{ccDictionaryId,jdbcType=VARCHAR},
name = #{name,jdbcType=VARCHAR},
value = #{value,jdbcType=VARCHAR},
isfixed = #{isfixed,jdbcType=INTEGER},
rank = #{rank,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDictionaryDataExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_dictionary_data
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcDictionaryMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcDictionary">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="dict_name" jdbcType="VARCHAR" property="dictName" />
<result column="dict_code" jdbcType="VARCHAR" property="dictCode" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, dict_name, dict_code, create_time, last_update_time
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDictionaryExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_dictionary
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_dictionary
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_dictionary
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDictionaryExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_dictionary
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDictionary">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_dictionary (id, dict_name, dict_code,
create_time, last_update_time)
values (#{id,jdbcType=VARCHAR}, #{dictName,jdbcType=VARCHAR}, #{dictCode,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}, #{lastUpdateTime,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDictionary">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_dictionary
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="dictName != null">
dict_name,
</if>
<if test="dictCode != null">
dict_code,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="dictName != null">
#{dictName,jdbcType=VARCHAR},
</if>
<if test="dictCode != null">
#{dictCode,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDictionaryExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_dictionary
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_dictionary
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.dictName != null">
dict_name = #{record.dictName,jdbcType=VARCHAR},
</if>
<if test="record.dictCode != null">
dict_code = #{record.dictCode,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_dictionary
set id = #{record.id,jdbcType=VARCHAR},
dict_name = #{record.dictName,jdbcType=VARCHAR},
dict_code = #{record.dictCode,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDictionary">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_dictionary
<set>
<if test="dictName != null">
dict_name = #{dictName,jdbcType=VARCHAR},
</if>
<if test="dictCode != null">
dict_code = #{dictCode,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDictionary">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_dictionary
set dict_name = #{dictName,jdbcType=VARCHAR},
dict_code = #{dictCode,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDictionaryExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_dictionary
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcDigitalBookMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcDigitalBook">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="book_name" jdbcType="VARCHAR" property="bookName" />
<result column="author" jdbcType="VARCHAR" property="author" />
<result column="publishing_house" jdbcType="VARCHAR" property="publishingHouse" />
<result column="date_publication" jdbcType="TIMESTAMP" property="datePublication" />
<result column="year_publication" jdbcType="VARCHAR" property="yearPublication" />
<result column="type" jdbcType="INTEGER" property="type" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, book_name, author, publishing_house, date_publication, year_publication, type,
create_time, last_update_time
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDigitalBookExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_digital_book
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_digital_book
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_digital_book
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDigitalBookExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_digital_book
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDigitalBook">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_digital_book (id, book_name, author,
publishing_house, date_publication, year_publication,
type, create_time, last_update_time
)
values (#{id,jdbcType=VARCHAR}, #{bookName,jdbcType=VARCHAR}, #{author,jdbcType=VARCHAR},
#{publishingHouse,jdbcType=VARCHAR}, #{datePublication,jdbcType=TIMESTAMP}, #{yearPublication,jdbcType=VARCHAR},
#{type,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{lastUpdateTime,jdbcType=TIMESTAMP}
)
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDigitalBook">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_digital_book
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="bookName != null">
book_name,
</if>
<if test="author != null">
author,
</if>
<if test="publishingHouse != null">
publishing_house,
</if>
<if test="datePublication != null">
date_publication,
</if>
<if test="yearPublication != null">
year_publication,
</if>
<if test="type != null">
type,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="bookName != null">
#{bookName,jdbcType=VARCHAR},
</if>
<if test="author != null">
#{author,jdbcType=VARCHAR},
</if>
<if test="publishingHouse != null">
#{publishingHouse,jdbcType=VARCHAR},
</if>
<if test="datePublication != null">
#{datePublication,jdbcType=TIMESTAMP},
</if>
<if test="yearPublication != null">
#{yearPublication,jdbcType=VARCHAR},
</if>
<if test="type != null">
#{type,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDigitalBookExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_digital_book
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_digital_book
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.bookName != null">
book_name = #{record.bookName,jdbcType=VARCHAR},
</if>
<if test="record.author != null">
author = #{record.author,jdbcType=VARCHAR},
</if>
<if test="record.publishingHouse != null">
publishing_house = #{record.publishingHouse,jdbcType=VARCHAR},
</if>
<if test="record.datePublication != null">
date_publication = #{record.datePublication,jdbcType=TIMESTAMP},
</if>
<if test="record.yearPublication != null">
year_publication = #{record.yearPublication,jdbcType=VARCHAR},
</if>
<if test="record.type != null">
type = #{record.type,jdbcType=INTEGER},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_digital_book
set id = #{record.id,jdbcType=VARCHAR},
book_name = #{record.bookName,jdbcType=VARCHAR},
author = #{record.author,jdbcType=VARCHAR},
publishing_house = #{record.publishingHouse,jdbcType=VARCHAR},
date_publication = #{record.datePublication,jdbcType=TIMESTAMP},
year_publication = #{record.yearPublication,jdbcType=VARCHAR},
type = #{record.type,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDigitalBook">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_digital_book
<set>
<if test="bookName != null">
book_name = #{bookName,jdbcType=VARCHAR},
</if>
<if test="author != null">
author = #{author,jdbcType=VARCHAR},
</if>
<if test="publishingHouse != null">
publishing_house = #{publishingHouse,jdbcType=VARCHAR},
</if>
<if test="datePublication != null">
date_publication = #{datePublication,jdbcType=TIMESTAMP},
</if>
<if test="yearPublication != null">
year_publication = #{yearPublication,jdbcType=VARCHAR},
</if>
<if test="type != null">
type = #{type,jdbcType=INTEGER},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDigitalBook">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:15 CST 2018.
-->
update cc_digital_book
set book_name = #{bookName,jdbcType=VARCHAR},
author = #{author,jdbcType=VARCHAR},
publishing_house = #{publishingHouse,jdbcType=VARCHAR},
date_publication = #{datePublication,jdbcType=TIMESTAMP},
year_publication = #{yearPublication,jdbcType=VARCHAR},
type = #{type,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDigitalBookExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_digital_book
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcDocumentCirculationApprovalMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcDocumentCirculationApproval">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="communications_unit" jdbcType="VARCHAR" property="communicationsUnit" />
<result column="lssued_room" jdbcType="VARCHAR" property="lssuedRoom" />
<result column="document_number" jdbcType="VARCHAR" property="documentNumber" />
<result column="official_title" jdbcType="VARCHAR" property="officialTitle" />
<result column="proposed_advice" jdbcType="VARCHAR" property="proposedAdvice" />
<result column="approver" jdbcType="VARCHAR" property="approver" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
<result column="remarks" jdbcType="VARCHAR" property="remarks" />
<result column="circulation_state" jdbcType="VARCHAR" property="circulationState" />
<result column="prev_id" jdbcType="VARCHAR" property="prevId" />
<result column="approval_status" jdbcType="VARCHAR" property="approvalStatus" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, communications_unit, lssued_room, document_number, official_title, proposed_advice,
approver, create_time, last_update_time, remarks, circulation_state, prev_id, approval_status
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDocumentCirculationApprovalExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_document_circulation_approval
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_document_circulation_approval
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_document_circulation_approval
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDocumentCirculationApprovalExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_document_circulation_approval
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDocumentCirculationApproval">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_document_circulation_approval (id, communications_unit, lssued_room,
document_number, official_title, proposed_advice,
approver, create_time, last_update_time,
remarks, circulation_state, prev_id,
approval_status)
values (#{id,jdbcType=VARCHAR}, #{communicationsUnit,jdbcType=VARCHAR}, #{lssuedRoom,jdbcType=VARCHAR},
#{documentNumber,jdbcType=VARCHAR}, #{officialTitle,jdbcType=VARCHAR}, #{proposedAdvice,jdbcType=VARCHAR},
#{approver,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{lastUpdateTime,jdbcType=TIMESTAMP},
#{remarks,jdbcType=VARCHAR}, #{circulationState,jdbcType=VARCHAR}, #{prevId,jdbcType=VARCHAR},
#{approvalStatus,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDocumentCirculationApproval">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_document_circulation_approval
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="communicationsUnit != null">
communications_unit,
</if>
<if test="lssuedRoom != null">
lssued_room,
</if>
<if test="documentNumber != null">
document_number,
</if>
<if test="officialTitle != null">
official_title,
</if>
<if test="proposedAdvice != null">
proposed_advice,
</if>
<if test="approver != null">
approver,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
<if test="remarks != null">
remarks,
</if>
<if test="circulationState != null">
circulation_state,
</if>
<if test="prevId != null">
prev_id,
</if>
<if test="approvalStatus != null">
approval_status,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="communicationsUnit != null">
#{communicationsUnit,jdbcType=VARCHAR},
</if>
<if test="lssuedRoom != null">
#{lssuedRoom,jdbcType=VARCHAR},
</if>
<if test="documentNumber != null">
#{documentNumber,jdbcType=VARCHAR},
</if>
<if test="officialTitle != null">
#{officialTitle,jdbcType=VARCHAR},
</if>
<if test="proposedAdvice != null">
#{proposedAdvice,jdbcType=VARCHAR},
</if>
<if test="approver != null">
#{approver,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="remarks != null">
#{remarks,jdbcType=VARCHAR},
</if>
<if test="circulationState != null">
#{circulationState,jdbcType=VARCHAR},
</if>
<if test="prevId != null">
#{prevId,jdbcType=VARCHAR},
</if>
<if test="approvalStatus != null">
#{approvalStatus,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDocumentCirculationApprovalExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_document_circulation_approval
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_document_circulation_approval
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.communicationsUnit != null">
communications_unit = #{record.communicationsUnit,jdbcType=VARCHAR},
</if>
<if test="record.lssuedRoom != null">
lssued_room = #{record.lssuedRoom,jdbcType=VARCHAR},
</if>
<if test="record.documentNumber != null">
document_number = #{record.documentNumber,jdbcType=VARCHAR},
</if>
<if test="record.officialTitle != null">
official_title = #{record.officialTitle,jdbcType=VARCHAR},
</if>
<if test="record.proposedAdvice != null">
proposed_advice = #{record.proposedAdvice,jdbcType=VARCHAR},
</if>
<if test="record.approver != null">
approver = #{record.approver,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.remarks != null">
remarks = #{record.remarks,jdbcType=VARCHAR},
</if>
<if test="record.circulationState != null">
circulation_state = #{record.circulationState,jdbcType=VARCHAR},
</if>
<if test="record.prevId != null">
prev_id = #{record.prevId,jdbcType=VARCHAR},
</if>
<if test="record.approvalStatus != null">
approval_status = #{record.approvalStatus,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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_document_circulation_approval
set id = #{record.id,jdbcType=VARCHAR},
communications_unit = #{record.communicationsUnit,jdbcType=VARCHAR},
lssued_room = #{record.lssuedRoom,jdbcType=VARCHAR},
document_number = #{record.documentNumber,jdbcType=VARCHAR},
official_title = #{record.officialTitle,jdbcType=VARCHAR},
proposed_advice = #{record.proposedAdvice,jdbcType=VARCHAR},
approver = #{record.approver,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
remarks = #{record.remarks,jdbcType=VARCHAR},
circulation_state = #{record.circulationState,jdbcType=VARCHAR},
prev_id = #{record.prevId,jdbcType=VARCHAR},
approval_status = #{record.approvalStatus,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDocumentCirculationApproval">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_document_circulation_approval
<set>
<if test="communicationsUnit != null">
communications_unit = #{communicationsUnit,jdbcType=VARCHAR},
</if>
<if test="lssuedRoom != null">
lssued_room = #{lssuedRoom,jdbcType=VARCHAR},
</if>
<if test="documentNumber != null">
document_number = #{documentNumber,jdbcType=VARCHAR},
</if>
<if test="officialTitle != null">
official_title = #{officialTitle,jdbcType=VARCHAR},
</if>
<if test="proposedAdvice != null">
proposed_advice = #{proposedAdvice,jdbcType=VARCHAR},
</if>
<if test="approver != null">
approver = #{approver,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="remarks != null">
remarks = #{remarks,jdbcType=VARCHAR},
</if>
<if test="circulationState != null">
circulation_state = #{circulationState,jdbcType=VARCHAR},
</if>
<if test="prevId != null">
prev_id = #{prevId,jdbcType=VARCHAR},
</if>
<if test="approvalStatus != null">
approval_status = #{approvalStatus,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDocumentCirculationApproval">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_document_circulation_approval
set communications_unit = #{communicationsUnit,jdbcType=VARCHAR},
lssued_room = #{lssuedRoom,jdbcType=VARCHAR},
document_number = #{documentNumber,jdbcType=VARCHAR},
official_title = #{officialTitle,jdbcType=VARCHAR},
proposed_advice = #{proposedAdvice,jdbcType=VARCHAR},
approver = #{approver,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
remarks = #{remarks,jdbcType=VARCHAR},
circulation_state = #{circulationState,jdbcType=VARCHAR},
prev_id = #{prevId,jdbcType=VARCHAR},
approval_status = #{approvalStatus,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDocumentCirculationApprovalExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_document_circulation_approval
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcDutyMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcDuty">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="watch_people" jdbcType="VARCHAR" property="watchPeople" />
<result column="type" jdbcType="VARCHAR" property="type" />
<result column="duty_date" jdbcType="VARCHAR" property="dutyDate" />
<result column="end_time" jdbcType="TIMESTAMP" property="endTime" />
<result column="start_time" jdbcType="TIMESTAMP" property="startTime" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
<result column="on_duty_plan_id" jdbcType="VARCHAR" property="onDutyPlanId" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, watch_people, type, duty_date, end_time, start_time, create_time, last_update_time,
on_duty_plan_id
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDutyExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_duty
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_duty
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_duty
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDutyExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_duty
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDuty">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_duty (id, watch_people, type,
duty_date, end_time, start_time,
create_time, last_update_time, on_duty_plan_id
)
values (#{id,jdbcType=VARCHAR}, #{watchPeople,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR},
#{dutyDate,jdbcType=VARCHAR}, #{endTime,jdbcType=TIMESTAMP}, #{startTime,jdbcType=TIMESTAMP},
#{createTime,jdbcType=TIMESTAMP}, #{lastUpdateTime,jdbcType=TIMESTAMP}, #{onDutyPlanId,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDuty">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_duty
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="watchPeople != null">
watch_people,
</if>
<if test="type != null">
type,
</if>
<if test="dutyDate != null">
duty_date,
</if>
<if test="endTime != null">
end_time,
</if>
<if test="startTime != null">
start_time,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
<if test="onDutyPlanId != null">
on_duty_plan_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="watchPeople != null">
#{watchPeople,jdbcType=VARCHAR},
</if>
<if test="type != null">
#{type,jdbcType=VARCHAR},
</if>
<if test="dutyDate != null">
#{dutyDate,jdbcType=VARCHAR},
</if>
<if test="endTime != null">
#{endTime,jdbcType=TIMESTAMP},
</if>
<if test="startTime != null">
#{startTime,jdbcType=TIMESTAMP},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="onDutyPlanId != null">
#{onDutyPlanId,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDutyExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_duty
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_duty
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.watchPeople != null">
watch_people = #{record.watchPeople,jdbcType=VARCHAR},
</if>
<if test="record.type != null">
type = #{record.type,jdbcType=VARCHAR},
</if>
<if test="record.dutyDate != null">
duty_date = #{record.dutyDate,jdbcType=VARCHAR},
</if>
<if test="record.endTime != null">
end_time = #{record.endTime,jdbcType=TIMESTAMP},
</if>
<if test="record.startTime != null">
start_time = #{record.startTime,jdbcType=TIMESTAMP},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.onDutyPlanId != null">
on_duty_plan_id = #{record.onDutyPlanId,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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_duty
set id = #{record.id,jdbcType=VARCHAR},
watch_people = #{record.watchPeople,jdbcType=VARCHAR},
type = #{record.type,jdbcType=VARCHAR},
duty_date = #{record.dutyDate,jdbcType=VARCHAR},
end_time = #{record.endTime,jdbcType=TIMESTAMP},
start_time = #{record.startTime,jdbcType=TIMESTAMP},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
on_duty_plan_id = #{record.onDutyPlanId,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDuty">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_duty
<set>
<if test="watchPeople != null">
watch_people = #{watchPeople,jdbcType=VARCHAR},
</if>
<if test="type != null">
type = #{type,jdbcType=VARCHAR},
</if>
<if test="dutyDate != null">
duty_date = #{dutyDate,jdbcType=VARCHAR},
</if>
<if test="endTime != null">
end_time = #{endTime,jdbcType=TIMESTAMP},
</if>
<if test="startTime != null">
start_time = #{startTime,jdbcType=TIMESTAMP},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="onDutyPlanId != null">
on_duty_plan_id = #{onDutyPlanId,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDuty">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_duty
set watch_people = #{watchPeople,jdbcType=VARCHAR},
type = #{type,jdbcType=VARCHAR},
duty_date = #{dutyDate,jdbcType=VARCHAR},
end_time = #{endTime,jdbcType=TIMESTAMP},
start_time = #{startTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
on_duty_plan_id = #{onDutyPlanId,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDutyExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_duty
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcDutyPlanMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcDutyPlan">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="leadership" jdbcType="VARCHAR" property="leadership" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, name, leadership, create_time, last_update_time
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDutyPlanExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_duty_plan
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_duty_plan
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_duty_plan
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDutyPlanExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_duty_plan
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDutyPlan">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_duty_plan (id, name, leadership,
create_time, last_update_time)
values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{leadership,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}, #{lastUpdateTime,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDutyPlan">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_duty_plan
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="name != null">
name,
</if>
<if test="leadership != null">
leadership,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="leadership != null">
#{leadership,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDutyPlanExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_duty_plan
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_duty_plan
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.leadership != null">
leadership = #{record.leadership,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_duty_plan
set id = #{record.id,jdbcType=VARCHAR},
name = #{record.name,jdbcType=VARCHAR},
leadership = #{record.leadership,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDutyPlan">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_duty_plan
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="leadership != null">
leadership = #{leadership,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDutyPlan">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_duty_plan
set name = #{name,jdbcType=VARCHAR},
leadership = #{leadership,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcDutyPlanExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_duty_plan
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcExportRecordMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcExportRecord">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="file_id" jdbcType="VARCHAR" property="fileId" />
<result column="export_user" jdbcType="VARCHAR" property="exportUser" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="type" jdbcType="INTEGER" property="type" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, file_id, export_user, create_time, type, remark
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcExportRecordExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_export_record
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_export_record
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_export_record
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcExportRecordExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_export_record
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcExportRecord">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_export_record (id, file_id, export_user,
create_time, type, remark
)
values (#{id,jdbcType=VARCHAR}, #{fileId,jdbcType=VARCHAR}, #{exportUser,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}, #{type,jdbcType=INTEGER}, #{remark,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcExportRecord">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_export_record
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="fileId != null">
file_id,
</if>
<if test="exportUser != null">
export_user,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="type != null">
type,
</if>
<if test="remark != null">
remark,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="fileId != null">
#{fileId,jdbcType=VARCHAR},
</if>
<if test="exportUser != null">
#{exportUser,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="type != null">
#{type,jdbcType=INTEGER},
</if>
<if test="remark != null">
#{remark,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcExportRecordExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_export_record
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_export_record
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.fileId != null">
file_id = #{record.fileId,jdbcType=VARCHAR},
</if>
<if test="record.exportUser != null">
export_user = #{record.exportUser,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.type != null">
type = #{record.type,jdbcType=INTEGER},
</if>
<if test="record.remark != null">
remark = #{record.remark,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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_export_record
set id = #{record.id,jdbcType=VARCHAR},
file_id = #{record.fileId,jdbcType=VARCHAR},
export_user = #{record.exportUser,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
type = #{record.type,jdbcType=INTEGER},
remark = #{record.remark,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcExportRecord">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_export_record
<set>
<if test="fileId != null">
file_id = #{fileId,jdbcType=VARCHAR},
</if>
<if test="exportUser != null">
export_user = #{exportUser,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="type != null">
type = #{type,jdbcType=INTEGER},
</if>
<if test="remark != null">
remark = #{remark,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcExportRecord">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_export_record
set file_id = #{fileId,jdbcType=VARCHAR},
export_user = #{exportUser,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
type = #{type,jdbcType=INTEGER},
remark = #{remark,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcExportRecordExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_export_record
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcFaceMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcFace">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="login_name" jdbcType="VARCHAR" property="loginName" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="face_url" jdbcType="VARCHAR" property="faceUrl" />
<result column="upload_peple" jdbcType="VARCHAR" property="uploadPeple" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, login_name, name, face_url, upload_peple, create_time, last_update_time
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcFaceExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_face
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_face
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_face
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcFaceExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_face
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcFace">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_face (id, login_name, name,
face_url, upload_peple, create_time,
last_update_time)
values (#{id,jdbcType=VARCHAR}, #{loginName,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
#{faceUrl,jdbcType=VARCHAR}, #{uploadPeple,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{lastUpdateTime,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcFace">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_face
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="loginName != null">
login_name,
</if>
<if test="name != null">
name,
</if>
<if test="faceUrl != null">
face_url,
</if>
<if test="uploadPeple != null">
upload_peple,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="loginName != null">
#{loginName,jdbcType=VARCHAR},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="faceUrl != null">
#{faceUrl,jdbcType=VARCHAR},
</if>
<if test="uploadPeple != null">
#{uploadPeple,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcFaceExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_face
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_face
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.loginName != null">
login_name = #{record.loginName,jdbcType=VARCHAR},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.faceUrl != null">
face_url = #{record.faceUrl,jdbcType=VARCHAR},
</if>
<if test="record.uploadPeple != null">
upload_peple = #{record.uploadPeple,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_face
set id = #{record.id,jdbcType=VARCHAR},
login_name = #{record.loginName,jdbcType=VARCHAR},
name = #{record.name,jdbcType=VARCHAR},
face_url = #{record.faceUrl,jdbcType=VARCHAR},
upload_peple = #{record.uploadPeple,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcFace">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_face
<set>
<if test="loginName != null">
login_name = #{loginName,jdbcType=VARCHAR},
</if>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="faceUrl != null">
face_url = #{faceUrl,jdbcType=VARCHAR},
</if>
<if test="uploadPeple != null">
upload_peple = #{uploadPeple,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcFace">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_face
set login_name = #{loginName,jdbcType=VARCHAR},
name = #{name,jdbcType=VARCHAR},
face_url = #{faceUrl,jdbcType=VARCHAR},
upload_peple = #{uploadPeple,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcFaceExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_face
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcLoggingMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcLogging">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="operator" jdbcType="VARCHAR" property="operator" />
<result column="login_time_period" jdbcType="TIMESTAMP" property="loginTimePeriod" />
<result column="operating_time_period" jdbcType="TIMESTAMP" property="operatingTimePeriod" />
<result column="login_type" jdbcType="INTEGER" property="loginType" />
<result column="type_operation" jdbcType="VARCHAR" property="typeOperation" />
<result column="operating_module" jdbcType="VARCHAR" property="operatingModule" />
<result column="affiliation" jdbcType="VARCHAR" property="affiliation" />
<result column="their_department" jdbcType="VARCHAR" property="theirDepartment" />
<result column="log_content" jdbcType="VARCHAR" property="logContent" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, operator, login_time_period, operating_time_period, login_type, type_operation,
operating_module, affiliation, their_department, log_content
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcLoggingExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_logging
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_logging
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_logging
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcLoggingExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_logging
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcLogging">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_logging (id, operator, login_time_period,
operating_time_period, login_type, type_operation,
operating_module, affiliation, their_department,
log_content)
values (#{id,jdbcType=VARCHAR}, #{operator,jdbcType=VARCHAR}, #{loginTimePeriod,jdbcType=TIMESTAMP},
#{operatingTimePeriod,jdbcType=TIMESTAMP}, #{loginType,jdbcType=INTEGER}, #{typeOperation,jdbcType=VARCHAR},
#{operatingModule,jdbcType=VARCHAR}, #{affiliation,jdbcType=VARCHAR}, #{theirDepartment,jdbcType=VARCHAR},
#{logContent,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcLogging">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_logging
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="operator != null">
operator,
</if>
<if test="loginTimePeriod != null">
login_time_period,
</if>
<if test="operatingTimePeriod != null">
operating_time_period,
</if>
<if test="loginType != null">
login_type,
</if>
<if test="typeOperation != null">
type_operation,
</if>
<if test="operatingModule != null">
operating_module,
</if>
<if test="affiliation != null">
affiliation,
</if>
<if test="theirDepartment != null">
their_department,
</if>
<if test="logContent != null">
log_content,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="operator != null">
#{operator,jdbcType=VARCHAR},
</if>
<if test="loginTimePeriod != null">
#{loginTimePeriod,jdbcType=TIMESTAMP},
</if>
<if test="operatingTimePeriod != null">
#{operatingTimePeriod,jdbcType=TIMESTAMP},
</if>
<if test="loginType != null">
#{loginType,jdbcType=INTEGER},
</if>
<if test="typeOperation != null">
#{typeOperation,jdbcType=VARCHAR},
</if>
<if test="operatingModule != null">
#{operatingModule,jdbcType=VARCHAR},
</if>
<if test="affiliation != null">
#{affiliation,jdbcType=VARCHAR},
</if>
<if test="theirDepartment != null">
#{theirDepartment,jdbcType=VARCHAR},
</if>
<if test="logContent != null">
#{logContent,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcLoggingExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_logging
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_logging
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.operator != null">
operator = #{record.operator,jdbcType=VARCHAR},
</if>
<if test="record.loginTimePeriod != null">
login_time_period = #{record.loginTimePeriod,jdbcType=TIMESTAMP},
</if>
<if test="record.operatingTimePeriod != null">
operating_time_period = #{record.operatingTimePeriod,jdbcType=TIMESTAMP},
</if>
<if test="record.loginType != null">
login_type = #{record.loginType,jdbcType=INTEGER},
</if>
<if test="record.typeOperation != null">
type_operation = #{record.typeOperation,jdbcType=VARCHAR},
</if>
<if test="record.operatingModule != null">
operating_module = #{record.operatingModule,jdbcType=VARCHAR},
</if>
<if test="record.affiliation != null">
affiliation = #{record.affiliation,jdbcType=VARCHAR},
</if>
<if test="record.theirDepartment != null">
their_department = #{record.theirDepartment,jdbcType=VARCHAR},
</if>
<if test="record.logContent != null">
log_content = #{record.logContent,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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_logging
set id = #{record.id,jdbcType=VARCHAR},
operator = #{record.operator,jdbcType=VARCHAR},
login_time_period = #{record.loginTimePeriod,jdbcType=TIMESTAMP},
operating_time_period = #{record.operatingTimePeriod,jdbcType=TIMESTAMP},
login_type = #{record.loginType,jdbcType=INTEGER},
type_operation = #{record.typeOperation,jdbcType=VARCHAR},
operating_module = #{record.operatingModule,jdbcType=VARCHAR},
affiliation = #{record.affiliation,jdbcType=VARCHAR},
their_department = #{record.theirDepartment,jdbcType=VARCHAR},
log_content = #{record.logContent,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcLogging">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_logging
<set>
<if test="operator != null">
operator = #{operator,jdbcType=VARCHAR},
</if>
<if test="loginTimePeriod != null">
login_time_period = #{loginTimePeriod,jdbcType=TIMESTAMP},
</if>
<if test="operatingTimePeriod != null">
operating_time_period = #{operatingTimePeriod,jdbcType=TIMESTAMP},
</if>
<if test="loginType != null">
login_type = #{loginType,jdbcType=INTEGER},
</if>
<if test="typeOperation != null">
type_operation = #{typeOperation,jdbcType=VARCHAR},
</if>
<if test="operatingModule != null">
operating_module = #{operatingModule,jdbcType=VARCHAR},
</if>
<if test="affiliation != null">
affiliation = #{affiliation,jdbcType=VARCHAR},
</if>
<if test="theirDepartment != null">
their_department = #{theirDepartment,jdbcType=VARCHAR},
</if>
<if test="logContent != null">
log_content = #{logContent,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcLogging">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_logging
set operator = #{operator,jdbcType=VARCHAR},
login_time_period = #{loginTimePeriod,jdbcType=TIMESTAMP},
operating_time_period = #{operatingTimePeriod,jdbcType=TIMESTAMP},
login_type = #{loginType,jdbcType=INTEGER},
type_operation = #{typeOperation,jdbcType=VARCHAR},
operating_module = #{operatingModule,jdbcType=VARCHAR},
affiliation = #{affiliation,jdbcType=VARCHAR},
their_department = #{theirDepartment,jdbcType=VARCHAR},
log_content = #{logContent,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcLoggingExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_logging
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcMemorandumMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcMemorandum">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
<result column="completion_time" jdbcType="TIMESTAMP" property="completionTime" />
<result column="time_completed" jdbcType="TIMESTAMP" property="timeCompleted" />
<result column="tile" jdbcType="VARCHAR" property="tile" />
<result column="content" jdbcType="VARCHAR" property="content" />
<result column="modes" jdbcType="INTEGER" property="modes" />
<result column="user_id" jdbcType="VARCHAR" property="userId" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, last_update_time, completion_time, time_completed, tile, content, modes, user_id
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMemorandumExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_memorandum
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_memorandum
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_memorandum
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMemorandumExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_memorandum
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMemorandum">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_memorandum (id, last_update_time, completion_time,
time_completed, tile, content,
modes, user_id)
values (#{id,jdbcType=VARCHAR}, #{lastUpdateTime,jdbcType=TIMESTAMP}, #{completionTime,jdbcType=TIMESTAMP},
#{timeCompleted,jdbcType=TIMESTAMP}, #{tile,jdbcType=VARCHAR}, #{content,jdbcType=VARCHAR},
#{modes,jdbcType=INTEGER}, #{userId,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMemorandum">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_memorandum
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
<if test="completionTime != null">
completion_time,
</if>
<if test="timeCompleted != null">
time_completed,
</if>
<if test="tile != null">
tile,
</if>
<if test="content != null">
content,
</if>
<if test="modes != null">
modes,
</if>
<if test="userId != null">
user_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="completionTime != null">
#{completionTime,jdbcType=TIMESTAMP},
</if>
<if test="timeCompleted != null">
#{timeCompleted,jdbcType=TIMESTAMP},
</if>
<if test="tile != null">
#{tile,jdbcType=VARCHAR},
</if>
<if test="content != null">
#{content,jdbcType=VARCHAR},
</if>
<if test="modes != null">
#{modes,jdbcType=INTEGER},
</if>
<if test="userId != null">
#{userId,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMemorandumExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_memorandum
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_memorandum
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.completionTime != null">
completion_time = #{record.completionTime,jdbcType=TIMESTAMP},
</if>
<if test="record.timeCompleted != null">
time_completed = #{record.timeCompleted,jdbcType=TIMESTAMP},
</if>
<if test="record.tile != null">
tile = #{record.tile,jdbcType=VARCHAR},
</if>
<if test="record.content != null">
content = #{record.content,jdbcType=VARCHAR},
</if>
<if test="record.modes != null">
modes = #{record.modes,jdbcType=INTEGER},
</if>
<if test="record.userId != null">
user_id = #{record.userId,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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_memorandum
set id = #{record.id,jdbcType=VARCHAR},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
completion_time = #{record.completionTime,jdbcType=TIMESTAMP},
time_completed = #{record.timeCompleted,jdbcType=TIMESTAMP},
tile = #{record.tile,jdbcType=VARCHAR},
content = #{record.content,jdbcType=VARCHAR},
modes = #{record.modes,jdbcType=INTEGER},
user_id = #{record.userId,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMemorandum">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_memorandum
<set>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="completionTime != null">
completion_time = #{completionTime,jdbcType=TIMESTAMP},
</if>
<if test="timeCompleted != null">
time_completed = #{timeCompleted,jdbcType=TIMESTAMP},
</if>
<if test="tile != null">
tile = #{tile,jdbcType=VARCHAR},
</if>
<if test="content != null">
content = #{content,jdbcType=VARCHAR},
</if>
<if test="modes != null">
modes = #{modes,jdbcType=INTEGER},
</if>
<if test="userId != null">
user_id = #{userId,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMemorandum">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_memorandum
set last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
completion_time = #{completionTime,jdbcType=TIMESTAMP},
time_completed = #{timeCompleted,jdbcType=TIMESTAMP},
tile = #{tile,jdbcType=VARCHAR},
content = #{content,jdbcType=VARCHAR},
modes = #{modes,jdbcType=INTEGER},
user_id = #{userId,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMemorandumExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_memorandum
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcMenuResourceAssociationMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcMenuResourceAssociation">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="menu_id" jdbcType="VARCHAR" property="menuId" />
<result column="resource_id" jdbcType="VARCHAR" property="resourceId" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, menu_id, resource_id, create_time, last_update_time
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMenuResourceAssociationExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_menu_resource_association
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_menu_resource_association
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_menu_resource_association
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMenuResourceAssociationExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_menu_resource_association
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMenuResourceAssociation">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_menu_resource_association (id, menu_id, resource_id,
create_time, last_update_time)
values (#{id,jdbcType=VARCHAR}, #{menuId,jdbcType=VARCHAR}, #{resourceId,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}, #{lastUpdateTime,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMenuResourceAssociation">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_menu_resource_association
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="menuId != null">
menu_id,
</if>
<if test="resourceId != null">
resource_id,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="menuId != null">
#{menuId,jdbcType=VARCHAR},
</if>
<if test="resourceId != null">
#{resourceId,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMenuResourceAssociationExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_menu_resource_association
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_menu_resource_association
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.menuId != null">
menu_id = #{record.menuId,jdbcType=VARCHAR},
</if>
<if test="record.resourceId != null">
resource_id = #{record.resourceId,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_menu_resource_association
set id = #{record.id,jdbcType=VARCHAR},
menu_id = #{record.menuId,jdbcType=VARCHAR},
resource_id = #{record.resourceId,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMenuResourceAssociation">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_menu_resource_association
<set>
<if test="menuId != null">
menu_id = #{menuId,jdbcType=VARCHAR},
</if>
<if test="resourceId != null">
resource_id = #{resourceId,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMenuResourceAssociation">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_menu_resource_association
set menu_id = #{menuId,jdbcType=VARCHAR},
resource_id = #{resourceId,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMenuResourceAssociationExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_menu_resource_association
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcMenuResourceMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcMenuResource">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="title" jdbcType="VARCHAR" property="title" />
<result column="lntroduction" jdbcType="VARCHAR" property="lntroduction" />
<result column="publisher" jdbcType="VARCHAR" property="publisher" />
<result column="type" jdbcType="INTEGER" property="type" />
<result column="thumbnail" jdbcType="VARCHAR" property="thumbnail" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, name, title, lntroduction, publisher, type, thumbnail, create_time, last_update_time
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMenuResourceExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_menu_resource
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_menu_resource
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_menu_resource
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMenuResourceExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_menu_resource
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMenuResource">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_menu_resource (id, name, title,
lntroduction, publisher, type,
thumbnail, create_time, last_update_time
)
values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR},
#{lntroduction,jdbcType=VARCHAR}, #{publisher,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER},
#{thumbnail,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{lastUpdateTime,jdbcType=TIMESTAMP}
)
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMenuResource">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_menu_resource
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="name != null">
name,
</if>
<if test="title != null">
title,
</if>
<if test="lntroduction != null">
lntroduction,
</if>
<if test="publisher != null">
publisher,
</if>
<if test="type != null">
type,
</if>
<if test="thumbnail != null">
thumbnail,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="title != null">
#{title,jdbcType=VARCHAR},
</if>
<if test="lntroduction != null">
#{lntroduction,jdbcType=VARCHAR},
</if>
<if test="publisher != null">
#{publisher,jdbcType=VARCHAR},
</if>
<if test="type != null">
#{type,jdbcType=INTEGER},
</if>
<if test="thumbnail != null">
#{thumbnail,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMenuResourceExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_menu_resource
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_menu_resource
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.title != null">
title = #{record.title,jdbcType=VARCHAR},
</if>
<if test="record.lntroduction != null">
lntroduction = #{record.lntroduction,jdbcType=VARCHAR},
</if>
<if test="record.publisher != null">
publisher = #{record.publisher,jdbcType=VARCHAR},
</if>
<if test="record.type != null">
type = #{record.type,jdbcType=INTEGER},
</if>
<if test="record.thumbnail != null">
thumbnail = #{record.thumbnail,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_menu_resource
set id = #{record.id,jdbcType=VARCHAR},
name = #{record.name,jdbcType=VARCHAR},
title = #{record.title,jdbcType=VARCHAR},
lntroduction = #{record.lntroduction,jdbcType=VARCHAR},
publisher = #{record.publisher,jdbcType=VARCHAR},
type = #{record.type,jdbcType=INTEGER},
thumbnail = #{record.thumbnail,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMenuResource">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_menu_resource
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="title != null">
title = #{title,jdbcType=VARCHAR},
</if>
<if test="lntroduction != null">
lntroduction = #{lntroduction,jdbcType=VARCHAR},
</if>
<if test="publisher != null">
publisher = #{publisher,jdbcType=VARCHAR},
</if>
<if test="type != null">
type = #{type,jdbcType=INTEGER},
</if>
<if test="thumbnail != null">
thumbnail = #{thumbnail,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMenuResource">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_menu_resource
set name = #{name,jdbcType=VARCHAR},
title = #{title,jdbcType=VARCHAR},
lntroduction = #{lntroduction,jdbcType=VARCHAR},
publisher = #{publisher,jdbcType=VARCHAR},
type = #{type,jdbcType=INTEGER},
thumbnail = #{thumbnail,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMenuResourceExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_menu_resource
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcMessageReplyMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcMessageReply">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="user_id" jdbcType="VARCHAR" property="userId" />
<result column="cc_message_reply_id" jdbcType="VARCHAR" property="ccMessageReplyId" />
<result column="cc_message_task_activity_id" jdbcType="VARCHAR" property="ccMessageTaskActivityId" />
<result column="content" jdbcType="VARCHAR" property="content" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
<result column="type" jdbcType="INTEGER" property="type" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, user_id, cc_message_reply_id, cc_message_task_activity_id, content, create_time,
last_update_time, type
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMessageReplyExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_message_reply
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_message_reply
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_message_reply
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMessageReplyExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_message_reply
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMessageReply">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_message_reply (id, user_id, cc_message_reply_id,
cc_message_task_activity_id, content, create_time,
last_update_time, type)
values (#{id,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}, #{ccMessageReplyId,jdbcType=VARCHAR},
#{ccMessageTaskActivityId,jdbcType=VARCHAR}, #{content,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{lastUpdateTime,jdbcType=TIMESTAMP}, #{type,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMessageReply">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_message_reply
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="userId != null">
user_id,
</if>
<if test="ccMessageReplyId != null">
cc_message_reply_id,
</if>
<if test="ccMessageTaskActivityId != null">
cc_message_task_activity_id,
</if>
<if test="content != null">
content,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
<if test="type != null">
type,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="userId != null">
#{userId,jdbcType=VARCHAR},
</if>
<if test="ccMessageReplyId != null">
#{ccMessageReplyId,jdbcType=VARCHAR},
</if>
<if test="ccMessageTaskActivityId != null">
#{ccMessageTaskActivityId,jdbcType=VARCHAR},
</if>
<if test="content != null">
#{content,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="type != null">
#{type,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMessageReplyExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_message_reply
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_message_reply
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.userId != null">
user_id = #{record.userId,jdbcType=VARCHAR},
</if>
<if test="record.ccMessageReplyId != null">
cc_message_reply_id = #{record.ccMessageReplyId,jdbcType=VARCHAR},
</if>
<if test="record.ccMessageTaskActivityId != null">
cc_message_task_activity_id = #{record.ccMessageTaskActivityId,jdbcType=VARCHAR},
</if>
<if test="record.content != null">
content = #{record.content,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.type != null">
type = #{record.type,jdbcType=INTEGER},
</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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_message_reply
set id = #{record.id,jdbcType=VARCHAR},
user_id = #{record.userId,jdbcType=VARCHAR},
cc_message_reply_id = #{record.ccMessageReplyId,jdbcType=VARCHAR},
cc_message_task_activity_id = #{record.ccMessageTaskActivityId,jdbcType=VARCHAR},
content = #{record.content,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
type = #{record.type,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMessageReply">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_message_reply
<set>
<if test="userId != null">
user_id = #{userId,jdbcType=VARCHAR},
</if>
<if test="ccMessageReplyId != null">
cc_message_reply_id = #{ccMessageReplyId,jdbcType=VARCHAR},
</if>
<if test="ccMessageTaskActivityId != null">
cc_message_task_activity_id = #{ccMessageTaskActivityId,jdbcType=VARCHAR},
</if>
<if test="content != null">
content = #{content,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="type != null">
type = #{type,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMessageReply">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_message_reply
set user_id = #{userId,jdbcType=VARCHAR},
cc_message_reply_id = #{ccMessageReplyId,jdbcType=VARCHAR},
cc_message_task_activity_id = #{ccMessageTaskActivityId,jdbcType=VARCHAR},
content = #{content,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
type = #{type,jdbcType=INTEGER}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMessageReplyExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_message_reply
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcMessageReplyStatuMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcMessageReplyStatu">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="cc_message_reply_id" jdbcType="VARCHAR" property="ccMessageReplyId" />
<result column="status" jdbcType="INTEGER" property="status" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, cc_message_reply_id, status, create_time, last_update_time
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMessageReplyStatuExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_message_reply_statu
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_message_reply_statu
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_message_reply_statu
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMessageReplyStatuExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_message_reply_statu
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMessageReplyStatu">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_message_reply_statu (id, cc_message_reply_id, status,
create_time, last_update_time)
values (#{id,jdbcType=VARCHAR}, #{ccMessageReplyId,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP}, #{lastUpdateTime,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMessageReplyStatu">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_message_reply_statu
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="ccMessageReplyId != null">
cc_message_reply_id,
</if>
<if test="status != null">
status,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="ccMessageReplyId != null">
#{ccMessageReplyId,jdbcType=VARCHAR},
</if>
<if test="status != null">
#{status,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMessageReplyStatuExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_message_reply_statu
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_message_reply_statu
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.ccMessageReplyId != null">
cc_message_reply_id = #{record.ccMessageReplyId,jdbcType=VARCHAR},
</if>
<if test="record.status != null">
status = #{record.status,jdbcType=INTEGER},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_message_reply_statu
set id = #{record.id,jdbcType=VARCHAR},
cc_message_reply_id = #{record.ccMessageReplyId,jdbcType=VARCHAR},
status = #{record.status,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMessageReplyStatu">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_message_reply_statu
<set>
<if test="ccMessageReplyId != null">
cc_message_reply_id = #{ccMessageReplyId,jdbcType=VARCHAR},
</if>
<if test="status != null">
status = #{status,jdbcType=INTEGER},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMessageReplyStatu">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_message_reply_statu
set cc_message_reply_id = #{ccMessageReplyId,jdbcType=VARCHAR},
status = #{status,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMessageReplyStatuExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_message_reply_statu
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcMessageTaskActivityMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcMessageTaskActivity">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="cc_work_circle_id" jdbcType="VARCHAR" property="ccWorkCircleId" />
<result column="title" jdbcType="VARCHAR" property="title" />
<result column="text" jdbcType="VARCHAR" property="text" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
<result column="user_id" jdbcType="VARCHAR" property="userId" />
<result column="type" jdbcType="INTEGER" property="type" />
<result column="image_url" jdbcType="VARCHAR" property="imageUrl" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, cc_work_circle_id, title, text, create_time, last_update_time, user_id, type,
image_url, remark
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMessageTaskActivityExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_message_task_activity
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_message_task_activity
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_message_task_activity
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMessageTaskActivityExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_message_task_activity
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMessageTaskActivity">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_message_task_activity (id, cc_work_circle_id, title,
text, create_time, last_update_time,
user_id, type, image_url,
remark)
values (#{id,jdbcType=VARCHAR}, #{ccWorkCircleId,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR},
#{text,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{lastUpdateTime,jdbcType=TIMESTAMP},
#{userId,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER}, #{imageUrl,jdbcType=VARCHAR},
#{remark,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMessageTaskActivity">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_message_task_activity
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="ccWorkCircleId != null">
cc_work_circle_id,
</if>
<if test="title != null">
title,
</if>
<if test="text != null">
text,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
<if test="userId != null">
user_id,
</if>
<if test="type != null">
type,
</if>
<if test="imageUrl != null">
image_url,
</if>
<if test="remark != null">
remark,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="ccWorkCircleId != null">
#{ccWorkCircleId,jdbcType=VARCHAR},
</if>
<if test="title != null">
#{title,jdbcType=VARCHAR},
</if>
<if test="text != null">
#{text,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="userId != null">
#{userId,jdbcType=VARCHAR},
</if>
<if test="type != null">
#{type,jdbcType=INTEGER},
</if>
<if test="imageUrl != null">
#{imageUrl,jdbcType=VARCHAR},
</if>
<if test="remark != null">
#{remark,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMessageTaskActivityExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_message_task_activity
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_message_task_activity
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.ccWorkCircleId != null">
cc_work_circle_id = #{record.ccWorkCircleId,jdbcType=VARCHAR},
</if>
<if test="record.title != null">
title = #{record.title,jdbcType=VARCHAR},
</if>
<if test="record.text != null">
text = #{record.text,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.userId != null">
user_id = #{record.userId,jdbcType=VARCHAR},
</if>
<if test="record.type != null">
type = #{record.type,jdbcType=INTEGER},
</if>
<if test="record.imageUrl != null">
image_url = #{record.imageUrl,jdbcType=VARCHAR},
</if>
<if test="record.remark != null">
remark = #{record.remark,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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_message_task_activity
set id = #{record.id,jdbcType=VARCHAR},
cc_work_circle_id = #{record.ccWorkCircleId,jdbcType=VARCHAR},
title = #{record.title,jdbcType=VARCHAR},
text = #{record.text,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
user_id = #{record.userId,jdbcType=VARCHAR},
type = #{record.type,jdbcType=INTEGER},
image_url = #{record.imageUrl,jdbcType=VARCHAR},
remark = #{record.remark,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMessageTaskActivity">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_message_task_activity
<set>
<if test="ccWorkCircleId != null">
cc_work_circle_id = #{ccWorkCircleId,jdbcType=VARCHAR},
</if>
<if test="title != null">
title = #{title,jdbcType=VARCHAR},
</if>
<if test="text != null">
text = #{text,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="userId != null">
user_id = #{userId,jdbcType=VARCHAR},
</if>
<if test="type != null">
type = #{type,jdbcType=INTEGER},
</if>
<if test="imageUrl != null">
image_url = #{imageUrl,jdbcType=VARCHAR},
</if>
<if test="remark != null">
remark = #{remark,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMessageTaskActivity">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_message_task_activity
set cc_work_circle_id = #{ccWorkCircleId,jdbcType=VARCHAR},
title = #{title,jdbcType=VARCHAR},
text = #{text,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
user_id = #{userId,jdbcType=VARCHAR},
type = #{type,jdbcType=INTEGER},
image_url = #{imageUrl,jdbcType=VARCHAR},
remark = #{remark,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMessageTaskActivityExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_message_task_activity
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcMessageTaskActivityParticipateMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcMessageTaskActivityParticipate">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="user_id" jdbcType="VARCHAR" property="userId" />
<result column="cc_message_task_activity_id" jdbcType="VARCHAR" property="ccMessageTaskActivityId" />
<result column="content" jdbcType="VARCHAR" property="content" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, user_id, cc_message_task_activity_id, content, create_time, last_update_time
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMessageTaskActivityParticipateExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_message_task_activity_participate
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_message_task_activity_participate
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_message_task_activity_participate
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMessageTaskActivityParticipateExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_message_task_activity_participate
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMessageTaskActivityParticipate">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_message_task_activity_participate (id, user_id, cc_message_task_activity_id,
content, create_time, last_update_time
)
values (#{id,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}, #{ccMessageTaskActivityId,jdbcType=VARCHAR},
#{content,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{lastUpdateTime,jdbcType=TIMESTAMP}
)
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMessageTaskActivityParticipate">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_message_task_activity_participate
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="userId != null">
user_id,
</if>
<if test="ccMessageTaskActivityId != null">
cc_message_task_activity_id,
</if>
<if test="content != null">
content,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="userId != null">
#{userId,jdbcType=VARCHAR},
</if>
<if test="ccMessageTaskActivityId != null">
#{ccMessageTaskActivityId,jdbcType=VARCHAR},
</if>
<if test="content != null">
#{content,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMessageTaskActivityParticipateExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_message_task_activity_participate
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_message_task_activity_participate
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.userId != null">
user_id = #{record.userId,jdbcType=VARCHAR},
</if>
<if test="record.ccMessageTaskActivityId != null">
cc_message_task_activity_id = #{record.ccMessageTaskActivityId,jdbcType=VARCHAR},
</if>
<if test="record.content != null">
content = #{record.content,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_message_task_activity_participate
set id = #{record.id,jdbcType=VARCHAR},
user_id = #{record.userId,jdbcType=VARCHAR},
cc_message_task_activity_id = #{record.ccMessageTaskActivityId,jdbcType=VARCHAR},
content = #{record.content,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMessageTaskActivityParticipate">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_message_task_activity_participate
<set>
<if test="userId != null">
user_id = #{userId,jdbcType=VARCHAR},
</if>
<if test="ccMessageTaskActivityId != null">
cc_message_task_activity_id = #{ccMessageTaskActivityId,jdbcType=VARCHAR},
</if>
<if test="content != null">
content = #{content,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMessageTaskActivityParticipate">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_message_task_activity_participate
set user_id = #{userId,jdbcType=VARCHAR},
cc_message_task_activity_id = #{ccMessageTaskActivityId,jdbcType=VARCHAR},
content = #{content,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMessageTaskActivityParticipateExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_message_task_activity_participate
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcMsMemorabiliaMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcMsMemorabilia">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="type" jdbcType="INTEGER" property="type" />
<result column="title" jdbcType="VARCHAR" property="title" />
<result column="text" jdbcType="VARCHAR" property="text" />
<result column="annex" jdbcType="VARCHAR" property="annex" />
<result column="file" jdbcType="VARCHAR" property="file" />
<result column="remarks" jdbcType="VARCHAR" property="remarks" />
<result column="release_type" jdbcType="INTEGER" property="releaseType" />
<result column="release_time" jdbcType="TIMESTAMP" property="releaseTime" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
<result column="is_release" jdbcType="INTEGER" property="isRelease" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="save_draft_time" jdbcType="TIMESTAMP" property="saveDraftTime" />
<result column="is_show_home" jdbcType="TIMESTAMP" property="isShowHome" />
<result column="annex_type" jdbcType="INTEGER" property="annexType" />
<result column="file_type" jdbcType="INTEGER" property="fileType" />
<result column="user_id" jdbcType="VARCHAR" property="userId" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, type, title, text, annex, file, remarks, release_type, release_time, last_update_time,
is_release, create_time, save_draft_time, is_show_home, annex_type, file_type, user_id
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMsMemorabiliaExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_ms_memorabilia
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_ms_memorabilia
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_ms_memorabilia
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMsMemorabiliaExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_ms_memorabilia
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMsMemorabilia">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_ms_memorabilia (id, type, title,
text, annex, file,
remarks, release_type, release_time,
last_update_time, is_release, create_time,
save_draft_time, is_show_home, annex_type,
file_type, user_id)
values (#{id,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER}, #{title,jdbcType=VARCHAR},
#{text,jdbcType=VARCHAR}, #{annex,jdbcType=VARCHAR}, #{file,jdbcType=VARCHAR},
#{remarks,jdbcType=VARCHAR}, #{releaseType,jdbcType=INTEGER}, #{releaseTime,jdbcType=TIMESTAMP},
#{lastUpdateTime,jdbcType=TIMESTAMP}, #{isRelease,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{saveDraftTime,jdbcType=TIMESTAMP}, #{isShowHome,jdbcType=TIMESTAMP}, #{annexType,jdbcType=INTEGER},
#{fileType,jdbcType=INTEGER}, #{userId,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMsMemorabilia">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_ms_memorabilia
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="type != null">
type,
</if>
<if test="title != null">
title,
</if>
<if test="text != null">
text,
</if>
<if test="annex != null">
annex,
</if>
<if test="file != null">
file,
</if>
<if test="remarks != null">
remarks,
</if>
<if test="releaseType != null">
release_type,
</if>
<if test="releaseTime != null">
release_time,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
<if test="isRelease != null">
is_release,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="saveDraftTime != null">
save_draft_time,
</if>
<if test="isShowHome != null">
is_show_home,
</if>
<if test="annexType != null">
annex_type,
</if>
<if test="fileType != null">
file_type,
</if>
<if test="userId != null">
user_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="type != null">
#{type,jdbcType=INTEGER},
</if>
<if test="title != null">
#{title,jdbcType=VARCHAR},
</if>
<if test="text != null">
#{text,jdbcType=VARCHAR},
</if>
<if test="annex != null">
#{annex,jdbcType=VARCHAR},
</if>
<if test="file != null">
#{file,jdbcType=VARCHAR},
</if>
<if test="remarks != null">
#{remarks,jdbcType=VARCHAR},
</if>
<if test="releaseType != null">
#{releaseType,jdbcType=INTEGER},
</if>
<if test="releaseTime != null">
#{releaseTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="isRelease != null">
#{isRelease,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="saveDraftTime != null">
#{saveDraftTime,jdbcType=TIMESTAMP},
</if>
<if test="isShowHome != null">
#{isShowHome,jdbcType=TIMESTAMP},
</if>
<if test="annexType != null">
#{annexType,jdbcType=INTEGER},
</if>
<if test="fileType != null">
#{fileType,jdbcType=INTEGER},
</if>
<if test="userId != null">
#{userId,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMsMemorabiliaExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_ms_memorabilia
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_ms_memorabilia
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.type != null">
type = #{record.type,jdbcType=INTEGER},
</if>
<if test="record.title != null">
title = #{record.title,jdbcType=VARCHAR},
</if>
<if test="record.text != null">
text = #{record.text,jdbcType=VARCHAR},
</if>
<if test="record.annex != null">
annex = #{record.annex,jdbcType=VARCHAR},
</if>
<if test="record.file != null">
file = #{record.file,jdbcType=VARCHAR},
</if>
<if test="record.remarks != null">
remarks = #{record.remarks,jdbcType=VARCHAR},
</if>
<if test="record.releaseType != null">
release_type = #{record.releaseType,jdbcType=INTEGER},
</if>
<if test="record.releaseTime != null">
release_time = #{record.releaseTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.isRelease != null">
is_release = #{record.isRelease,jdbcType=INTEGER},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.saveDraftTime != null">
save_draft_time = #{record.saveDraftTime,jdbcType=TIMESTAMP},
</if>
<if test="record.isShowHome != null">
is_show_home = #{record.isShowHome,jdbcType=TIMESTAMP},
</if>
<if test="record.annexType != null">
annex_type = #{record.annexType,jdbcType=INTEGER},
</if>
<if test="record.fileType != null">
file_type = #{record.fileType,jdbcType=INTEGER},
</if>
<if test="record.userId != null">
user_id = #{record.userId,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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_ms_memorabilia
set id = #{record.id,jdbcType=VARCHAR},
type = #{record.type,jdbcType=INTEGER},
title = #{record.title,jdbcType=VARCHAR},
text = #{record.text,jdbcType=VARCHAR},
annex = #{record.annex,jdbcType=VARCHAR},
file = #{record.file,jdbcType=VARCHAR},
remarks = #{record.remarks,jdbcType=VARCHAR},
release_type = #{record.releaseType,jdbcType=INTEGER},
release_time = #{record.releaseTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
is_release = #{record.isRelease,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
save_draft_time = #{record.saveDraftTime,jdbcType=TIMESTAMP},
is_show_home = #{record.isShowHome,jdbcType=TIMESTAMP},
annex_type = #{record.annexType,jdbcType=INTEGER},
file_type = #{record.fileType,jdbcType=INTEGER},
user_id = #{record.userId,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMsMemorabilia">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_ms_memorabilia
<set>
<if test="type != null">
type = #{type,jdbcType=INTEGER},
</if>
<if test="title != null">
title = #{title,jdbcType=VARCHAR},
</if>
<if test="text != null">
text = #{text,jdbcType=VARCHAR},
</if>
<if test="annex != null">
annex = #{annex,jdbcType=VARCHAR},
</if>
<if test="file != null">
file = #{file,jdbcType=VARCHAR},
</if>
<if test="remarks != null">
remarks = #{remarks,jdbcType=VARCHAR},
</if>
<if test="releaseType != null">
release_type = #{releaseType,jdbcType=INTEGER},
</if>
<if test="releaseTime != null">
release_time = #{releaseTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="isRelease != null">
is_release = #{isRelease,jdbcType=INTEGER},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="saveDraftTime != null">
save_draft_time = #{saveDraftTime,jdbcType=TIMESTAMP},
</if>
<if test="isShowHome != null">
is_show_home = #{isShowHome,jdbcType=TIMESTAMP},
</if>
<if test="annexType != null">
annex_type = #{annexType,jdbcType=INTEGER},
</if>
<if test="fileType != null">
file_type = #{fileType,jdbcType=INTEGER},
</if>
<if test="userId != null">
user_id = #{userId,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMsMemorabilia">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_ms_memorabilia
set type = #{type,jdbcType=INTEGER},
title = #{title,jdbcType=VARCHAR},
text = #{text,jdbcType=VARCHAR},
annex = #{annex,jdbcType=VARCHAR},
file = #{file,jdbcType=VARCHAR},
remarks = #{remarks,jdbcType=VARCHAR},
release_type = #{releaseType,jdbcType=INTEGER},
release_time = #{releaseTime,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
is_release = #{isRelease,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
save_draft_time = #{saveDraftTime,jdbcType=TIMESTAMP},
is_show_home = #{isShowHome,jdbcType=TIMESTAMP},
annex_type = #{annexType,jdbcType=INTEGER},
file_type = #{fileType,jdbcType=INTEGER},
user_id = #{userId,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcMsMemorabiliaExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_ms_memorabilia
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcNotificationMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcNotification">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
<result column="type" jdbcType="VARCHAR" property="type" />
<result column="title" jdbcType="VARCHAR" property="title" />
<result column="sign_type" jdbcType="VARCHAR" property="signType" />
<result column="notice_type" jdbcType="VARCHAR" property="noticeType" />
<result column="publish_content" jdbcType="VARCHAR" property="publishContent" />
<result column="state_approval" jdbcType="VARCHAR" property="stateApproval" />
<result column="revokes" jdbcType="VARCHAR" property="revokes" />
<result column="sms_reminding" jdbcType="VARCHAR" property="smsReminding" />
<result column="special_network" jdbcType="VARCHAR" property="specialNetwork" />
<result column="push_multimedia" jdbcType="VARCHAR" property="pushMultimedia" />
<result column="final_approver" jdbcType="VARCHAR" property="finalApprover" />
<result column="publisher_id" jdbcType="VARCHAR" property="publisherId" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, create_time, last_update_time, type, title, sign_type, notice_type, publish_content,
state_approval, revokes, sms_reminding, special_network, push_multimedia, final_approver,
publisher_id
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcNotificationExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_notification
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_notification
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_notification
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcNotificationExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_notification
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcNotification">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_notification (id, create_time, last_update_time,
type, title, sign_type,
notice_type, publish_content, state_approval,
revokes, sms_reminding, special_network,
push_multimedia, final_approver, publisher_id
)
values (#{id,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{lastUpdateTime,jdbcType=TIMESTAMP},
#{type,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR}, #{signType,jdbcType=VARCHAR},
#{noticeType,jdbcType=VARCHAR}, #{publishContent,jdbcType=VARCHAR}, #{stateApproval,jdbcType=VARCHAR},
#{revokes,jdbcType=VARCHAR}, #{smsReminding,jdbcType=VARCHAR}, #{specialNetwork,jdbcType=VARCHAR},
#{pushMultimedia,jdbcType=VARCHAR}, #{finalApprover,jdbcType=VARCHAR}, #{publisherId,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcNotification">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_notification
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
<if test="type != null">
type,
</if>
<if test="title != null">
title,
</if>
<if test="signType != null">
sign_type,
</if>
<if test="noticeType != null">
notice_type,
</if>
<if test="publishContent != null">
publish_content,
</if>
<if test="stateApproval != null">
state_approval,
</if>
<if test="revokes != null">
revokes,
</if>
<if test="smsReminding != null">
sms_reminding,
</if>
<if test="specialNetwork != null">
special_network,
</if>
<if test="pushMultimedia != null">
push_multimedia,
</if>
<if test="finalApprover != null">
final_approver,
</if>
<if test="publisherId != null">
publisher_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="type != null">
#{type,jdbcType=VARCHAR},
</if>
<if test="title != null">
#{title,jdbcType=VARCHAR},
</if>
<if test="signType != null">
#{signType,jdbcType=VARCHAR},
</if>
<if test="noticeType != null">
#{noticeType,jdbcType=VARCHAR},
</if>
<if test="publishContent != null">
#{publishContent,jdbcType=VARCHAR},
</if>
<if test="stateApproval != null">
#{stateApproval,jdbcType=VARCHAR},
</if>
<if test="revokes != null">
#{revokes,jdbcType=VARCHAR},
</if>
<if test="smsReminding != null">
#{smsReminding,jdbcType=VARCHAR},
</if>
<if test="specialNetwork != null">
#{specialNetwork,jdbcType=VARCHAR},
</if>
<if test="pushMultimedia != null">
#{pushMultimedia,jdbcType=VARCHAR},
</if>
<if test="finalApprover != null">
#{finalApprover,jdbcType=VARCHAR},
</if>
<if test="publisherId != null">
#{publisherId,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcNotificationExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_notification
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_notification
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.type != null">
type = #{record.type,jdbcType=VARCHAR},
</if>
<if test="record.title != null">
title = #{record.title,jdbcType=VARCHAR},
</if>
<if test="record.signType != null">
sign_type = #{record.signType,jdbcType=VARCHAR},
</if>
<if test="record.noticeType != null">
notice_type = #{record.noticeType,jdbcType=VARCHAR},
</if>
<if test="record.publishContent != null">
publish_content = #{record.publishContent,jdbcType=VARCHAR},
</if>
<if test="record.stateApproval != null">
state_approval = #{record.stateApproval,jdbcType=VARCHAR},
</if>
<if test="record.revokes != null">
revokes = #{record.revokes,jdbcType=VARCHAR},
</if>
<if test="record.smsReminding != null">
sms_reminding = #{record.smsReminding,jdbcType=VARCHAR},
</if>
<if test="record.specialNetwork != null">
special_network = #{record.specialNetwork,jdbcType=VARCHAR},
</if>
<if test="record.pushMultimedia != null">
push_multimedia = #{record.pushMultimedia,jdbcType=VARCHAR},
</if>
<if test="record.finalApprover != null">
final_approver = #{record.finalApprover,jdbcType=VARCHAR},
</if>
<if test="record.publisherId != null">
publisher_id = #{record.publisherId,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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_notification
set id = #{record.id,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
type = #{record.type,jdbcType=VARCHAR},
title = #{record.title,jdbcType=VARCHAR},
sign_type = #{record.signType,jdbcType=VARCHAR},
notice_type = #{record.noticeType,jdbcType=VARCHAR},
publish_content = #{record.publishContent,jdbcType=VARCHAR},
state_approval = #{record.stateApproval,jdbcType=VARCHAR},
revokes = #{record.revokes,jdbcType=VARCHAR},
sms_reminding = #{record.smsReminding,jdbcType=VARCHAR},
special_network = #{record.specialNetwork,jdbcType=VARCHAR},
push_multimedia = #{record.pushMultimedia,jdbcType=VARCHAR},
final_approver = #{record.finalApprover,jdbcType=VARCHAR},
publisher_id = #{record.publisherId,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcNotification">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_notification
<set>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="type != null">
type = #{type,jdbcType=VARCHAR},
</if>
<if test="title != null">
title = #{title,jdbcType=VARCHAR},
</if>
<if test="signType != null">
sign_type = #{signType,jdbcType=VARCHAR},
</if>
<if test="noticeType != null">
notice_type = #{noticeType,jdbcType=VARCHAR},
</if>
<if test="publishContent != null">
publish_content = #{publishContent,jdbcType=VARCHAR},
</if>
<if test="stateApproval != null">
state_approval = #{stateApproval,jdbcType=VARCHAR},
</if>
<if test="revokes != null">
revokes = #{revokes,jdbcType=VARCHAR},
</if>
<if test="smsReminding != null">
sms_reminding = #{smsReminding,jdbcType=VARCHAR},
</if>
<if test="specialNetwork != null">
special_network = #{specialNetwork,jdbcType=VARCHAR},
</if>
<if test="pushMultimedia != null">
push_multimedia = #{pushMultimedia,jdbcType=VARCHAR},
</if>
<if test="finalApprover != null">
final_approver = #{finalApprover,jdbcType=VARCHAR},
</if>
<if test="publisherId != null">
publisher_id = #{publisherId,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcNotification">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_notification
set create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
type = #{type,jdbcType=VARCHAR},
title = #{title,jdbcType=VARCHAR},
sign_type = #{signType,jdbcType=VARCHAR},
notice_type = #{noticeType,jdbcType=VARCHAR},
publish_content = #{publishContent,jdbcType=VARCHAR},
state_approval = #{stateApproval,jdbcType=VARCHAR},
revokes = #{revokes,jdbcType=VARCHAR},
sms_reminding = #{smsReminding,jdbcType=VARCHAR},
special_network = #{specialNetwork,jdbcType=VARCHAR},
push_multimedia = #{pushMultimedia,jdbcType=VARCHAR},
final_approver = #{finalApprover,jdbcType=VARCHAR},
publisher_id = #{publisherId,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcNotificationExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_notification
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcNumberMaintenanceMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcNumberMaintenance">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="area_name" jdbcType="VARCHAR" property="areaName" />
<result column="area_type" jdbcType="INTEGER" property="areaType" />
<result column="area_length" jdbcType="INTEGER" property="areaLength" />
<result column="is_used" jdbcType="INTEGER" property="isUsed" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
<result column="cc_rule_maintenance_id" jdbcType="VARCHAR" property="ccRuleMaintenanceId" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, area_name, area_type, area_length, is_used, create_time, last_update_time, cc_rule_maintenance_id
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcNumberMaintenanceExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_number_maintenance
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_number_maintenance
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_number_maintenance
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcNumberMaintenanceExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_number_maintenance
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcNumberMaintenance">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_number_maintenance (id, area_name, area_type,
area_length, is_used, create_time,
last_update_time, cc_rule_maintenance_id)
values (#{id,jdbcType=VARCHAR}, #{areaName,jdbcType=VARCHAR}, #{areaType,jdbcType=INTEGER},
#{areaLength,jdbcType=INTEGER}, #{isUsed,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{lastUpdateTime,jdbcType=TIMESTAMP}, #{ccRuleMaintenanceId,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcNumberMaintenance">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_number_maintenance
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="areaName != null">
area_name,
</if>
<if test="areaType != null">
area_type,
</if>
<if test="areaLength != null">
area_length,
</if>
<if test="isUsed != null">
is_used,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
<if test="ccRuleMaintenanceId != null">
cc_rule_maintenance_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="areaName != null">
#{areaName,jdbcType=VARCHAR},
</if>
<if test="areaType != null">
#{areaType,jdbcType=INTEGER},
</if>
<if test="areaLength != null">
#{areaLength,jdbcType=INTEGER},
</if>
<if test="isUsed != null">
#{isUsed,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="ccRuleMaintenanceId != null">
#{ccRuleMaintenanceId,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcNumberMaintenanceExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_number_maintenance
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_number_maintenance
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.areaName != null">
area_name = #{record.areaName,jdbcType=VARCHAR},
</if>
<if test="record.areaType != null">
area_type = #{record.areaType,jdbcType=INTEGER},
</if>
<if test="record.areaLength != null">
area_length = #{record.areaLength,jdbcType=INTEGER},
</if>
<if test="record.isUsed != null">
is_used = #{record.isUsed,jdbcType=INTEGER},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.ccRuleMaintenanceId != null">
cc_rule_maintenance_id = #{record.ccRuleMaintenanceId,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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_number_maintenance
set id = #{record.id,jdbcType=VARCHAR},
area_name = #{record.areaName,jdbcType=VARCHAR},
area_type = #{record.areaType,jdbcType=INTEGER},
area_length = #{record.areaLength,jdbcType=INTEGER},
is_used = #{record.isUsed,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
cc_rule_maintenance_id = #{record.ccRuleMaintenanceId,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcNumberMaintenance">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_number_maintenance
<set>
<if test="areaName != null">
area_name = #{areaName,jdbcType=VARCHAR},
</if>
<if test="areaType != null">
area_type = #{areaType,jdbcType=INTEGER},
</if>
<if test="areaLength != null">
area_length = #{areaLength,jdbcType=INTEGER},
</if>
<if test="isUsed != null">
is_used = #{isUsed,jdbcType=INTEGER},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="ccRuleMaintenanceId != null">
cc_rule_maintenance_id = #{ccRuleMaintenanceId,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcNumberMaintenance">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_number_maintenance
set area_name = #{areaName,jdbcType=VARCHAR},
area_type = #{areaType,jdbcType=INTEGER},
area_length = #{areaLength,jdbcType=INTEGER},
is_used = #{isUsed,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
cc_rule_maintenance_id = #{ccRuleMaintenanceId,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcNumberMaintenanceExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_number_maintenance
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcOcrFileMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcOcrFile">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="file_name" jdbcType="VARCHAR" property="fileName" />
<result column="file_path" jdbcType="VARCHAR" property="filePath" />
<result column="upload_user" jdbcType="VARCHAR" property="uploadUser" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="status" jdbcType="VARCHAR" property="status" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, file_name, file_path, upload_user, last_update_time, create_time, status
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcOcrFileExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_ocr_file
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_ocr_file
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_ocr_file
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcOcrFileExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_ocr_file
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcOcrFile">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_ocr_file (id, file_name, file_path,
upload_user, last_update_time, create_time,
status)
values (#{id,jdbcType=VARCHAR}, #{fileName,jdbcType=VARCHAR}, #{filePath,jdbcType=VARCHAR},
#{uploadUser,jdbcType=VARCHAR}, #{lastUpdateTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP},
#{status,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcOcrFile">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_ocr_file
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="fileName != null">
file_name,
</if>
<if test="filePath != null">
file_path,
</if>
<if test="uploadUser != null">
upload_user,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="status != null">
status,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="fileName != null">
#{fileName,jdbcType=VARCHAR},
</if>
<if test="filePath != null">
#{filePath,jdbcType=VARCHAR},
</if>
<if test="uploadUser != null">
#{uploadUser,jdbcType=VARCHAR},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="status != null">
#{status,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcOcrFileExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_ocr_file
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_ocr_file
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.fileName != null">
file_name = #{record.fileName,jdbcType=VARCHAR},
</if>
<if test="record.filePath != null">
file_path = #{record.filePath,jdbcType=VARCHAR},
</if>
<if test="record.uploadUser != null">
upload_user = #{record.uploadUser,jdbcType=VARCHAR},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.status != null">
status = #{record.status,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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_ocr_file
set id = #{record.id,jdbcType=VARCHAR},
file_name = #{record.fileName,jdbcType=VARCHAR},
file_path = #{record.filePath,jdbcType=VARCHAR},
upload_user = #{record.uploadUser,jdbcType=VARCHAR},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
status = #{record.status,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcOcrFile">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_ocr_file
<set>
<if test="fileName != null">
file_name = #{fileName,jdbcType=VARCHAR},
</if>
<if test="filePath != null">
file_path = #{filePath,jdbcType=VARCHAR},
</if>
<if test="uploadUser != null">
upload_user = #{uploadUser,jdbcType=VARCHAR},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="status != null">
status = #{status,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcOcrFile">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_ocr_file
set file_name = #{fileName,jdbcType=VARCHAR},
file_path = #{filePath,jdbcType=VARCHAR},
upload_user = #{uploadUser,jdbcType=VARCHAR},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
status = #{status,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcOcrFileExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_ocr_file
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcOfficialDocumentGenerateMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcOfficialDocumentGenerate">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="department_id" jdbcType="VARCHAR" property="departmentId" />
<result column="creator_id" jdbcType="VARCHAR" property="creatorId" />
<result column="secret_years" jdbcType="INTEGER" property="secretYears" />
<result column="emergency_level" jdbcType="INTEGER" property="emergencyLevel" />
<result column="template_id" jdbcType="VARCHAR" property="templateId" />
<result column="font" jdbcType="VARCHAR" property="font" />
<result column="file_name" jdbcType="VARCHAR" property="fileName" />
<result column="file_path" jdbcType="VARCHAR" property="filePath" />
<result column="remarks" jdbcType="VARCHAR" property="remarks" />
<result column="create_tine" jdbcType="TIMESTAMP" property="createTine" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.haomostudio.SeekTruthBackend.domain.CcOfficialDocumentGenerate">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<result column="content" jdbcType="LONGVARCHAR" property="content" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, name, department_id, creator_id, secret_years, emergency_level, template_id,
font, file_name, file_path, remarks, create_tine, last_update_time
</sql>
<sql id="Blob_Column_List">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
content
</sql>
<select id="selectByExampleWithBLOBs" parameterType="com.haomostudio.SeekTruthBackend.domain.CcOfficialDocumentGenerateExample" resultMap="ResultMapWithBLOBs">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from cc_official_document_generate
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcOfficialDocumentGenerateExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_official_document_generate
<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="ResultMapWithBLOBs">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from cc_official_document_generate
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_official_document_generate
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcOfficialDocumentGenerateExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_official_document_generate
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcOfficialDocumentGenerate">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_official_document_generate (id, name, department_id,
creator_id, secret_years, emergency_level,
template_id, font, file_name,
file_path, remarks, create_tine,
last_update_time, content)
values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{departmentId,jdbcType=VARCHAR},
#{creatorId,jdbcType=VARCHAR}, #{secretYears,jdbcType=INTEGER}, #{emergencyLevel,jdbcType=INTEGER},
#{templateId,jdbcType=VARCHAR}, #{font,jdbcType=VARCHAR}, #{fileName,jdbcType=VARCHAR},
#{filePath,jdbcType=VARCHAR}, #{remarks,jdbcType=VARCHAR}, #{createTine,jdbcType=TIMESTAMP},
#{lastUpdateTime,jdbcType=TIMESTAMP}, #{content,jdbcType=LONGVARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcOfficialDocumentGenerate">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_official_document_generate
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="name != null">
name,
</if>
<if test="departmentId != null">
department_id,
</if>
<if test="creatorId != null">
creator_id,
</if>
<if test="secretYears != null">
secret_years,
</if>
<if test="emergencyLevel != null">
emergency_level,
</if>
<if test="templateId != null">
template_id,
</if>
<if test="font != null">
font,
</if>
<if test="fileName != null">
file_name,
</if>
<if test="filePath != null">
file_path,
</if>
<if test="remarks != null">
remarks,
</if>
<if test="createTine != null">
create_tine,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
<if test="content != null">
content,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="departmentId != null">
#{departmentId,jdbcType=VARCHAR},
</if>
<if test="creatorId != null">
#{creatorId,jdbcType=VARCHAR},
</if>
<if test="secretYears != null">
#{secretYears,jdbcType=INTEGER},
</if>
<if test="emergencyLevel != null">
#{emergencyLevel,jdbcType=INTEGER},
</if>
<if test="templateId != null">
#{templateId,jdbcType=VARCHAR},
</if>
<if test="font != null">
#{font,jdbcType=VARCHAR},
</if>
<if test="fileName != null">
#{fileName,jdbcType=VARCHAR},
</if>
<if test="filePath != null">
#{filePath,jdbcType=VARCHAR},
</if>
<if test="remarks != null">
#{remarks,jdbcType=VARCHAR},
</if>
<if test="createTine != null">
#{createTine,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="content != null">
#{content,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcOfficialDocumentGenerateExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_official_document_generate
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_official_document_generate
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.departmentId != null">
department_id = #{record.departmentId,jdbcType=VARCHAR},
</if>
<if test="record.creatorId != null">
creator_id = #{record.creatorId,jdbcType=VARCHAR},
</if>
<if test="record.secretYears != null">
secret_years = #{record.secretYears,jdbcType=INTEGER},
</if>
<if test="record.emergencyLevel != null">
emergency_level = #{record.emergencyLevel,jdbcType=INTEGER},
</if>
<if test="record.templateId != null">
template_id = #{record.templateId,jdbcType=VARCHAR},
</if>
<if test="record.font != null">
font = #{record.font,jdbcType=VARCHAR},
</if>
<if test="record.fileName != null">
file_name = #{record.fileName,jdbcType=VARCHAR},
</if>
<if test="record.filePath != null">
file_path = #{record.filePath,jdbcType=VARCHAR},
</if>
<if test="record.remarks != null">
remarks = #{record.remarks,jdbcType=VARCHAR},
</if>
<if test="record.createTine != null">
create_tine = #{record.createTine,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.content != null">
content = #{record.content,jdbcType=LONGVARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExampleWithBLOBs" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_official_document_generate
set id = #{record.id,jdbcType=VARCHAR},
name = #{record.name,jdbcType=VARCHAR},
department_id = #{record.departmentId,jdbcType=VARCHAR},
creator_id = #{record.creatorId,jdbcType=VARCHAR},
secret_years = #{record.secretYears,jdbcType=INTEGER},
emergency_level = #{record.emergencyLevel,jdbcType=INTEGER},
template_id = #{record.templateId,jdbcType=VARCHAR},
font = #{record.font,jdbcType=VARCHAR},
file_name = #{record.fileName,jdbcType=VARCHAR},
file_path = #{record.filePath,jdbcType=VARCHAR},
remarks = #{record.remarks,jdbcType=VARCHAR},
create_tine = #{record.createTine,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
content = #{record.content,jdbcType=LONGVARCHAR}
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_official_document_generate
set id = #{record.id,jdbcType=VARCHAR},
name = #{record.name,jdbcType=VARCHAR},
department_id = #{record.departmentId,jdbcType=VARCHAR},
creator_id = #{record.creatorId,jdbcType=VARCHAR},
secret_years = #{record.secretYears,jdbcType=INTEGER},
emergency_level = #{record.emergencyLevel,jdbcType=INTEGER},
template_id = #{record.templateId,jdbcType=VARCHAR},
font = #{record.font,jdbcType=VARCHAR},
file_name = #{record.fileName,jdbcType=VARCHAR},
file_path = #{record.filePath,jdbcType=VARCHAR},
remarks = #{record.remarks,jdbcType=VARCHAR},
create_tine = #{record.createTine,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcOfficialDocumentGenerate">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_official_document_generate
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="departmentId != null">
department_id = #{departmentId,jdbcType=VARCHAR},
</if>
<if test="creatorId != null">
creator_id = #{creatorId,jdbcType=VARCHAR},
</if>
<if test="secretYears != null">
secret_years = #{secretYears,jdbcType=INTEGER},
</if>
<if test="emergencyLevel != null">
emergency_level = #{emergencyLevel,jdbcType=INTEGER},
</if>
<if test="templateId != null">
template_id = #{templateId,jdbcType=VARCHAR},
</if>
<if test="font != null">
font = #{font,jdbcType=VARCHAR},
</if>
<if test="fileName != null">
file_name = #{fileName,jdbcType=VARCHAR},
</if>
<if test="filePath != null">
file_path = #{filePath,jdbcType=VARCHAR},
</if>
<if test="remarks != null">
remarks = #{remarks,jdbcType=VARCHAR},
</if>
<if test="createTine != null">
create_tine = #{createTine,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="content != null">
content = #{content,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.haomostudio.SeekTruthBackend.domain.CcOfficialDocumentGenerate">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_official_document_generate
set name = #{name,jdbcType=VARCHAR},
department_id = #{departmentId,jdbcType=VARCHAR},
creator_id = #{creatorId,jdbcType=VARCHAR},
secret_years = #{secretYears,jdbcType=INTEGER},
emergency_level = #{emergencyLevel,jdbcType=INTEGER},
template_id = #{templateId,jdbcType=VARCHAR},
font = #{font,jdbcType=VARCHAR},
file_name = #{fileName,jdbcType=VARCHAR},
file_path = #{filePath,jdbcType=VARCHAR},
remarks = #{remarks,jdbcType=VARCHAR},
create_tine = #{createTine,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
content = #{content,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcOfficialDocumentGenerate">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_official_document_generate
set name = #{name,jdbcType=VARCHAR},
department_id = #{departmentId,jdbcType=VARCHAR},
creator_id = #{creatorId,jdbcType=VARCHAR},
secret_years = #{secretYears,jdbcType=INTEGER},
emergency_level = #{emergencyLevel,jdbcType=INTEGER},
template_id = #{templateId,jdbcType=VARCHAR},
font = #{font,jdbcType=VARCHAR},
file_name = #{fileName,jdbcType=VARCHAR},
file_path = #{filePath,jdbcType=VARCHAR},
remarks = #{remarks,jdbcType=VARCHAR},
create_tine = #{createTine,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithBLOBsWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcOfficialDocumentGenerateExample" resultMap="ResultMapWithBLOBs">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from cc_official_document_generate
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcOfficialDocumentGenerateExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_official_document_generate
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcOfficialDocumentMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcOfficialDocument">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="type" jdbcType="INTEGER" property="type" />
<result column="path" jdbcType="VARCHAR" property="path" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
<result column="remarks" jdbcType="VARCHAR" property="remarks" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, name, type, path, create_time, last_update_time, remarks
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcOfficialDocumentExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_official_document
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_official_document
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_official_document
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcOfficialDocumentExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_official_document
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcOfficialDocument">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_official_document (id, name, type,
path, create_time, last_update_time,
remarks)
values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER},
#{path,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{lastUpdateTime,jdbcType=TIMESTAMP},
#{remarks,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcOfficialDocument">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_official_document
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="name != null">
name,
</if>
<if test="type != null">
type,
</if>
<if test="path != null">
path,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
<if test="remarks != null">
remarks,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="type != null">
#{type,jdbcType=INTEGER},
</if>
<if test="path != null">
#{path,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="remarks != null">
#{remarks,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcOfficialDocumentExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_official_document
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_official_document
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.type != null">
type = #{record.type,jdbcType=INTEGER},
</if>
<if test="record.path != null">
path = #{record.path,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.remarks != null">
remarks = #{record.remarks,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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_official_document
set id = #{record.id,jdbcType=VARCHAR},
name = #{record.name,jdbcType=VARCHAR},
type = #{record.type,jdbcType=INTEGER},
path = #{record.path,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
remarks = #{record.remarks,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcOfficialDocument">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_official_document
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="type != null">
type = #{type,jdbcType=INTEGER},
</if>
<if test="path != null">
path = #{path,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="remarks != null">
remarks = #{remarks,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcOfficialDocument">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_official_document
set name = #{name,jdbcType=VARCHAR},
type = #{type,jdbcType=INTEGER},
path = #{path,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
remarks = #{remarks,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcOfficialDocumentExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_official_document
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcOfficialDocumentsAnnexMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcOfficialDocumentsAnnex">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="file_id" jdbcType="VARCHAR" property="fileId" />
<result column="document_approval_id" jdbcType="VARCHAR" property="documentApprovalId" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, file_id, document_approval_id, create_time, last_update_time
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcOfficialDocumentsAnnexExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_official_documents_annex
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_official_documents_annex
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_official_documents_annex
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcOfficialDocumentsAnnexExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_official_documents_annex
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcOfficialDocumentsAnnex">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_official_documents_annex (id, file_id, document_approval_id,
create_time, last_update_time)
values (#{id,jdbcType=VARCHAR}, #{fileId,jdbcType=VARCHAR}, #{documentApprovalId,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}, #{lastUpdateTime,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcOfficialDocumentsAnnex">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_official_documents_annex
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="fileId != null">
file_id,
</if>
<if test="documentApprovalId != null">
document_approval_id,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="fileId != null">
#{fileId,jdbcType=VARCHAR},
</if>
<if test="documentApprovalId != null">
#{documentApprovalId,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcOfficialDocumentsAnnexExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_official_documents_annex
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_official_documents_annex
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.fileId != null">
file_id = #{record.fileId,jdbcType=VARCHAR},
</if>
<if test="record.documentApprovalId != null">
document_approval_id = #{record.documentApprovalId,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_official_documents_annex
set id = #{record.id,jdbcType=VARCHAR},
file_id = #{record.fileId,jdbcType=VARCHAR},
document_approval_id = #{record.documentApprovalId,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcOfficialDocumentsAnnex">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_official_documents_annex
<set>
<if test="fileId != null">
file_id = #{fileId,jdbcType=VARCHAR},
</if>
<if test="documentApprovalId != null">
document_approval_id = #{documentApprovalId,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcOfficialDocumentsAnnex">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_official_documents_annex
set file_id = #{fileId,jdbcType=VARCHAR},
document_approval_id = #{documentApprovalId,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcOfficialDocumentsAnnexExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_official_documents_annex
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcOptionMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcOption">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="serial_number" jdbcType="VARCHAR" property="serialNumber" />
<result column="description" jdbcType="VARCHAR" property="description" />
<result column="correct" jdbcType="VARCHAR" property="correct" />
<result column="rank" jdbcType="INTEGER" property="rank" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
<result column="cc_subject_id" jdbcType="VARCHAR" property="ccSubjectId" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, serial_number, description, correct, rank, create_time, last_update_time, cc_subject_id
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcOptionExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_option
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_option
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_option
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcOptionExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_option
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcOption">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_option (id, serial_number, description,
correct, rank, create_time,
last_update_time, cc_subject_id)
values (#{id,jdbcType=VARCHAR}, #{serialNumber,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR},
#{correct,jdbcType=VARCHAR}, #{rank,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{lastUpdateTime,jdbcType=TIMESTAMP}, #{ccSubjectId,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcOption">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_option
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="serialNumber != null">
serial_number,
</if>
<if test="description != null">
description,
</if>
<if test="correct != null">
correct,
</if>
<if test="rank != null">
rank,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
<if test="ccSubjectId != null">
cc_subject_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="serialNumber != null">
#{serialNumber,jdbcType=VARCHAR},
</if>
<if test="description != null">
#{description,jdbcType=VARCHAR},
</if>
<if test="correct != null">
#{correct,jdbcType=VARCHAR},
</if>
<if test="rank != null">
#{rank,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="ccSubjectId != null">
#{ccSubjectId,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcOptionExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_option
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_option
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.serialNumber != null">
serial_number = #{record.serialNumber,jdbcType=VARCHAR},
</if>
<if test="record.description != null">
description = #{record.description,jdbcType=VARCHAR},
</if>
<if test="record.correct != null">
correct = #{record.correct,jdbcType=VARCHAR},
</if>
<if test="record.rank != null">
rank = #{record.rank,jdbcType=INTEGER},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.ccSubjectId != null">
cc_subject_id = #{record.ccSubjectId,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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_option
set id = #{record.id,jdbcType=VARCHAR},
serial_number = #{record.serialNumber,jdbcType=VARCHAR},
description = #{record.description,jdbcType=VARCHAR},
correct = #{record.correct,jdbcType=VARCHAR},
rank = #{record.rank,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
cc_subject_id = #{record.ccSubjectId,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcOption">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_option
<set>
<if test="serialNumber != null">
serial_number = #{serialNumber,jdbcType=VARCHAR},
</if>
<if test="description != null">
description = #{description,jdbcType=VARCHAR},
</if>
<if test="correct != null">
correct = #{correct,jdbcType=VARCHAR},
</if>
<if test="rank != null">
rank = #{rank,jdbcType=INTEGER},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="ccSubjectId != null">
cc_subject_id = #{ccSubjectId,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcOption">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_option
set serial_number = #{serialNumber,jdbcType=VARCHAR},
description = #{description,jdbcType=VARCHAR},
correct = #{correct,jdbcType=VARCHAR},
rank = #{rank,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
cc_subject_id = #{ccSubjectId,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcOptionExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_option
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcPaperTitleMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcPaperTitle">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="cc_subject_id" jdbcType="VARCHAR" property="ccSubjectId" />
<result column="cc_test_paper_id" jdbcType="VARCHAR" property="ccTestPaperId" />
<result column="fraction" jdbcType="INTEGER" property="fraction" />
<result column="rank" jdbcType="INTEGER" property="rank" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, cc_subject_id, cc_test_paper_id, fraction, rank, create_time, last_update_time
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPaperTitleExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_paper_title
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_paper_title
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_paper_title
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPaperTitleExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_paper_title
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPaperTitle">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_paper_title (id, cc_subject_id, cc_test_paper_id,
fraction, rank, create_time,
last_update_time)
values (#{id,jdbcType=VARCHAR}, #{ccSubjectId,jdbcType=VARCHAR}, #{ccTestPaperId,jdbcType=VARCHAR},
#{fraction,jdbcType=INTEGER}, #{rank,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{lastUpdateTime,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPaperTitle">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_paper_title
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="ccSubjectId != null">
cc_subject_id,
</if>
<if test="ccTestPaperId != null">
cc_test_paper_id,
</if>
<if test="fraction != null">
fraction,
</if>
<if test="rank != null">
rank,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="ccSubjectId != null">
#{ccSubjectId,jdbcType=VARCHAR},
</if>
<if test="ccTestPaperId != null">
#{ccTestPaperId,jdbcType=VARCHAR},
</if>
<if test="fraction != null">
#{fraction,jdbcType=INTEGER},
</if>
<if test="rank != null">
#{rank,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPaperTitleExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_paper_title
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_paper_title
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.ccSubjectId != null">
cc_subject_id = #{record.ccSubjectId,jdbcType=VARCHAR},
</if>
<if test="record.ccTestPaperId != null">
cc_test_paper_id = #{record.ccTestPaperId,jdbcType=VARCHAR},
</if>
<if test="record.fraction != null">
fraction = #{record.fraction,jdbcType=INTEGER},
</if>
<if test="record.rank != null">
rank = #{record.rank,jdbcType=INTEGER},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_paper_title
set id = #{record.id,jdbcType=VARCHAR},
cc_subject_id = #{record.ccSubjectId,jdbcType=VARCHAR},
cc_test_paper_id = #{record.ccTestPaperId,jdbcType=VARCHAR},
fraction = #{record.fraction,jdbcType=INTEGER},
rank = #{record.rank,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPaperTitle">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_paper_title
<set>
<if test="ccSubjectId != null">
cc_subject_id = #{ccSubjectId,jdbcType=VARCHAR},
</if>
<if test="ccTestPaperId != null">
cc_test_paper_id = #{ccTestPaperId,jdbcType=VARCHAR},
</if>
<if test="fraction != null">
fraction = #{fraction,jdbcType=INTEGER},
</if>
<if test="rank != null">
rank = #{rank,jdbcType=INTEGER},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPaperTitle">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_paper_title
set cc_subject_id = #{ccSubjectId,jdbcType=VARCHAR},
cc_test_paper_id = #{ccTestPaperId,jdbcType=VARCHAR},
fraction = #{fraction,jdbcType=INTEGER},
rank = #{rank,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPaperTitleExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_paper_title
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcPendingTaskMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcPendingTask">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="type" jdbcType="INTEGER" property="type" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
<result column="status" jdbcType="INTEGER" property="status" />
<result column="remarks" jdbcType="VARCHAR" property="remarks" />
<result column="pending_task_id" jdbcType="VARCHAR" property="pendingTaskId" />
<result column="approver" jdbcType="VARCHAR" property="approver" />
<result column="task_location" jdbcType="VARCHAR" property="taskLocation" />
<result column="task_time" jdbcType="TIMESTAMP" property="taskTime" />
<result column="completion_time" jdbcType="TIMESTAMP" property="completionTime" />
<result column="examination_approval_time" jdbcType="TIMESTAMP" property="examinationApprovalTime" />
<result column="examination_approval_opinion" jdbcType="VARCHAR" property="examinationApprovalOpinion" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, type, create_time, last_update_time, status, remarks, pending_task_id, approver,
task_location, task_time, completion_time, examination_approval_time, examination_approval_opinion
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPendingTaskExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_pending_task
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_pending_task
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_pending_task
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPendingTaskExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_pending_task
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPendingTask">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_pending_task (id, type, create_time,
last_update_time, status, remarks,
pending_task_id, approver, task_location,
task_time, completion_time, examination_approval_time,
examination_approval_opinion)
values (#{id,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{lastUpdateTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, #{remarks,jdbcType=VARCHAR},
#{pendingTaskId,jdbcType=VARCHAR}, #{approver,jdbcType=VARCHAR}, #{taskLocation,jdbcType=VARCHAR},
#{taskTime,jdbcType=TIMESTAMP}, #{completionTime,jdbcType=TIMESTAMP}, #{examinationApprovalTime,jdbcType=TIMESTAMP},
#{examinationApprovalOpinion,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPendingTask">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_pending_task
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="type != null">
type,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
<if test="status != null">
status,
</if>
<if test="remarks != null">
remarks,
</if>
<if test="pendingTaskId != null">
pending_task_id,
</if>
<if test="approver != null">
approver,
</if>
<if test="taskLocation != null">
task_location,
</if>
<if test="taskTime != null">
task_time,
</if>
<if test="completionTime != null">
completion_time,
</if>
<if test="examinationApprovalTime != null">
examination_approval_time,
</if>
<if test="examinationApprovalOpinion != null">
examination_approval_opinion,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="type != null">
#{type,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="status != null">
#{status,jdbcType=INTEGER},
</if>
<if test="remarks != null">
#{remarks,jdbcType=VARCHAR},
</if>
<if test="pendingTaskId != null">
#{pendingTaskId,jdbcType=VARCHAR},
</if>
<if test="approver != null">
#{approver,jdbcType=VARCHAR},
</if>
<if test="taskLocation != null">
#{taskLocation,jdbcType=VARCHAR},
</if>
<if test="taskTime != null">
#{taskTime,jdbcType=TIMESTAMP},
</if>
<if test="completionTime != null">
#{completionTime,jdbcType=TIMESTAMP},
</if>
<if test="examinationApprovalTime != null">
#{examinationApprovalTime,jdbcType=TIMESTAMP},
</if>
<if test="examinationApprovalOpinion != null">
#{examinationApprovalOpinion,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPendingTaskExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_pending_task
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_pending_task
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.type != null">
type = #{record.type,jdbcType=INTEGER},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.status != null">
status = #{record.status,jdbcType=INTEGER},
</if>
<if test="record.remarks != null">
remarks = #{record.remarks,jdbcType=VARCHAR},
</if>
<if test="record.pendingTaskId != null">
pending_task_id = #{record.pendingTaskId,jdbcType=VARCHAR},
</if>
<if test="record.approver != null">
approver = #{record.approver,jdbcType=VARCHAR},
</if>
<if test="record.taskLocation != null">
task_location = #{record.taskLocation,jdbcType=VARCHAR},
</if>
<if test="record.taskTime != null">
task_time = #{record.taskTime,jdbcType=TIMESTAMP},
</if>
<if test="record.completionTime != null">
completion_time = #{record.completionTime,jdbcType=TIMESTAMP},
</if>
<if test="record.examinationApprovalTime != null">
examination_approval_time = #{record.examinationApprovalTime,jdbcType=TIMESTAMP},
</if>
<if test="record.examinationApprovalOpinion != null">
examination_approval_opinion = #{record.examinationApprovalOpinion,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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_pending_task
set id = #{record.id,jdbcType=VARCHAR},
type = #{record.type,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
status = #{record.status,jdbcType=INTEGER},
remarks = #{record.remarks,jdbcType=VARCHAR},
pending_task_id = #{record.pendingTaskId,jdbcType=VARCHAR},
approver = #{record.approver,jdbcType=VARCHAR},
task_location = #{record.taskLocation,jdbcType=VARCHAR},
task_time = #{record.taskTime,jdbcType=TIMESTAMP},
completion_time = #{record.completionTime,jdbcType=TIMESTAMP},
examination_approval_time = #{record.examinationApprovalTime,jdbcType=TIMESTAMP},
examination_approval_opinion = #{record.examinationApprovalOpinion,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPendingTask">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_pending_task
<set>
<if test="type != null">
type = #{type,jdbcType=INTEGER},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="status != null">
status = #{status,jdbcType=INTEGER},
</if>
<if test="remarks != null">
remarks = #{remarks,jdbcType=VARCHAR},
</if>
<if test="pendingTaskId != null">
pending_task_id = #{pendingTaskId,jdbcType=VARCHAR},
</if>
<if test="approver != null">
approver = #{approver,jdbcType=VARCHAR},
</if>
<if test="taskLocation != null">
task_location = #{taskLocation,jdbcType=VARCHAR},
</if>
<if test="taskTime != null">
task_time = #{taskTime,jdbcType=TIMESTAMP},
</if>
<if test="completionTime != null">
completion_time = #{completionTime,jdbcType=TIMESTAMP},
</if>
<if test="examinationApprovalTime != null">
examination_approval_time = #{examinationApprovalTime,jdbcType=TIMESTAMP},
</if>
<if test="examinationApprovalOpinion != null">
examination_approval_opinion = #{examinationApprovalOpinion,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPendingTask">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_pending_task
set type = #{type,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
status = #{status,jdbcType=INTEGER},
remarks = #{remarks,jdbcType=VARCHAR},
pending_task_id = #{pendingTaskId,jdbcType=VARCHAR},
approver = #{approver,jdbcType=VARCHAR},
task_location = #{taskLocation,jdbcType=VARCHAR},
task_time = #{taskTime,jdbcType=TIMESTAMP},
completion_time = #{completionTime,jdbcType=TIMESTAMP},
examination_approval_time = #{examinationApprovalTime,jdbcType=TIMESTAMP},
examination_approval_opinion = #{examinationApprovalOpinion,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPendingTaskExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_pending_task
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcPlayRuleMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcPlayRule">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="content" jdbcType="VARCHAR" property="content" />
<result column="application_rules" jdbcType="VARCHAR" property="applicationRules" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, name, content, application_rules, create_time, last_update_time
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPlayRuleExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_play_rule
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_play_rule
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_play_rule
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPlayRuleExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_play_rule
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPlayRule">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_play_rule (id, name, content,
application_rules, create_time, last_update_time
)
values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{content,jdbcType=VARCHAR},
#{applicationRules,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{lastUpdateTime,jdbcType=TIMESTAMP}
)
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPlayRule">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_play_rule
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="name != null">
name,
</if>
<if test="content != null">
content,
</if>
<if test="applicationRules != null">
application_rules,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="content != null">
#{content,jdbcType=VARCHAR},
</if>
<if test="applicationRules != null">
#{applicationRules,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPlayRuleExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_play_rule
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_play_rule
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.content != null">
content = #{record.content,jdbcType=VARCHAR},
</if>
<if test="record.applicationRules != null">
application_rules = #{record.applicationRules,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_play_rule
set id = #{record.id,jdbcType=VARCHAR},
name = #{record.name,jdbcType=VARCHAR},
content = #{record.content,jdbcType=VARCHAR},
application_rules = #{record.applicationRules,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPlayRule">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_play_rule
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="content != null">
content = #{content,jdbcType=VARCHAR},
</if>
<if test="applicationRules != null">
application_rules = #{applicationRules,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPlayRule">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_play_rule
set name = #{name,jdbcType=VARCHAR},
content = #{content,jdbcType=VARCHAR},
application_rules = #{applicationRules,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPlayRuleExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_play_rule
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcPlaybackSequenceMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcPlaybackSequence">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="cc_play_rule_id" jdbcType="VARCHAR" property="ccPlayRuleId" />
<result column="cc_resources_id" jdbcType="VARCHAR" property="ccResourcesId" />
<result column="rank" jdbcType="INTEGER" property="rank" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, cc_play_rule_id, cc_resources_id, rank, create_time, last_update_time
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPlaybackSequenceExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_playback_sequence
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_playback_sequence
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_playback_sequence
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPlaybackSequenceExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_playback_sequence
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPlaybackSequence">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_playback_sequence (id, cc_play_rule_id, cc_resources_id,
rank, create_time, last_update_time
)
values (#{id,jdbcType=VARCHAR}, #{ccPlayRuleId,jdbcType=VARCHAR}, #{ccResourcesId,jdbcType=VARCHAR},
#{rank,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{lastUpdateTime,jdbcType=TIMESTAMP}
)
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPlaybackSequence">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_playback_sequence
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="ccPlayRuleId != null">
cc_play_rule_id,
</if>
<if test="ccResourcesId != null">
cc_resources_id,
</if>
<if test="rank != null">
rank,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="ccPlayRuleId != null">
#{ccPlayRuleId,jdbcType=VARCHAR},
</if>
<if test="ccResourcesId != null">
#{ccResourcesId,jdbcType=VARCHAR},
</if>
<if test="rank != null">
#{rank,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPlaybackSequenceExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_playback_sequence
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_playback_sequence
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.ccPlayRuleId != null">
cc_play_rule_id = #{record.ccPlayRuleId,jdbcType=VARCHAR},
</if>
<if test="record.ccResourcesId != null">
cc_resources_id = #{record.ccResourcesId,jdbcType=VARCHAR},
</if>
<if test="record.rank != null">
rank = #{record.rank,jdbcType=INTEGER},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_playback_sequence
set id = #{record.id,jdbcType=VARCHAR},
cc_play_rule_id = #{record.ccPlayRuleId,jdbcType=VARCHAR},
cc_resources_id = #{record.ccResourcesId,jdbcType=VARCHAR},
rank = #{record.rank,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPlaybackSequence">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_playback_sequence
<set>
<if test="ccPlayRuleId != null">
cc_play_rule_id = #{ccPlayRuleId,jdbcType=VARCHAR},
</if>
<if test="ccResourcesId != null">
cc_resources_id = #{ccResourcesId,jdbcType=VARCHAR},
</if>
<if test="rank != null">
rank = #{rank,jdbcType=INTEGER},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPlaybackSequence">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_playback_sequence
set cc_play_rule_id = #{ccPlayRuleId,jdbcType=VARCHAR},
cc_resources_id = #{ccResourcesId,jdbcType=VARCHAR},
rank = #{rank,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPlaybackSequenceExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_playback_sequence
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcPraiseMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcPraise">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="cc_message_task_activity_id" jdbcType="VARCHAR" property="ccMessageTaskActivityId" />
<result column="user_id" jdbcType="VARCHAR" property="userId" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, cc_message_task_activity_id, user_id, create_time, last_update_time
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPraiseExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_praise
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_praise
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_praise
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPraiseExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_praise
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPraise">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_praise (id, cc_message_task_activity_id, user_id,
create_time, last_update_time)
values (#{id,jdbcType=VARCHAR}, #{ccMessageTaskActivityId,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}, #{lastUpdateTime,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPraise">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_praise
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="ccMessageTaskActivityId != null">
cc_message_task_activity_id,
</if>
<if test="userId != null">
user_id,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="ccMessageTaskActivityId != null">
#{ccMessageTaskActivityId,jdbcType=VARCHAR},
</if>
<if test="userId != null">
#{userId,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPraiseExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_praise
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_praise
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.ccMessageTaskActivityId != null">
cc_message_task_activity_id = #{record.ccMessageTaskActivityId,jdbcType=VARCHAR},
</if>
<if test="record.userId != null">
user_id = #{record.userId,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_praise
set id = #{record.id,jdbcType=VARCHAR},
cc_message_task_activity_id = #{record.ccMessageTaskActivityId,jdbcType=VARCHAR},
user_id = #{record.userId,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPraise">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_praise
<set>
<if test="ccMessageTaskActivityId != null">
cc_message_task_activity_id = #{ccMessageTaskActivityId,jdbcType=VARCHAR},
</if>
<if test="userId != null">
user_id = #{userId,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPraise">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_praise
set cc_message_task_activity_id = #{ccMessageTaskActivityId,jdbcType=VARCHAR},
user_id = #{userId,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPraiseExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_praise
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcProcuratorateMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcProcuratorate">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="icon_tile" jdbcType="VARCHAR" property="iconTile" />
<result column="official_website" jdbcType="VARCHAR" property="officialWebsite" />
<result column="parent_id" jdbcType="VARCHAR" property="parentId" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
<result column="Introduction" jdbcType="VARCHAR" property="introduction" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, name, icon_tile, official_website, parent_id, create_time, last_update_time,
Introduction
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcProcuratorateExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_procuratorate
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_procuratorate
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_procuratorate
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcProcuratorateExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_procuratorate
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcProcuratorate">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_procuratorate (id, name, icon_tile,
official_website, parent_id, create_time,
last_update_time, Introduction)
values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{iconTile,jdbcType=VARCHAR},
#{officialWebsite,jdbcType=VARCHAR}, #{parentId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{lastUpdateTime,jdbcType=TIMESTAMP}, #{introduction,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcProcuratorate">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_procuratorate
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="name != null">
name,
</if>
<if test="iconTile != null">
icon_tile,
</if>
<if test="officialWebsite != null">
official_website,
</if>
<if test="parentId != null">
parent_id,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
<if test="introduction != null">
Introduction,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="iconTile != null">
#{iconTile,jdbcType=VARCHAR},
</if>
<if test="officialWebsite != null">
#{officialWebsite,jdbcType=VARCHAR},
</if>
<if test="parentId != null">
#{parentId,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="introduction != null">
#{introduction,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcProcuratorateExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_procuratorate
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_procuratorate
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.iconTile != null">
icon_tile = #{record.iconTile,jdbcType=VARCHAR},
</if>
<if test="record.officialWebsite != null">
official_website = #{record.officialWebsite,jdbcType=VARCHAR},
</if>
<if test="record.parentId != null">
parent_id = #{record.parentId,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.introduction != null">
Introduction = #{record.introduction,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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_procuratorate
set id = #{record.id,jdbcType=VARCHAR},
name = #{record.name,jdbcType=VARCHAR},
icon_tile = #{record.iconTile,jdbcType=VARCHAR},
official_website = #{record.officialWebsite,jdbcType=VARCHAR},
parent_id = #{record.parentId,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
Introduction = #{record.introduction,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcProcuratorate">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_procuratorate
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="iconTile != null">
icon_tile = #{iconTile,jdbcType=VARCHAR},
</if>
<if test="officialWebsite != null">
official_website = #{officialWebsite,jdbcType=VARCHAR},
</if>
<if test="parentId != null">
parent_id = #{parentId,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="introduction != null">
Introduction = #{introduction,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcProcuratorate">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_procuratorate
set name = #{name,jdbcType=VARCHAR},
icon_tile = #{iconTile,jdbcType=VARCHAR},
official_website = #{officialWebsite,jdbcType=VARCHAR},
parent_id = #{parentId,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
Introduction = #{introduction,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcProcuratorateExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_procuratorate
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcPublisherMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcPublisher">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:15 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
<result column="cc_notifications_id" jdbcType="VARCHAR" property="ccNotificationsId" />
<result column="see" jdbcType="VARCHAR" property="see" />
<result column="sign" jdbcType="VARCHAR" property="sign" />
<result column="sign_time" jdbcType="TIMESTAMP" property="signTime" />
<result column="see_time" jdbcType="TIMESTAMP" property="seeTime" />
</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 Wed Mar 21 10:27:15 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:15 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:15 CST 2018.
-->
id, create_time, last_update_time, cc_notifications_id, see, sign, sign_time, see_time
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPublisherExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:15 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_publisher
<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 Wed Mar 21 10:27:15 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_publisher
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 Wed Mar 21 10:27:15 CST 2018.
-->
delete from cc_publisher
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPublisherExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:15 CST 2018.
-->
delete from cc_publisher
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPublisher">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:15 CST 2018.
-->
insert into cc_publisher (id, create_time, last_update_time,
cc_notifications_id, see, sign,
sign_time, see_time)
values (#{id,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{lastUpdateTime,jdbcType=TIMESTAMP},
#{ccNotificationsId,jdbcType=VARCHAR}, #{see,jdbcType=VARCHAR}, #{sign,jdbcType=VARCHAR},
#{signTime,jdbcType=TIMESTAMP}, #{seeTime,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPublisher">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:15 CST 2018.
-->
insert into cc_publisher
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
<if test="ccNotificationsId != null">
cc_notifications_id,
</if>
<if test="see != null">
see,
</if>
<if test="sign != null">
sign,
</if>
<if test="signTime != null">
sign_time,
</if>
<if test="seeTime != null">
see_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="ccNotificationsId != null">
#{ccNotificationsId,jdbcType=VARCHAR},
</if>
<if test="see != null">
#{see,jdbcType=VARCHAR},
</if>
<if test="sign != null">
#{sign,jdbcType=VARCHAR},
</if>
<if test="signTime != null">
#{signTime,jdbcType=TIMESTAMP},
</if>
<if test="seeTime != null">
#{seeTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPublisherExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:15 CST 2018.
-->
select count(*) from cc_publisher
<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 Wed Mar 21 10:27:15 CST 2018.
-->
update cc_publisher
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.ccNotificationsId != null">
cc_notifications_id = #{record.ccNotificationsId,jdbcType=VARCHAR},
</if>
<if test="record.see != null">
see = #{record.see,jdbcType=VARCHAR},
</if>
<if test="record.sign != null">
sign = #{record.sign,jdbcType=VARCHAR},
</if>
<if test="record.signTime != null">
sign_time = #{record.signTime,jdbcType=TIMESTAMP},
</if>
<if test="record.seeTime != null">
see_time = #{record.seeTime,jdbcType=TIMESTAMP},
</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 Wed Mar 21 10:27:15 CST 2018.
-->
update cc_publisher
set id = #{record.id,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
cc_notifications_id = #{record.ccNotificationsId,jdbcType=VARCHAR},
see = #{record.see,jdbcType=VARCHAR},
sign = #{record.sign,jdbcType=VARCHAR},
sign_time = #{record.signTime,jdbcType=TIMESTAMP},
see_time = #{record.seeTime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPublisher">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:15 CST 2018.
-->
update cc_publisher
<set>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="ccNotificationsId != null">
cc_notifications_id = #{ccNotificationsId,jdbcType=VARCHAR},
</if>
<if test="see != null">
see = #{see,jdbcType=VARCHAR},
</if>
<if test="sign != null">
sign = #{sign,jdbcType=VARCHAR},
</if>
<if test="signTime != null">
sign_time = #{signTime,jdbcType=TIMESTAMP},
</if>
<if test="seeTime != null">
see_time = #{seeTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPublisher">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:15 CST 2018.
-->
update cc_publisher
set create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
cc_notifications_id = #{ccNotificationsId,jdbcType=VARCHAR},
see = #{see,jdbcType=VARCHAR},
sign = #{sign,jdbcType=VARCHAR},
sign_time = #{signTime,jdbcType=TIMESTAMP},
see_time = #{seeTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcPublisherExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:15 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_publisher
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcRecordAnswerMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcRecordAnswer">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="cc_subject_id" jdbcType="VARCHAR" property="ccSubjectId" />
<result column="cc_option_id" jdbcType="VARCHAR" property="ccOptionId" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
<result column="cc_user_test_record_id" jdbcType="VARCHAR" property="ccUserTestRecordId" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, cc_subject_id, cc_option_id, create_time, last_update_time, cc_user_test_record_id
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcRecordAnswerExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_record_answer
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_record_answer
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_record_answer
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcRecordAnswerExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_record_answer
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcRecordAnswer">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_record_answer (id, cc_subject_id, cc_option_id,
create_time, last_update_time, cc_user_test_record_id
)
values (#{id,jdbcType=VARCHAR}, #{ccSubjectId,jdbcType=VARCHAR}, #{ccOptionId,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}, #{lastUpdateTime,jdbcType=TIMESTAMP}, #{ccUserTestRecordId,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcRecordAnswer">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_record_answer
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="ccSubjectId != null">
cc_subject_id,
</if>
<if test="ccOptionId != null">
cc_option_id,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
<if test="ccUserTestRecordId != null">
cc_user_test_record_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="ccSubjectId != null">
#{ccSubjectId,jdbcType=VARCHAR},
</if>
<if test="ccOptionId != null">
#{ccOptionId,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="ccUserTestRecordId != null">
#{ccUserTestRecordId,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcRecordAnswerExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_record_answer
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_record_answer
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.ccSubjectId != null">
cc_subject_id = #{record.ccSubjectId,jdbcType=VARCHAR},
</if>
<if test="record.ccOptionId != null">
cc_option_id = #{record.ccOptionId,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.ccUserTestRecordId != null">
cc_user_test_record_id = #{record.ccUserTestRecordId,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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_record_answer
set id = #{record.id,jdbcType=VARCHAR},
cc_subject_id = #{record.ccSubjectId,jdbcType=VARCHAR},
cc_option_id = #{record.ccOptionId,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
cc_user_test_record_id = #{record.ccUserTestRecordId,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcRecordAnswer">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_record_answer
<set>
<if test="ccSubjectId != null">
cc_subject_id = #{ccSubjectId,jdbcType=VARCHAR},
</if>
<if test="ccOptionId != null">
cc_option_id = #{ccOptionId,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="ccUserTestRecordId != null">
cc_user_test_record_id = #{ccUserTestRecordId,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcRecordAnswer">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_record_answer
set cc_subject_id = #{ccSubjectId,jdbcType=VARCHAR},
cc_option_id = #{ccOptionId,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
cc_user_test_record_id = #{ccUserTestRecordId,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcRecordAnswerExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_record_answer
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcReleaseRecordMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcReleaseRecord">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="status" jdbcType="VARCHAR" property="status" />
<result column="title" jdbcType="VARCHAR" property="title" />
<result column="small_title" jdbcType="VARCHAR" property="smallTitle" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, status, title, small_title, create_time, last_update_time
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcReleaseRecordExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_release_record
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_release_record
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_release_record
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcReleaseRecordExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_release_record
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcReleaseRecord">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_release_record (id, status, title,
small_title, create_time, last_update_time
)
values (#{id,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR},
#{smallTitle,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{lastUpdateTime,jdbcType=TIMESTAMP}
)
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcReleaseRecord">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_release_record
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="status != null">
status,
</if>
<if test="title != null">
title,
</if>
<if test="smallTitle != null">
small_title,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="status != null">
#{status,jdbcType=VARCHAR},
</if>
<if test="title != null">
#{title,jdbcType=VARCHAR},
</if>
<if test="smallTitle != null">
#{smallTitle,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcReleaseRecordExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_release_record
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_release_record
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.status != null">
status = #{record.status,jdbcType=VARCHAR},
</if>
<if test="record.title != null">
title = #{record.title,jdbcType=VARCHAR},
</if>
<if test="record.smallTitle != null">
small_title = #{record.smallTitle,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_release_record
set id = #{record.id,jdbcType=VARCHAR},
status = #{record.status,jdbcType=VARCHAR},
title = #{record.title,jdbcType=VARCHAR},
small_title = #{record.smallTitle,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcReleaseRecord">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_release_record
<set>
<if test="status != null">
status = #{status,jdbcType=VARCHAR},
</if>
<if test="title != null">
title = #{title,jdbcType=VARCHAR},
</if>
<if test="smallTitle != null">
small_title = #{smallTitle,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcReleaseRecord">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_release_record
set status = #{status,jdbcType=VARCHAR},
title = #{title,jdbcType=VARCHAR},
small_title = #{smallTitle,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcReleaseRecordExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_release_record
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcResourceMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcResource">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="lnformation_department" jdbcType="VARCHAR" property="lnformationDepartment" />
<result column="upload_time" jdbcType="TIMESTAMP" property="uploadTime" />
<result column="upload_peple" jdbcType="VARCHAR" property="uploadPeple" />
<result column="thirty_two_playback" jdbcType="VARCHAR" property="thirtyTwoPlayback" />
<result column="fifty_five_playback" jdbcType="VARCHAR" property="fiftyFivePlayback" />
<result column="file_id" jdbcType="VARCHAR" property="fileId" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
<result column="rank" jdbcType="INTEGER" property="rank" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, name, lnformation_department, upload_time, upload_peple, thirty_two_playback,
fifty_five_playback, file_id, create_time, last_update_time, rank
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcResourceExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_resource
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_resource
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_resource
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcResourceExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_resource
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcResource">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_resource (id, name, lnformation_department,
upload_time, upload_peple, thirty_two_playback,
fifty_five_playback, file_id, create_time,
last_update_time, rank)
values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{lnformationDepartment,jdbcType=VARCHAR},
#{uploadTime,jdbcType=TIMESTAMP}, #{uploadPeple,jdbcType=VARCHAR}, #{thirtyTwoPlayback,jdbcType=VARCHAR},
#{fiftyFivePlayback,jdbcType=VARCHAR}, #{fileId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{lastUpdateTime,jdbcType=TIMESTAMP}, #{rank,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcResource">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_resource
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="name != null">
name,
</if>
<if test="lnformationDepartment != null">
lnformation_department,
</if>
<if test="uploadTime != null">
upload_time,
</if>
<if test="uploadPeple != null">
upload_peple,
</if>
<if test="thirtyTwoPlayback != null">
thirty_two_playback,
</if>
<if test="fiftyFivePlayback != null">
fifty_five_playback,
</if>
<if test="fileId != null">
file_id,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
<if test="rank != null">
rank,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="lnformationDepartment != null">
#{lnformationDepartment,jdbcType=VARCHAR},
</if>
<if test="uploadTime != null">
#{uploadTime,jdbcType=TIMESTAMP},
</if>
<if test="uploadPeple != null">
#{uploadPeple,jdbcType=VARCHAR},
</if>
<if test="thirtyTwoPlayback != null">
#{thirtyTwoPlayback,jdbcType=VARCHAR},
</if>
<if test="fiftyFivePlayback != null">
#{fiftyFivePlayback,jdbcType=VARCHAR},
</if>
<if test="fileId != null">
#{fileId,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="rank != null">
#{rank,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcResourceExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_resource
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_resource
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.lnformationDepartment != null">
lnformation_department = #{record.lnformationDepartment,jdbcType=VARCHAR},
</if>
<if test="record.uploadTime != null">
upload_time = #{record.uploadTime,jdbcType=TIMESTAMP},
</if>
<if test="record.uploadPeple != null">
upload_peple = #{record.uploadPeple,jdbcType=VARCHAR},
</if>
<if test="record.thirtyTwoPlayback != null">
thirty_two_playback = #{record.thirtyTwoPlayback,jdbcType=VARCHAR},
</if>
<if test="record.fiftyFivePlayback != null">
fifty_five_playback = #{record.fiftyFivePlayback,jdbcType=VARCHAR},
</if>
<if test="record.fileId != null">
file_id = #{record.fileId,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.rank != null">
rank = #{record.rank,jdbcType=INTEGER},
</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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_resource
set id = #{record.id,jdbcType=VARCHAR},
name = #{record.name,jdbcType=VARCHAR},
lnformation_department = #{record.lnformationDepartment,jdbcType=VARCHAR},
upload_time = #{record.uploadTime,jdbcType=TIMESTAMP},
upload_peple = #{record.uploadPeple,jdbcType=VARCHAR},
thirty_two_playback = #{record.thirtyTwoPlayback,jdbcType=VARCHAR},
fifty_five_playback = #{record.fiftyFivePlayback,jdbcType=VARCHAR},
file_id = #{record.fileId,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
rank = #{record.rank,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcResource">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_resource
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="lnformationDepartment != null">
lnformation_department = #{lnformationDepartment,jdbcType=VARCHAR},
</if>
<if test="uploadTime != null">
upload_time = #{uploadTime,jdbcType=TIMESTAMP},
</if>
<if test="uploadPeple != null">
upload_peple = #{uploadPeple,jdbcType=VARCHAR},
</if>
<if test="thirtyTwoPlayback != null">
thirty_two_playback = #{thirtyTwoPlayback,jdbcType=VARCHAR},
</if>
<if test="fiftyFivePlayback != null">
fifty_five_playback = #{fiftyFivePlayback,jdbcType=VARCHAR},
</if>
<if test="fileId != null">
file_id = #{fileId,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="rank != null">
rank = #{rank,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcResource">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_resource
set name = #{name,jdbcType=VARCHAR},
lnformation_department = #{lnformationDepartment,jdbcType=VARCHAR},
upload_time = #{uploadTime,jdbcType=TIMESTAMP},
upload_peple = #{uploadPeple,jdbcType=VARCHAR},
thirty_two_playback = #{thirtyTwoPlayback,jdbcType=VARCHAR},
fifty_five_playback = #{fiftyFivePlayback,jdbcType=VARCHAR},
file_id = #{fileId,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
rank = #{rank,jdbcType=INTEGER}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcResourceExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_resource
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcRuleMaintenanceMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcRuleMaintenance">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="number" jdbcType="VARCHAR" property="number" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="creator_id" jdbcType="VARCHAR" property="creatorId" />
<result column="is_used" jdbcType="INTEGER" property="isUsed" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
<result column="department_id" jdbcType="VARCHAR" property="departmentId" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, number, name, creator_id, is_used, create_time, last_update_time, department_id
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcRuleMaintenanceExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_rule_maintenance
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_rule_maintenance
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_rule_maintenance
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcRuleMaintenanceExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_rule_maintenance
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcRuleMaintenance">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_rule_maintenance (id, number, name,
creator_id, is_used, create_time,
last_update_time, department_id)
values (#{id,jdbcType=VARCHAR}, #{number,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
#{creatorId,jdbcType=VARCHAR}, #{isUsed,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{lastUpdateTime,jdbcType=TIMESTAMP}, #{departmentId,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcRuleMaintenance">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_rule_maintenance
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="number != null">
number,
</if>
<if test="name != null">
name,
</if>
<if test="creatorId != null">
creator_id,
</if>
<if test="isUsed != null">
is_used,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
<if test="departmentId != null">
department_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="number != null">
#{number,jdbcType=VARCHAR},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="creatorId != null">
#{creatorId,jdbcType=VARCHAR},
</if>
<if test="isUsed != null">
#{isUsed,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="departmentId != null">
#{departmentId,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcRuleMaintenanceExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_rule_maintenance
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_rule_maintenance
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.number != null">
number = #{record.number,jdbcType=VARCHAR},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.creatorId != null">
creator_id = #{record.creatorId,jdbcType=VARCHAR},
</if>
<if test="record.isUsed != null">
is_used = #{record.isUsed,jdbcType=INTEGER},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.departmentId != null">
department_id = #{record.departmentId,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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_rule_maintenance
set id = #{record.id,jdbcType=VARCHAR},
number = #{record.number,jdbcType=VARCHAR},
name = #{record.name,jdbcType=VARCHAR},
creator_id = #{record.creatorId,jdbcType=VARCHAR},
is_used = #{record.isUsed,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
department_id = #{record.departmentId,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcRuleMaintenance">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_rule_maintenance
<set>
<if test="number != null">
number = #{number,jdbcType=VARCHAR},
</if>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="creatorId != null">
creator_id = #{creatorId,jdbcType=VARCHAR},
</if>
<if test="isUsed != null">
is_used = #{isUsed,jdbcType=INTEGER},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="departmentId != null">
department_id = #{departmentId,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcRuleMaintenance">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_rule_maintenance
set number = #{number,jdbcType=VARCHAR},
name = #{name,jdbcType=VARCHAR},
creator_id = #{creatorId,jdbcType=VARCHAR},
is_used = #{isUsed,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
department_id = #{departmentId,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcRuleMaintenanceExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_rule_maintenance
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcRuleTemplateMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcRuleTemplate">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="cc_rule_maintenance_id" jdbcType="VARCHAR" property="ccRuleMaintenanceId" />
<result column="template_id" jdbcType="VARCHAR" property="templateId" />
<result column="number" jdbcType="INTEGER" property="number" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
<result column="rank" jdbcType="INTEGER" property="rank" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, cc_rule_maintenance_id, template_id, number, create_time, last_update_time, rank
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcRuleTemplateExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_rule_template
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_rule_template
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_rule_template
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcRuleTemplateExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_rule_template
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcRuleTemplate">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_rule_template (id, cc_rule_maintenance_id, template_id,
number, create_time, last_update_time,
rank)
values (#{id,jdbcType=VARCHAR}, #{ccRuleMaintenanceId,jdbcType=VARCHAR}, #{templateId,jdbcType=VARCHAR},
#{number,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{lastUpdateTime,jdbcType=TIMESTAMP},
#{rank,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcRuleTemplate">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_rule_template
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="ccRuleMaintenanceId != null">
cc_rule_maintenance_id,
</if>
<if test="templateId != null">
template_id,
</if>
<if test="number != null">
number,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
<if test="rank != null">
rank,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="ccRuleMaintenanceId != null">
#{ccRuleMaintenanceId,jdbcType=VARCHAR},
</if>
<if test="templateId != null">
#{templateId,jdbcType=VARCHAR},
</if>
<if test="number != null">
#{number,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="rank != null">
#{rank,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcRuleTemplateExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_rule_template
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_rule_template
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.ccRuleMaintenanceId != null">
cc_rule_maintenance_id = #{record.ccRuleMaintenanceId,jdbcType=VARCHAR},
</if>
<if test="record.templateId != null">
template_id = #{record.templateId,jdbcType=VARCHAR},
</if>
<if test="record.number != null">
number = #{record.number,jdbcType=INTEGER},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.rank != null">
rank = #{record.rank,jdbcType=INTEGER},
</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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_rule_template
set id = #{record.id,jdbcType=VARCHAR},
cc_rule_maintenance_id = #{record.ccRuleMaintenanceId,jdbcType=VARCHAR},
template_id = #{record.templateId,jdbcType=VARCHAR},
number = #{record.number,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
rank = #{record.rank,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcRuleTemplate">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_rule_template
<set>
<if test="ccRuleMaintenanceId != null">
cc_rule_maintenance_id = #{ccRuleMaintenanceId,jdbcType=VARCHAR},
</if>
<if test="templateId != null">
template_id = #{templateId,jdbcType=VARCHAR},
</if>
<if test="number != null">
number = #{number,jdbcType=INTEGER},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="rank != null">
rank = #{rank,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcRuleTemplate">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_rule_template
set cc_rule_maintenance_id = #{ccRuleMaintenanceId,jdbcType=VARCHAR},
template_id = #{templateId,jdbcType=VARCHAR},
number = #{number,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
rank = #{rank,jdbcType=INTEGER}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcRuleTemplateExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_rule_template
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcSecondaryMenuDictionaryMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcSecondaryMenuDictionary">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="lst_update_time" jdbcType="TIMESTAMP" property="lstUpdateTime" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, name, create_time, lst_update_time
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcSecondaryMenuDictionaryExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_secondary_menu_dictionary
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_secondary_menu_dictionary
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_secondary_menu_dictionary
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcSecondaryMenuDictionaryExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_secondary_menu_dictionary
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcSecondaryMenuDictionary">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_secondary_menu_dictionary (id, name, create_time,
lst_update_time)
values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{lstUpdateTime,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcSecondaryMenuDictionary">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_secondary_menu_dictionary
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="name != null">
name,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="lstUpdateTime != null">
lst_update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lstUpdateTime != null">
#{lstUpdateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcSecondaryMenuDictionaryExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_secondary_menu_dictionary
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_secondary_menu_dictionary
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lstUpdateTime != null">
lst_update_time = #{record.lstUpdateTime,jdbcType=TIMESTAMP},
</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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_secondary_menu_dictionary
set id = #{record.id,jdbcType=VARCHAR},
name = #{record.name,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
lst_update_time = #{record.lstUpdateTime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcSecondaryMenuDictionary">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_secondary_menu_dictionary
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lstUpdateTime != null">
lst_update_time = #{lstUpdateTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcSecondaryMenuDictionary">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_secondary_menu_dictionary
set name = #{name,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
lst_update_time = #{lstUpdateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcSecondaryMenuDictionaryExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_secondary_menu_dictionary
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcSharingRecordMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcSharingRecord">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="sharing_peple" jdbcType="VARCHAR" property="sharingPeple" />
<result column="cover_sharing_peple" jdbcType="VARCHAR" property="coverSharingPeple" />
<result column="type" jdbcType="INTEGER" property="type" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, sharing_peple, cover_sharing_peple, type, create_time, last_update_time, remark
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcSharingRecordExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_sharing_record
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_sharing_record
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_sharing_record
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcSharingRecordExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_sharing_record
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcSharingRecord">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_sharing_record (id, sharing_peple, cover_sharing_peple,
type, create_time, last_update_time,
remark)
values (#{id,jdbcType=VARCHAR}, #{sharingPeple,jdbcType=VARCHAR}, #{coverSharingPeple,jdbcType=VARCHAR},
#{type,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{lastUpdateTime,jdbcType=TIMESTAMP},
#{remark,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcSharingRecord">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_sharing_record
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="sharingPeple != null">
sharing_peple,
</if>
<if test="coverSharingPeple != null">
cover_sharing_peple,
</if>
<if test="type != null">
type,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
<if test="remark != null">
remark,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="sharingPeple != null">
#{sharingPeple,jdbcType=VARCHAR},
</if>
<if test="coverSharingPeple != null">
#{coverSharingPeple,jdbcType=VARCHAR},
</if>
<if test="type != null">
#{type,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="remark != null">
#{remark,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcSharingRecordExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_sharing_record
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_sharing_record
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.sharingPeple != null">
sharing_peple = #{record.sharingPeple,jdbcType=VARCHAR},
</if>
<if test="record.coverSharingPeple != null">
cover_sharing_peple = #{record.coverSharingPeple,jdbcType=VARCHAR},
</if>
<if test="record.type != null">
type = #{record.type,jdbcType=INTEGER},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.remark != null">
remark = #{record.remark,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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_sharing_record
set id = #{record.id,jdbcType=VARCHAR},
sharing_peple = #{record.sharingPeple,jdbcType=VARCHAR},
cover_sharing_peple = #{record.coverSharingPeple,jdbcType=VARCHAR},
type = #{record.type,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
remark = #{record.remark,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcSharingRecord">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_sharing_record
<set>
<if test="sharingPeple != null">
sharing_peple = #{sharingPeple,jdbcType=VARCHAR},
</if>
<if test="coverSharingPeple != null">
cover_sharing_peple = #{coverSharingPeple,jdbcType=VARCHAR},
</if>
<if test="type != null">
type = #{type,jdbcType=INTEGER},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="remark != null">
remark = #{remark,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcSharingRecord">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_sharing_record
set sharing_peple = #{sharingPeple,jdbcType=VARCHAR},
cover_sharing_peple = #{coverSharingPeple,jdbcType=VARCHAR},
type = #{type,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
remark = #{remark,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcSharingRecordExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_sharing_record
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcShiftMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcShift">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="applicant_id" jdbcType="VARCHAR" property="applicantId" />
<result column="transferred_class_id" jdbcType="VARCHAR" property="transferredClassId" />
<result column="applicant_duty_id" jdbcType="VARCHAR" property="applicantDutyId" />
<result column="transferred_class_duty_id" jdbcType="VARCHAR" property="transferredClassDutyId" />
<result column="status" jdbcType="INTEGER" property="status" />
<result column="reason" jdbcType="VARCHAR" property="reason" />
<result column="approver" jdbcType="VARCHAR" property="approver" />
<result column="application_time" jdbcType="TIMESTAMP" property="applicationTime" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, applicant_id, transferred_class_id, applicant_duty_id, transferred_class_duty_id,
status, reason, approver, application_time, create_time, last_update_time
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcShiftExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_shift
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_shift
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_shift
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcShiftExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_shift
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcShift">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_shift (id, applicant_id, transferred_class_id,
applicant_duty_id, transferred_class_duty_id,
status, reason, approver,
application_time, create_time, last_update_time
)
values (#{id,jdbcType=VARCHAR}, #{applicantId,jdbcType=VARCHAR}, #{transferredClassId,jdbcType=VARCHAR},
#{applicantDutyId,jdbcType=VARCHAR}, #{transferredClassDutyId,jdbcType=VARCHAR},
#{status,jdbcType=INTEGER}, #{reason,jdbcType=VARCHAR}, #{approver,jdbcType=VARCHAR},
#{applicationTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP}, #{lastUpdateTime,jdbcType=TIMESTAMP}
)
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcShift">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_shift
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="applicantId != null">
applicant_id,
</if>
<if test="transferredClassId != null">
transferred_class_id,
</if>
<if test="applicantDutyId != null">
applicant_duty_id,
</if>
<if test="transferredClassDutyId != null">
transferred_class_duty_id,
</if>
<if test="status != null">
status,
</if>
<if test="reason != null">
reason,
</if>
<if test="approver != null">
approver,
</if>
<if test="applicationTime != null">
application_time,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="applicantId != null">
#{applicantId,jdbcType=VARCHAR},
</if>
<if test="transferredClassId != null">
#{transferredClassId,jdbcType=VARCHAR},
</if>
<if test="applicantDutyId != null">
#{applicantDutyId,jdbcType=VARCHAR},
</if>
<if test="transferredClassDutyId != null">
#{transferredClassDutyId,jdbcType=VARCHAR},
</if>
<if test="status != null">
#{status,jdbcType=INTEGER},
</if>
<if test="reason != null">
#{reason,jdbcType=VARCHAR},
</if>
<if test="approver != null">
#{approver,jdbcType=VARCHAR},
</if>
<if test="applicationTime != null">
#{applicationTime,jdbcType=TIMESTAMP},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcShiftExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_shift
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_shift
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.applicantId != null">
applicant_id = #{record.applicantId,jdbcType=VARCHAR},
</if>
<if test="record.transferredClassId != null">
transferred_class_id = #{record.transferredClassId,jdbcType=VARCHAR},
</if>
<if test="record.applicantDutyId != null">
applicant_duty_id = #{record.applicantDutyId,jdbcType=VARCHAR},
</if>
<if test="record.transferredClassDutyId != null">
transferred_class_duty_id = #{record.transferredClassDutyId,jdbcType=VARCHAR},
</if>
<if test="record.status != null">
status = #{record.status,jdbcType=INTEGER},
</if>
<if test="record.reason != null">
reason = #{record.reason,jdbcType=VARCHAR},
</if>
<if test="record.approver != null">
approver = #{record.approver,jdbcType=VARCHAR},
</if>
<if test="record.applicationTime != null">
application_time = #{record.applicationTime,jdbcType=TIMESTAMP},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_shift
set id = #{record.id,jdbcType=VARCHAR},
applicant_id = #{record.applicantId,jdbcType=VARCHAR},
transferred_class_id = #{record.transferredClassId,jdbcType=VARCHAR},
applicant_duty_id = #{record.applicantDutyId,jdbcType=VARCHAR},
transferred_class_duty_id = #{record.transferredClassDutyId,jdbcType=VARCHAR},
status = #{record.status,jdbcType=INTEGER},
reason = #{record.reason,jdbcType=VARCHAR},
approver = #{record.approver,jdbcType=VARCHAR},
application_time = #{record.applicationTime,jdbcType=TIMESTAMP},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcShift">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_shift
<set>
<if test="applicantId != null">
applicant_id = #{applicantId,jdbcType=VARCHAR},
</if>
<if test="transferredClassId != null">
transferred_class_id = #{transferredClassId,jdbcType=VARCHAR},
</if>
<if test="applicantDutyId != null">
applicant_duty_id = #{applicantDutyId,jdbcType=VARCHAR},
</if>
<if test="transferredClassDutyId != null">
transferred_class_duty_id = #{transferredClassDutyId,jdbcType=VARCHAR},
</if>
<if test="status != null">
status = #{status,jdbcType=INTEGER},
</if>
<if test="reason != null">
reason = #{reason,jdbcType=VARCHAR},
</if>
<if test="approver != null">
approver = #{approver,jdbcType=VARCHAR},
</if>
<if test="applicationTime != null">
application_time = #{applicationTime,jdbcType=TIMESTAMP},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcShift">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_shift
set applicant_id = #{applicantId,jdbcType=VARCHAR},
transferred_class_id = #{transferredClassId,jdbcType=VARCHAR},
applicant_duty_id = #{applicantDutyId,jdbcType=VARCHAR},
transferred_class_duty_id = #{transferredClassDutyId,jdbcType=VARCHAR},
status = #{status,jdbcType=INTEGER},
reason = #{reason,jdbcType=VARCHAR},
approver = #{approver,jdbcType=VARCHAR},
application_time = #{applicationTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcShiftExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_shift
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcSoundRecordingMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcSoundRecording">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="file_name" jdbcType="VARCHAR" property="fileName" />
<result column="file_path" jdbcType="VARCHAR" property="filePath" />
<result column="uploading_person" jdbcType="VARCHAR" property="uploadingPerson" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
<result column="type" jdbcType="VARCHAR" property="type" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, file_name, file_path, uploading_person, create_time, last_update_time, type
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcSoundRecordingExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_sound_recording
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_sound_recording
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_sound_recording
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcSoundRecordingExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_sound_recording
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcSoundRecording">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_sound_recording (id, file_name, file_path,
uploading_person, create_time, last_update_time,
type)
values (#{id,jdbcType=VARCHAR}, #{fileName,jdbcType=VARCHAR}, #{filePath,jdbcType=VARCHAR},
#{uploadingPerson,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{lastUpdateTime,jdbcType=TIMESTAMP},
#{type,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcSoundRecording">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_sound_recording
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="fileName != null">
file_name,
</if>
<if test="filePath != null">
file_path,
</if>
<if test="uploadingPerson != null">
uploading_person,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
<if test="type != null">
type,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="fileName != null">
#{fileName,jdbcType=VARCHAR},
</if>
<if test="filePath != null">
#{filePath,jdbcType=VARCHAR},
</if>
<if test="uploadingPerson != null">
#{uploadingPerson,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="type != null">
#{type,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcSoundRecordingExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_sound_recording
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_sound_recording
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.fileName != null">
file_name = #{record.fileName,jdbcType=VARCHAR},
</if>
<if test="record.filePath != null">
file_path = #{record.filePath,jdbcType=VARCHAR},
</if>
<if test="record.uploadingPerson != null">
uploading_person = #{record.uploadingPerson,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.type != null">
type = #{record.type,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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_sound_recording
set id = #{record.id,jdbcType=VARCHAR},
file_name = #{record.fileName,jdbcType=VARCHAR},
file_path = #{record.filePath,jdbcType=VARCHAR},
uploading_person = #{record.uploadingPerson,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
type = #{record.type,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcSoundRecording">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_sound_recording
<set>
<if test="fileName != null">
file_name = #{fileName,jdbcType=VARCHAR},
</if>
<if test="filePath != null">
file_path = #{filePath,jdbcType=VARCHAR},
</if>
<if test="uploadingPerson != null">
uploading_person = #{uploadingPerson,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="type != null">
type = #{type,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcSoundRecording">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_sound_recording
set file_name = #{fileName,jdbcType=VARCHAR},
file_path = #{filePath,jdbcType=VARCHAR},
uploading_person = #{uploadingPerson,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
type = #{type,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcSoundRecordingExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_sound_recording
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcSubjectMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcSubject">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="subject" jdbcType="VARCHAR" property="subject" />
<result column="subject_type" jdbcType="VARCHAR" property="subjectType" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
<result column="commentary" jdbcType="VARCHAR" property="commentary" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, subject, subject_type, create_time, last_update_time, commentary
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcSubjectExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_subject
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_subject
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_subject
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcSubjectExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_subject
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcSubject">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_subject (id, subject, subject_type,
create_time, last_update_time, commentary
)
values (#{id,jdbcType=VARCHAR}, #{subject,jdbcType=VARCHAR}, #{subjectType,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}, #{lastUpdateTime,jdbcType=TIMESTAMP}, #{commentary,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcSubject">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_subject
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="subject != null">
subject,
</if>
<if test="subjectType != null">
subject_type,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
<if test="commentary != null">
commentary,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="subject != null">
#{subject,jdbcType=VARCHAR},
</if>
<if test="subjectType != null">
#{subjectType,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="commentary != null">
#{commentary,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcSubjectExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_subject
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_subject
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.subject != null">
subject = #{record.subject,jdbcType=VARCHAR},
</if>
<if test="record.subjectType != null">
subject_type = #{record.subjectType,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.commentary != null">
commentary = #{record.commentary,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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_subject
set id = #{record.id,jdbcType=VARCHAR},
subject = #{record.subject,jdbcType=VARCHAR},
subject_type = #{record.subjectType,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
commentary = #{record.commentary,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcSubject">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_subject
<set>
<if test="subject != null">
subject = #{subject,jdbcType=VARCHAR},
</if>
<if test="subjectType != null">
subject_type = #{subjectType,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="commentary != null">
commentary = #{commentary,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcSubject">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_subject
set subject = #{subject,jdbcType=VARCHAR},
subject_type = #{subjectType,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
commentary = #{commentary,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcSubjectExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_subject
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcTemplateManagerMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcTemplateManager">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="template" jdbcType="VARCHAR" property="template" />
<result column="department_id" jdbcType="VARCHAR" property="departmentId" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, name, template, department_id, create_time, last_update_time
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcTemplateManagerExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_template_manager
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_template_manager
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_template_manager
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcTemplateManagerExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_template_manager
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcTemplateManager">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_template_manager (id, name, template,
department_id, create_time, last_update_time
)
values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{template,jdbcType=VARCHAR},
#{departmentId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{lastUpdateTime,jdbcType=TIMESTAMP}
)
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcTemplateManager">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_template_manager
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="name != null">
name,
</if>
<if test="template != null">
template,
</if>
<if test="departmentId != null">
department_id,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="template != null">
#{template,jdbcType=VARCHAR},
</if>
<if test="departmentId != null">
#{departmentId,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcTemplateManagerExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_template_manager
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_template_manager
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.template != null">
template = #{record.template,jdbcType=VARCHAR},
</if>
<if test="record.departmentId != null">
department_id = #{record.departmentId,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_template_manager
set id = #{record.id,jdbcType=VARCHAR},
name = #{record.name,jdbcType=VARCHAR},
template = #{record.template,jdbcType=VARCHAR},
department_id = #{record.departmentId,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcTemplateManager">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_template_manager
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="template != null">
template = #{template,jdbcType=VARCHAR},
</if>
<if test="departmentId != null">
department_id = #{departmentId,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcTemplateManager">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_template_manager
set name = #{name,jdbcType=VARCHAR},
template = #{template,jdbcType=VARCHAR},
department_id = #{departmentId,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcTemplateManagerExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_template_manager
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcTestPaperMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcTestPaper">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="test_paper_name" jdbcType="VARCHAR" property="testPaperName" />
<result column="long_exam" jdbcType="INTEGER" property="longExam" />
<result column="total_score" jdbcType="INTEGER" property="totalScore" />
<result column="qualified_score" jdbcType="INTEGER" property="qualifiedScore" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
<result column="sum_subject" jdbcType="INTEGER" property="sumSubject" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, test_paper_name, long_exam, total_score, qualified_score, create_time, last_update_time,
remark, sum_subject
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcTestPaperExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_test_paper
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_test_paper
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_test_paper
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcTestPaperExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_test_paper
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcTestPaper">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_test_paper (id, test_paper_name, long_exam,
total_score, qualified_score, create_time,
last_update_time, remark, sum_subject
)
values (#{id,jdbcType=VARCHAR}, #{testPaperName,jdbcType=VARCHAR}, #{longExam,jdbcType=INTEGER},
#{totalScore,jdbcType=INTEGER}, #{qualifiedScore,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{lastUpdateTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR}, #{sumSubject,jdbcType=INTEGER}
)
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcTestPaper">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_test_paper
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="testPaperName != null">
test_paper_name,
</if>
<if test="longExam != null">
long_exam,
</if>
<if test="totalScore != null">
total_score,
</if>
<if test="qualifiedScore != null">
qualified_score,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
<if test="remark != null">
remark,
</if>
<if test="sumSubject != null">
sum_subject,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="testPaperName != null">
#{testPaperName,jdbcType=VARCHAR},
</if>
<if test="longExam != null">
#{longExam,jdbcType=INTEGER},
</if>
<if test="totalScore != null">
#{totalScore,jdbcType=INTEGER},
</if>
<if test="qualifiedScore != null">
#{qualifiedScore,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="remark != null">
#{remark,jdbcType=VARCHAR},
</if>
<if test="sumSubject != null">
#{sumSubject,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcTestPaperExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_test_paper
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_test_paper
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.testPaperName != null">
test_paper_name = #{record.testPaperName,jdbcType=VARCHAR},
</if>
<if test="record.longExam != null">
long_exam = #{record.longExam,jdbcType=INTEGER},
</if>
<if test="record.totalScore != null">
total_score = #{record.totalScore,jdbcType=INTEGER},
</if>
<if test="record.qualifiedScore != null">
qualified_score = #{record.qualifiedScore,jdbcType=INTEGER},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.remark != null">
remark = #{record.remark,jdbcType=VARCHAR},
</if>
<if test="record.sumSubject != null">
sum_subject = #{record.sumSubject,jdbcType=INTEGER},
</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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_test_paper
set id = #{record.id,jdbcType=VARCHAR},
test_paper_name = #{record.testPaperName,jdbcType=VARCHAR},
long_exam = #{record.longExam,jdbcType=INTEGER},
total_score = #{record.totalScore,jdbcType=INTEGER},
qualified_score = #{record.qualifiedScore,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
remark = #{record.remark,jdbcType=VARCHAR},
sum_subject = #{record.sumSubject,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcTestPaper">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_test_paper
<set>
<if test="testPaperName != null">
test_paper_name = #{testPaperName,jdbcType=VARCHAR},
</if>
<if test="longExam != null">
long_exam = #{longExam,jdbcType=INTEGER},
</if>
<if test="totalScore != null">
total_score = #{totalScore,jdbcType=INTEGER},
</if>
<if test="qualifiedScore != null">
qualified_score = #{qualifiedScore,jdbcType=INTEGER},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="remark != null">
remark = #{remark,jdbcType=VARCHAR},
</if>
<if test="sumSubject != null">
sum_subject = #{sumSubject,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcTestPaper">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_test_paper
set test_paper_name = #{testPaperName,jdbcType=VARCHAR},
long_exam = #{longExam,jdbcType=INTEGER},
total_score = #{totalScore,jdbcType=INTEGER},
qualified_score = #{qualifiedScore,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
remark = #{remark,jdbcType=VARCHAR},
sum_subject = #{sumSubject,jdbcType=INTEGER}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcTestPaperExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_test_paper
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcTotalCallMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcTotalCall">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="unit" jdbcType="VARCHAR" property="unit" />
<result column="department" jdbcType="VARCHAR" property="department" />
<result column="phone" jdbcType="VARCHAR" property="phone" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, unit, department, phone, create_time, last_update_time
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcTotalCallExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_total_call
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_total_call
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_total_call
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcTotalCallExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_total_call
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcTotalCall">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_total_call (id, unit, department,
phone, create_time, last_update_time
)
values (#{id,jdbcType=VARCHAR}, #{unit,jdbcType=VARCHAR}, #{department,jdbcType=VARCHAR},
#{phone,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{lastUpdateTime,jdbcType=TIMESTAMP}
)
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcTotalCall">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_total_call
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="unit != null">
unit,
</if>
<if test="department != null">
department,
</if>
<if test="phone != null">
phone,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="unit != null">
#{unit,jdbcType=VARCHAR},
</if>
<if test="department != null">
#{department,jdbcType=VARCHAR},
</if>
<if test="phone != null">
#{phone,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcTotalCallExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_total_call
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_total_call
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.unit != null">
unit = #{record.unit,jdbcType=VARCHAR},
</if>
<if test="record.department != null">
department = #{record.department,jdbcType=VARCHAR},
</if>
<if test="record.phone != null">
phone = #{record.phone,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_total_call
set id = #{record.id,jdbcType=VARCHAR},
unit = #{record.unit,jdbcType=VARCHAR},
department = #{record.department,jdbcType=VARCHAR},
phone = #{record.phone,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcTotalCall">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_total_call
<set>
<if test="unit != null">
unit = #{unit,jdbcType=VARCHAR},
</if>
<if test="department != null">
department = #{department,jdbcType=VARCHAR},
</if>
<if test="phone != null">
phone = #{phone,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcTotalCall">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_total_call
set unit = #{unit,jdbcType=VARCHAR},
department = #{department,jdbcType=VARCHAR},
phone = #{phone,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcTotalCallExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_total_call
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcUserMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcUser">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="user_id" jdbcType="VARCHAR" property="userId" />
<result column="cc_work_circle_id" jdbcType="VARCHAR" property="ccWorkCircleId" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, user_id, cc_work_circle_id, create_time, last_update_time
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcUserExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_user
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_user
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_user
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcUserExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_user
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcUser">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_user (id, user_id, cc_work_circle_id,
create_time, last_update_time)
values (#{id,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}, #{ccWorkCircleId,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}, #{lastUpdateTime,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcUser">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_user
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="userId != null">
user_id,
</if>
<if test="ccWorkCircleId != null">
cc_work_circle_id,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="userId != null">
#{userId,jdbcType=VARCHAR},
</if>
<if test="ccWorkCircleId != null">
#{ccWorkCircleId,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcUserExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_user
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_user
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.userId != null">
user_id = #{record.userId,jdbcType=VARCHAR},
</if>
<if test="record.ccWorkCircleId != null">
cc_work_circle_id = #{record.ccWorkCircleId,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_user
set id = #{record.id,jdbcType=VARCHAR},
user_id = #{record.userId,jdbcType=VARCHAR},
cc_work_circle_id = #{record.ccWorkCircleId,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcUser">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_user
<set>
<if test="userId != null">
user_id = #{userId,jdbcType=VARCHAR},
</if>
<if test="ccWorkCircleId != null">
cc_work_circle_id = #{ccWorkCircleId,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcUser">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_user
set user_id = #{userId,jdbcType=VARCHAR},
cc_work_circle_id = #{ccWorkCircleId,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcUserExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_user
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcUserTestRecordMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcUserTestRecord">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:15 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="cc_test_paper_id" jdbcType="VARCHAR" property="ccTestPaperId" />
<result column="user_id" jdbcType="VARCHAR" property="userId" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
<result column="when_long" jdbcType="INTEGER" property="whenLong" />
<result column="achievement" jdbcType="INTEGER" property="achievement" />
<result column="grade" jdbcType="VARCHAR" property="grade" />
</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 Wed Mar 21 10:27:15 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:15 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:15 CST 2018.
-->
id, cc_test_paper_id, user_id, create_time, last_update_time, when_long, achievement,
grade
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcUserTestRecordExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:15 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_user_test_record
<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 Wed Mar 21 10:27:15 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_user_test_record
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 Wed Mar 21 10:27:15 CST 2018.
-->
delete from cc_user_test_record
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcUserTestRecordExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:15 CST 2018.
-->
delete from cc_user_test_record
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcUserTestRecord">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:15 CST 2018.
-->
insert into cc_user_test_record (id, cc_test_paper_id, user_id,
create_time, last_update_time, when_long,
achievement, grade)
values (#{id,jdbcType=VARCHAR}, #{ccTestPaperId,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}, #{lastUpdateTime,jdbcType=TIMESTAMP}, #{whenLong,jdbcType=INTEGER},
#{achievement,jdbcType=INTEGER}, #{grade,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcUserTestRecord">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:15 CST 2018.
-->
insert into cc_user_test_record
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="ccTestPaperId != null">
cc_test_paper_id,
</if>
<if test="userId != null">
user_id,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
<if test="whenLong != null">
when_long,
</if>
<if test="achievement != null">
achievement,
</if>
<if test="grade != null">
grade,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="ccTestPaperId != null">
#{ccTestPaperId,jdbcType=VARCHAR},
</if>
<if test="userId != null">
#{userId,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="whenLong != null">
#{whenLong,jdbcType=INTEGER},
</if>
<if test="achievement != null">
#{achievement,jdbcType=INTEGER},
</if>
<if test="grade != null">
#{grade,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcUserTestRecordExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:15 CST 2018.
-->
select count(*) from cc_user_test_record
<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 Wed Mar 21 10:27:15 CST 2018.
-->
update cc_user_test_record
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.ccTestPaperId != null">
cc_test_paper_id = #{record.ccTestPaperId,jdbcType=VARCHAR},
</if>
<if test="record.userId != null">
user_id = #{record.userId,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.whenLong != null">
when_long = #{record.whenLong,jdbcType=INTEGER},
</if>
<if test="record.achievement != null">
achievement = #{record.achievement,jdbcType=INTEGER},
</if>
<if test="record.grade != null">
grade = #{record.grade,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 Wed Mar 21 10:27:15 CST 2018.
-->
update cc_user_test_record
set id = #{record.id,jdbcType=VARCHAR},
cc_test_paper_id = #{record.ccTestPaperId,jdbcType=VARCHAR},
user_id = #{record.userId,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
when_long = #{record.whenLong,jdbcType=INTEGER},
achievement = #{record.achievement,jdbcType=INTEGER},
grade = #{record.grade,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcUserTestRecord">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:15 CST 2018.
-->
update cc_user_test_record
<set>
<if test="ccTestPaperId != null">
cc_test_paper_id = #{ccTestPaperId,jdbcType=VARCHAR},
</if>
<if test="userId != null">
user_id = #{userId,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="whenLong != null">
when_long = #{whenLong,jdbcType=INTEGER},
</if>
<if test="achievement != null">
achievement = #{achievement,jdbcType=INTEGER},
</if>
<if test="grade != null">
grade = #{grade,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcUserTestRecord">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:15 CST 2018.
-->
update cc_user_test_record
set cc_test_paper_id = #{ccTestPaperId,jdbcType=VARCHAR},
user_id = #{userId,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
when_long = #{whenLong,jdbcType=INTEGER},
achievement = #{achievement,jdbcType=INTEGER},
grade = #{grade,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcUserTestRecordExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:15 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_user_test_record
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcVoiceFileMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcVoiceFile">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="file_name" jdbcType="VARCHAR" property="fileName" />
<result column="file_path" jdbcType="VARCHAR" property="filePath" />
<result column="upload_user" jdbcType="VARCHAR" property="uploadUser" />
<result column="status" jdbcType="VARCHAR" property="status" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, file_name, file_path, upload_user, status, create_time, last_update_time
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcVoiceFileExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_voice_file
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_voice_file
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_voice_file
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcVoiceFileExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_voice_file
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcVoiceFile">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_voice_file (id, file_name, file_path,
upload_user, status, create_time,
last_update_time)
values (#{id,jdbcType=VARCHAR}, #{fileName,jdbcType=VARCHAR}, #{filePath,jdbcType=VARCHAR},
#{uploadUser,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{lastUpdateTime,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcVoiceFile">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_voice_file
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="fileName != null">
file_name,
</if>
<if test="filePath != null">
file_path,
</if>
<if test="uploadUser != null">
upload_user,
</if>
<if test="status != null">
status,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="fileName != null">
#{fileName,jdbcType=VARCHAR},
</if>
<if test="filePath != null">
#{filePath,jdbcType=VARCHAR},
</if>
<if test="uploadUser != null">
#{uploadUser,jdbcType=VARCHAR},
</if>
<if test="status != null">
#{status,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcVoiceFileExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_voice_file
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_voice_file
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.fileName != null">
file_name = #{record.fileName,jdbcType=VARCHAR},
</if>
<if test="record.filePath != null">
file_path = #{record.filePath,jdbcType=VARCHAR},
</if>
<if test="record.uploadUser != null">
upload_user = #{record.uploadUser,jdbcType=VARCHAR},
</if>
<if test="record.status != null">
status = #{record.status,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_voice_file
set id = #{record.id,jdbcType=VARCHAR},
file_name = #{record.fileName,jdbcType=VARCHAR},
file_path = #{record.filePath,jdbcType=VARCHAR},
upload_user = #{record.uploadUser,jdbcType=VARCHAR},
status = #{record.status,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcVoiceFile">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_voice_file
<set>
<if test="fileName != null">
file_name = #{fileName,jdbcType=VARCHAR},
</if>
<if test="filePath != null">
file_path = #{filePath,jdbcType=VARCHAR},
</if>
<if test="uploadUser != null">
upload_user = #{uploadUser,jdbcType=VARCHAR},
</if>
<if test="status != null">
status = #{status,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcVoiceFile">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_voice_file
set file_name = #{fileName,jdbcType=VARCHAR},
file_path = #{filePath,jdbcType=VARCHAR},
upload_user = #{uploadUser,jdbcType=VARCHAR},
status = #{status,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcVoiceFileExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_voice_file
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
<?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.haomostudio.SeekTruthBackend.dao.CcWorkCircleMapper">
<resultMap id="BaseResultMap" type="com.haomostudio.SeekTruthBackend.domain.CcWorkCircle">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="last_update_time" jdbcType="TIMESTAMP" property="lastUpdateTime" />
<result column="user_id" jdbcType="VARCHAR" property="userId" />
<result column="remarks" jdbcType="VARCHAR" property="remarks" />
</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 Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 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 - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
id, name, create_time, last_update_time, user_id, remarks
</sql>
<select id="selectByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcWorkCircleExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_work_circle
<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 Wed Mar 21 10:27:14 CST 2018.
-->
select
<include refid="Base_Column_List" />
from cc_work_circle
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 Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_work_circle
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcWorkCircleExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
delete from cc_work_circle
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.haomostudio.SeekTruthBackend.domain.CcWorkCircle">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_work_circle (id, name, create_time,
last_update_time, user_id, remarks
)
values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{lastUpdateTime,jdbcType=TIMESTAMP}, #{userId,jdbcType=VARCHAR}, #{remarks,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcWorkCircle">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
insert into cc_work_circle
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="name != null">
name,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="lastUpdateTime != null">
last_update_time,
</if>
<if test="userId != null">
user_id,
</if>
<if test="remarks != null">
remarks,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
#{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="userId != null">
#{userId,jdbcType=VARCHAR},
</if>
<if test="remarks != null">
#{remarks,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.haomostudio.SeekTruthBackend.domain.CcWorkCircleExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select count(*) from cc_work_circle
<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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_work_circle
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.lastUpdateTime != null">
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.userId != null">
user_id = #{record.userId,jdbcType=VARCHAR},
</if>
<if test="record.remarks != null">
remarks = #{record.remarks,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 Wed Mar 21 10:27:14 CST 2018.
-->
update cc_work_circle
set id = #{record.id,jdbcType=VARCHAR},
name = #{record.name,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
last_update_time = #{record.lastUpdateTime,jdbcType=TIMESTAMP},
user_id = #{record.userId,jdbcType=VARCHAR},
remarks = #{record.remarks,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.haomostudio.SeekTruthBackend.domain.CcWorkCircle">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_work_circle
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="lastUpdateTime != null">
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
</if>
<if test="userId != null">
user_id = #{userId,jdbcType=VARCHAR},
</if>
<if test="remarks != null">
remarks = #{remarks,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.haomostudio.SeekTruthBackend.domain.CcWorkCircle">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
update cc_work_circle
set name = #{name,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
user_id = #{userId,jdbcType=VARCHAR},
remarks = #{remarks,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="com.haomostudio.SeekTruthBackend.domain.CcWorkCircleExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Wed Mar 21 10:27:14 CST 2018.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cc_work_circle
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment