Commit 0325154e authored by frank.xa.zhang's avatar frank.xa.zhang

fixed mybatis xml config issue

parent 811c3879
<?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="pwc.taxtech.atms.dao.TemplateGroupMapper">
<resultMap id="BaseResultMap" type="pwc.taxtech.atms.entitiy.TemplateGroup">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<id column="ID" jdbcType="VARCHAR" property="ID" />
<result column="Name" jdbcType="VARCHAR" property="name" />
<result column="ServiceTypeID" jdbcType="VARCHAR" property="serviceTypeID" />
<result column="IndustryIDs" jdbcType="VARCHAR" property="industryIDs" />
<result column="PayTaxType" jdbcType="INTEGER" property="payTaxType" />
<result column="GroupType" jdbcType="INTEGER" property="groupType" />
<result column="CopyFrom" jdbcType="VARCHAR" property="copyFrom" />
<result column="UpdateTime" jdbcType="TIMESTAMP" property="updateTime" />
<result column="CreateTime" jdbcType="TIMESTAMP" property="createTime" />
<result column="IsSystemType" jdbcType="INTEGER" property="isSystemType" />
</resultMap>
<sql id="Example_Where_Clause">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<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>
<resultMap id="BaseResultMap" type="pwc.taxtech.atms.entitiy.TemplateGroup">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<id column="ID" jdbcType="VARCHAR" property="ID"/>
<result column="Name" jdbcType="VARCHAR" property="name"/>
<result column="ServiceTypeID" jdbcType="VARCHAR" property="serviceTypeID"/>
<result column="IndustryIDs" jdbcType="VARCHAR" property="industryIDs"/>
<result column="PayTaxType" jdbcType="INTEGER" property="payTaxType"/>
<result column="GroupType" jdbcType="INTEGER" property="groupType"/>
<result column="CopyFrom" jdbcType="VARCHAR" property="copyFrom"/>
<result column="UpdateTime" jdbcType="TIMESTAMP" property="updateTime"/>
<result column="CreateTime" jdbcType="TIMESTAMP" property="createTime"/>
<result column="IsSystemType" jdbcType="INTEGER" property="isSystemType"/>
</resultMap>
<sql id="Example_Where_Clause">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<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>
</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.
-->
<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>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<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>
</trim>
</where>
</sql>
<sql id="Base_Column_List">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
ID, Name, ServiceTypeID, IndustryIDs, PayTaxType, GroupType, CopyFrom, UpdateTime,
CreateTime, IsSystemType
</sql>
<select id="selectByExample" parameterType="pwc.taxtech.atms.entitiy.TemplateGroupExample"
resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List"/>
from TemplateGroup
<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.
-->
select
<include refid="Base_Column_List"/>
from TemplateGroup
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.
-->
delete from TemplateGroup
where ID = #{ID,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="pwc.taxtech.atms.entitiy.TemplateGroupExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from TemplateGroup
<if test="_parameter != null">
<include refid="Example_Where_Clause"/>
</if>
</delete>
<insert id="insert" parameterType="pwc.taxtech.atms.entitiy.TemplateGroup">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into TemplateGroup (ID, Name, ServiceTypeID,
IndustryIDs, PayTaxType, GroupType,
CopyFrom, UpdateTime, CreateTime,
IsSystemType)
values (#{ID,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{serviceTypeID,jdbcType=VARCHAR},
#{industryIDs,jdbcType=VARCHAR}, #{payTaxType,jdbcType=INTEGER}, #{groupType,jdbcType=INTEGER},
#{copyFrom,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP},
#{isSystemType,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="pwc.taxtech.atms.entitiy.TemplateGroup">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into TemplateGroup
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="ID != null">
ID,
</if>
<if test="name != null">
Name,
</if>
<if test="serviceTypeID != null">
ServiceTypeID,
</if>
<if test="industryIDs != null">
IndustryIDs,
</if>
<if test="payTaxType != null">
PayTaxType,
</if>
<if test="groupType != null">
GroupType,
</if>
<if test="copyFrom != null">
CopyFrom,
</if>
<if test="updateTime != null">
UpdateTime,
</if>
<if test="createTime != null">
CreateTime,
</if>
<if test="isSystemType != null">
IsSystemType,
</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="serviceTypeID != null">
#{serviceTypeID,jdbcType=VARCHAR},
</if>
<if test="industryIDs != null">
#{industryIDs,jdbcType=VARCHAR},
</if>
<if test="payTaxType != null">
#{payTaxType,jdbcType=INTEGER},
</if>
<if test="groupType != null">
#{groupType,jdbcType=INTEGER},
</if>
<if test="copyFrom != null">
#{copyFrom,jdbcType=VARCHAR},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="isSystemType != null">
#{isSystemType,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="pwc.taxtech.atms.entitiy.TemplateGroupExample"
resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select count(*) from TemplateGroup
<if test="_parameter != null">
<include refid="Example_Where_Clause"/>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
ID, Name, ServiceTypeID, IndustryIDs, PayTaxType, GroupType, CopyFrom, UpdateTime,
CreateTime, IsSystemType
</sql>
<select id="selectByExample" parameterType="pwc.taxtech.atms.entitiy.TemplateGroupExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from TemplateGroup
<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.
-->
select
<include refid="Base_Column_List" />
from TemplateGroup
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.
-->
delete from TemplateGroup
where ID = #{ID,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="pwc.taxtech.atms.entitiy.TemplateGroupExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from TemplateGroup
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="pwc.taxtech.atms.entitiy.TemplateGroup">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into TemplateGroup (ID, Name, ServiceTypeID,
IndustryIDs, PayTaxType, GroupType,
CopyFrom, UpdateTime, CreateTime,
IsSystemType)
values (#{ID,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{serviceTypeID,jdbcType=VARCHAR},
#{industryIDs,jdbcType=VARCHAR}, #{payTaxType,jdbcType=INTEGER}, #{groupType,jdbcType=INTEGER},
#{copyFrom,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP},
#{isSystemType,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="pwc.taxtech.atms.entitiy.TemplateGroup">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into TemplateGroup
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="ID != null">
ID,
</if>
<if test="name != null">
Name,
</if>
<if test="serviceTypeID != null">
ServiceTypeID,
</if>
<if test="industryIDs != null">
IndustryIDs,
</if>
<if test="payTaxType != null">
PayTaxType,
</if>
<if test="groupType != null">
GroupType,
</if>
<if test="copyFrom != null">
CopyFrom,
</if>
<if test="updateTime != null">
UpdateTime,
</if>
<if test="createTime != null">
CreateTime,
</if>
<if test="isSystemType != null">
IsSystemType,
</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="serviceTypeID != null">
#{serviceTypeID,jdbcType=VARCHAR},
</if>
<if test="industryIDs != null">
#{industryIDs,jdbcType=VARCHAR},
</if>
<if test="payTaxType != null">
#{payTaxType,jdbcType=INTEGER},
</if>
<if test="groupType != null">
#{groupType,jdbcType=INTEGER},
</if>
<if test="copyFrom != null">
#{copyFrom,jdbcType=VARCHAR},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="isSystemType != null">
#{isSystemType,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="pwc.taxtech.atms.entitiy.TemplateGroupExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select count(*) from TemplateGroup
<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.
-->
update TemplateGroup
<set>
<if test="record.ID != null">
ID = #{record.ID,jdbcType=VARCHAR},
</if>
<if test="record.name != null">
</select>
<update id="updateByExampleSelective" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update TemplateGroup
<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.serviceTypeID != null">
ServiceTypeID = #{record.serviceTypeID,jdbcType=VARCHAR},
</if>
<if test="record.industryIDs != null">
IndustryIDs = #{record.industryIDs,jdbcType=VARCHAR},
</if>
<if test="record.payTaxType != null">
PayTaxType = #{record.payTaxType,jdbcType=INTEGER},
</if>
<if test="record.groupType != null">
GroupType = #{record.groupType,jdbcType=INTEGER},
</if>
<if test="record.copyFrom != null">
CopyFrom = #{record.copyFrom,jdbcType=VARCHAR},
</if>
<if test="record.updateTime != null">
UpdateTime = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.createTime != null">
CreateTime = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.isSystemType != null">
IsSystemType = #{record.isSystemType,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.
-->
update TemplateGroup
set ID = #{record.ID,jdbcType=VARCHAR},
Name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.serviceTypeID != null">
ServiceTypeID = #{record.serviceTypeID,jdbcType=VARCHAR},
</if>
<if test="record.industryIDs != null">
IndustryIDs = #{record.industryIDs,jdbcType=VARCHAR},
</if>
<if test="record.payTaxType != null">
PayTaxType = #{record.payTaxType,jdbcType=INTEGER},
</if>
<if test="record.groupType != null">
GroupType = #{record.groupType,jdbcType=INTEGER},
</if>
<if test="record.copyFrom != null">
CopyFrom = #{record.copyFrom,jdbcType=VARCHAR},
</if>
<if test="record.updateTime != null">
UpdateTime = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.createTime != null">
CreateTime = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.isSystemType != null">
IsSystemType = #{record.isSystemType,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.
-->
update TemplateGroup
set ID = #{record.ID,jdbcType=VARCHAR},
Name = #{record.name,jdbcType=VARCHAR},
ServiceTypeID = #{record.serviceTypeID,jdbcType=VARCHAR},
IndustryIDs = #{record.industryIDs,jdbcType=VARCHAR},
PayTaxType = #{record.payTaxType,jdbcType=INTEGER},
GroupType = #{record.groupType,jdbcType=INTEGER},
CopyFrom = #{record.copyFrom,jdbcType=VARCHAR},
UpdateTime = #{record.updateTime,jdbcType=TIMESTAMP},
CreateTime = #{record.createTime,jdbcType=TIMESTAMP},
IsSystemType = #{record.isSystemType,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="pwc.taxtech.atms.entitiy.TemplateGroup">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update TemplateGroup
<set>
<if test="name != null">
Name = #{name,jdbcType=VARCHAR},
</if>
<if test="serviceTypeID != null">
IsSystemType = #{record.isSystemType,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause"/>
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="pwc.taxtech.atms.entitiy.TemplateGroup">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update TemplateGroup
<set>
<if test="name != null">
Name = #{name,jdbcType=VARCHAR},
</if>
<if test="serviceTypeID != null">
ServiceTypeID = #{serviceTypeID,jdbcType=VARCHAR},
</if>
<if test="industryIDs != null">
IndustryIDs = #{industryIDs,jdbcType=VARCHAR},
</if>
<if test="payTaxType != null">
PayTaxType = #{payTaxType,jdbcType=INTEGER},
</if>
<if test="groupType != null">
GroupType = #{groupType,jdbcType=INTEGER},
</if>
<if test="copyFrom != null">
CopyFrom = #{copyFrom,jdbcType=VARCHAR},
</if>
<if test="updateTime != null">
UpdateTime = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="createTime != null">
CreateTime = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="isSystemType != null">
IsSystemType = #{isSystemType,jdbcType=INTEGER},
</if>
</set>
where ID = #{ID,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.entitiy.TemplateGroup">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update TemplateGroup
set Name = #{name,jdbcType=VARCHAR},
ServiceTypeID = #{serviceTypeID,jdbcType=VARCHAR},
</if>
<if test="industryIDs != null">
IndustryIDs = #{industryIDs,jdbcType=VARCHAR},
</if>
<if test="payTaxType != null">
PayTaxType = #{payTaxType,jdbcType=INTEGER},
</if>
<if test="groupType != null">
GroupType = #{groupType,jdbcType=INTEGER},
</if>
<if test="copyFrom != null">
CopyFrom = #{copyFrom,jdbcType=VARCHAR},
</if>
<if test="updateTime != null">
UpdateTime = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="createTime != null">
CreateTime = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="isSystemType != null">
IsSystemType = #{isSystemType,jdbcType=INTEGER},
</if>
</set>
where ID = #{ID,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.entitiy.TemplateGroup">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update TemplateGroup
set Name = #{name,jdbcType=VARCHAR},
ServiceTypeID = #{serviceTypeID,jdbcType=VARCHAR},
IndustryIDs = #{industryIDs,jdbcType=VARCHAR},
PayTaxType = #{payTaxType,jdbcType=INTEGER},
GroupType = #{groupType,jdbcType=INTEGER},
CopyFrom = #{copyFrom,jdbcType=VARCHAR},
UpdateTime = #{updateTime,jdbcType=TIMESTAMP},
CreateTime = #{createTime,jdbcType=TIMESTAMP},
IsSystemType = #{isSystemType,jdbcType=INTEGER}
where ID = #{ID,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="pwc.taxtech.atms.entitiy.TemplateGroupExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from TemplateGroup
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
IsSystemType = #{isSystemType,jdbcType=INTEGER}
where ID = #{ID,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="pwc.taxtech.atms.entitiy.TemplateGroupExample"
resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List"/>
from TemplateGroup
<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="pwc.taxtech.atms.dao.TemplateMapper">
<resultMap id="BaseResultMap" type="pwc.taxtech.atms.entitiy.Template">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<id column="ID" jdbcType="VARCHAR" property="ID" />
<result column="Name" jdbcType="VARCHAR" property="name" />
<result column="Code" jdbcType="VARCHAR" property="code" />
<result column="Path" jdbcType="VARCHAR" property="path" />
<result column="ReportType" jdbcType="INTEGER" property="reportType" />
<result column="TemplateGroupID" jdbcType="VARCHAR" property="templateGroupID" />
<result column="OrderIndex" jdbcType="INTEGER" property="orderIndex" />
<result column="CreateTime" jdbcType="TIMESTAMP" property="createTime" />
<result column="UpdateTime" jdbcType="TIMESTAMP" property="updateTime" />
<result column="IsSystemType" jdbcType="INTEGER" property="isSystemType" />
<result column="IsActiveAssociation" jdbcType="INTEGER" property="isActiveAssociation" />
<result column="ParentId" jdbcType="VARCHAR" property="parentId" />
</resultMap>
<sql id="Example_Where_Clause">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<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>
<resultMap id="BaseResultMap" type="pwc.taxtech.atms.entitiy.Template">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<id column="ID" jdbcType="VARCHAR" property="ID"/>
<result column="Name" jdbcType="VARCHAR" property="name"/>
<result column="Code" jdbcType="VARCHAR" property="code"/>
<result column="Path" jdbcType="VARCHAR" property="path"/>
<result column="ReportType" jdbcType="INTEGER" property="reportType"/>
<result column="TemplateGroupID" jdbcType="VARCHAR" property="templateGroupID"/>
<result column="OrderIndex" jdbcType="INTEGER" property="orderIndex"/>
<result column="CreateTime" jdbcType="TIMESTAMP" property="createTime"/>
<result column="UpdateTime" jdbcType="TIMESTAMP" property="updateTime"/>
<result column="IsSystemType" jdbcType="INTEGER" property="isSystemType"/>
<result column="IsActiveAssociation" jdbcType="INTEGER" property="isActiveAssociation"/>
<result column="ParentId" jdbcType="VARCHAR" property="parentId"/>
</resultMap>
<sql id="Example_Where_Clause">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<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>
</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.
-->
<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>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<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>
</trim>
</where>
</sql>
<sql id="Base_Column_List">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
ID, Name, Code, Path, ReportType, TemplateGroupID, OrderIndex, CreateTime, UpdateTime,
IsSystemType, IsActiveAssociation, ParentId
</sql>
<select id="selectByExample" parameterType="pwc.taxtech.atms.entitiy.TemplateExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<if test="distinct">
distinct
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
ID, Name, Code, Path, ReportType, TemplateGroupID, OrderIndex, CreateTime, UpdateTime,
IsSystemType, IsActiveAssociation, ParentId
</sql>
<select id="selectByExample" parameterType="pwc.taxtech.atms.entitiy.TemplateExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from 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.
-->
select
<include refid="Base_Column_List" />
from 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.
-->
delete from Template
where ID = #{ID,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="pwc.taxtech.atms.entitiy.TemplateExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from Template
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="pwc.taxtech.atms.entitiy.Template">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into Template (ID, Name, Code,
Path, ReportType, TemplateGroupID,
OrderIndex, CreateTime, UpdateTime,
IsSystemType, IsActiveAssociation, ParentId
)
values (#{ID,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR},
#{path,jdbcType=VARCHAR}, #{reportType,jdbcType=INTEGER}, #{templateGroupID,jdbcType=VARCHAR},
#{orderIndex,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{isSystemType,jdbcType=INTEGER}, #{isActiveAssociation,jdbcType=INTEGER}, #{parentId,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="pwc.taxtech.atms.entitiy.Template">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into Template
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="ID != null">
ID,
</if>
<if test="name != null">
Name,
</if>
<if test="code != null">
Code,
</if>
<if test="path != null">
Path,
</if>
<if test="reportType != null">
ReportType,
</if>
<if test="templateGroupID != null">
TemplateGroupID,
</if>
<if test="orderIndex != null">
OrderIndex,
</if>
<if test="createTime != null">
CreateTime,
</if>
<if test="updateTime != null">
UpdateTime,
</if>
<if test="isSystemType != null">
IsSystemType,
</if>
<if test="isActiveAssociation != null">
IsActiveAssociation,
</if>
<if test="parentId != null">
ParentId,
</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="code != null">
#{code,jdbcType=VARCHAR},
</if>
<if test="path != null">
#{path,jdbcType=VARCHAR},
</if>
<if test="reportType != null">
#{reportType,jdbcType=INTEGER},
</if>
<if test="templateGroupID != null">
#{templateGroupID,jdbcType=VARCHAR},
</if>
<if test="orderIndex != null">
#{orderIndex,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="isSystemType != null">
#{isSystemType,jdbcType=INTEGER},
</if>
<if test="isActiveAssociation != null">
#{isActiveAssociation,jdbcType=INTEGER},
</if>
<if test="parentId != null">
#{parentId,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="pwc.taxtech.atms.entitiy.TemplateExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select count(*) from 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.
-->
update Template
<set>
<if test="record.ID != null">
ID = #{record.ID,jdbcType=VARCHAR},
</if>
<if test="record.name != null">
<include refid="Base_Column_List"/>
from 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.
-->
select
<include refid="Base_Column_List"/>
from 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.
-->
delete from Template
where ID = #{ID,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="pwc.taxtech.atms.entitiy.TemplateExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from Template
<if test="_parameter != null">
<include refid="Example_Where_Clause"/>
</if>
</delete>
<insert id="insert" parameterType="pwc.taxtech.atms.entitiy.Template">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into Template (ID, Name, Code,
Path, ReportType, TemplateGroupID,
OrderIndex, CreateTime, UpdateTime,
IsSystemType, IsActiveAssociation, ParentId
)
values (#{ID,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR},
#{path,jdbcType=VARCHAR}, #{reportType,jdbcType=INTEGER}, #{templateGroupID,jdbcType=VARCHAR},
#{orderIndex,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{isSystemType,jdbcType=INTEGER}, #{isActiveAssociation,jdbcType=INTEGER}, #{parentId,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="pwc.taxtech.atms.entitiy.Template">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into Template
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="ID != null">
ID,
</if>
<if test="name != null">
Name,
</if>
<if test="code != null">
Code,
</if>
<if test="path != null">
Path,
</if>
<if test="reportType != null">
ReportType,
</if>
<if test="templateGroupID != null">
TemplateGroupID,
</if>
<if test="orderIndex != null">
OrderIndex,
</if>
<if test="createTime != null">
CreateTime,
</if>
<if test="updateTime != null">
UpdateTime,
</if>
<if test="isSystemType != null">
IsSystemType,
</if>
<if test="isActiveAssociation != null">
IsActiveAssociation,
</if>
<if test="parentId != null">
ParentId,
</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="code != null">
#{code,jdbcType=VARCHAR},
</if>
<if test="path != null">
#{path,jdbcType=VARCHAR},
</if>
<if test="reportType != null">
#{reportType,jdbcType=INTEGER},
</if>
<if test="templateGroupID != null">
#{templateGroupID,jdbcType=VARCHAR},
</if>
<if test="orderIndex != null">
#{orderIndex,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="isSystemType != null">
#{isSystemType,jdbcType=INTEGER},
</if>
<if test="isActiveAssociation != null">
#{isActiveAssociation,jdbcType=INTEGER},
</if>
<if test="parentId != null">
#{parentId,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="pwc.taxtech.atms.entitiy.TemplateExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select count(*) from 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.
-->
update Template
<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.code != null">
Code = #{record.code,jdbcType=VARCHAR},
</if>
<if test="record.path != null">
Path = #{record.path,jdbcType=VARCHAR},
</if>
<if test="record.reportType != null">
ReportType = #{record.reportType,jdbcType=INTEGER},
</if>
<if test="record.templateGroupID != null">
TemplateGroupID = #{record.templateGroupID,jdbcType=VARCHAR},
</if>
<if test="record.orderIndex != null">
OrderIndex = #{record.orderIndex,jdbcType=INTEGER},
</if>
<if test="record.createTime != null">
CreateTime = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.updateTime != null">
UpdateTime = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.isSystemType != null">
IsSystemType = #{record.isSystemType,jdbcType=INTEGER},
</if>
<if test="record.isActiveAssociation != null">
IsActiveAssociation = #{record.isActiveAssociation,jdbcType=INTEGER},
</if>
<if test="record.parentId != null">
ParentId = #{record.parentId,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.
-->
update Template
set ID = #{record.ID,jdbcType=VARCHAR},
Name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.code != null">
Code = #{record.code,jdbcType=VARCHAR},
</if>
<if test="record.path != null">
Path = #{record.path,jdbcType=VARCHAR},
</if>
<if test="record.reportType != null">
ReportType = #{record.reportType,jdbcType=INTEGER},
</if>
<if test="record.templateGroupID != null">
TemplateGroupID = #{record.templateGroupID,jdbcType=VARCHAR},
</if>
<if test="record.orderIndex != null">
OrderIndex = #{record.orderIndex,jdbcType=INTEGER},
</if>
<if test="record.createTime != null">
CreateTime = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.updateTime != null">
UpdateTime = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.isSystemType != null">
IsSystemType = #{record.isSystemType,jdbcType=INTEGER},
</if>
<if test="record.isActiveAssociation != null">
IsActiveAssociation = #{record.isActiveAssociation,jdbcType=INTEGER},
</if>
<if test="record.parentId != null">
ParentId = #{record.parentId,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.
-->
update Template
set ID = #{record.ID,jdbcType=VARCHAR},
Name = #{record.name,jdbcType=VARCHAR},
Code = #{record.code,jdbcType=VARCHAR},
Path = #{record.path,jdbcType=VARCHAR},
ReportType = #{record.reportType,jdbcType=INTEGER},
TemplateGroupID = #{record.templateGroupID,jdbcType=VARCHAR},
OrderIndex = #{record.orderIndex,jdbcType=INTEGER},
CreateTime = #{record.createTime,jdbcType=TIMESTAMP},
UpdateTime = #{record.updateTime,jdbcType=TIMESTAMP},
IsSystemType = #{record.isSystemType,jdbcType=INTEGER},
IsActiveAssociation = #{record.isActiveAssociation,jdbcType=INTEGER},
ParentId = #{record.parentId,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="pwc.taxtech.atms.entitiy.Template">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update Template
<set>
<if test="name != null">
Name = #{name,jdbcType=VARCHAR},
</if>
<if test="code != null">
ParentId = #{record.parentId,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause"/>
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="pwc.taxtech.atms.entitiy.Template">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update Template
<set>
<if test="name != null">
Name = #{name,jdbcType=VARCHAR},
</if>
<if test="code != null">
Code = #{code,jdbcType=VARCHAR},
</if>
<if test="path != null">
Path = #{path,jdbcType=VARCHAR},
</if>
<if test="reportType != null">
ReportType = #{reportType,jdbcType=INTEGER},
</if>
<if test="templateGroupID != null">
TemplateGroupID = #{templateGroupID,jdbcType=VARCHAR},
</if>
<if test="orderIndex != null">
OrderIndex = #{orderIndex,jdbcType=INTEGER},
</if>
<if test="createTime != null">
CreateTime = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
UpdateTime = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="isSystemType != null">
IsSystemType = #{isSystemType,jdbcType=INTEGER},
</if>
<if test="isActiveAssociation != null">
IsActiveAssociation = #{isActiveAssociation,jdbcType=INTEGER},
</if>
<if test="parentId != null">
ParentId = #{parentId,jdbcType=VARCHAR},
</if>
</set>
where ID = #{ID,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.entitiy.Template">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update Template
set Name = #{name,jdbcType=VARCHAR},
Code = #{code,jdbcType=VARCHAR},
</if>
<if test="path != null">
Path = #{path,jdbcType=VARCHAR},
</if>
<if test="reportType != null">
ReportType = #{reportType,jdbcType=INTEGER},
</if>
<if test="templateGroupID != null">
TemplateGroupID = #{templateGroupID,jdbcType=VARCHAR},
</if>
<if test="orderIndex != null">
OrderIndex = #{orderIndex,jdbcType=INTEGER},
</if>
<if test="createTime != null">
CreateTime = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
UpdateTime = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="isSystemType != null">
IsSystemType = #{isSystemType,jdbcType=INTEGER},
</if>
<if test="isActiveAssociation != null">
IsActiveAssociation = #{isActiveAssociation,jdbcType=INTEGER},
</if>
<if test="parentId != null">
ParentId = #{parentId,jdbcType=VARCHAR},
</if>
</set>
where ID = #{ID,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.entitiy.Template">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update Template
set Name = #{name,jdbcType=VARCHAR},
Code = #{code,jdbcType=VARCHAR},
Path = #{path,jdbcType=VARCHAR},
ReportType = #{reportType,jdbcType=INTEGER},
TemplateGroupID = #{templateGroupID,jdbcType=VARCHAR},
OrderIndex = #{orderIndex,jdbcType=INTEGER},
CreateTime = #{createTime,jdbcType=TIMESTAMP},
UpdateTime = #{updateTime,jdbcType=TIMESTAMP},
IsSystemType = #{isSystemType,jdbcType=INTEGER},
IsActiveAssociation = #{isActiveAssociation,jdbcType=INTEGER},
ParentId = #{parentId,jdbcType=VARCHAR}
where ID = #{ID,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="pwc.taxtech.atms.entitiy.TemplateExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from Template
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<resultMap id="TemplateUniqDto" type="pwc.taxtech.atms.dto.TemplateUniqDto">
<id column="ID" jdbcType="VARCHAR" property="ID" />
<result column="Code" jdbcType="VARCHAR" property="Code" />
<result column="Name" jdbcType="VARCHAR" property="Name" />
<result column="OrderIndex" jdbcType="INTEGER" property="OrderIndex" />
<result column="ReportType" jdbcType="INTEGER" property="ReportType" />
<result column="TemplateGroupID" jdbcType="VARCHAR" property="TemplateGroupID" />
<result column="TemplateGroupName" jdbcType="VARCHAR" property="TemplateGroupName" />
<result column="ParentID" jdbcType="VARCHAR" property="ParentID" />
<result column="ParentName" jdbcType="VARCHAR" property="ParentName" />
<result column="PayTaxType" jdbcType="INTEGER" property="PayTaxType" />
<result column="IndustryIDs" jdbcType="VARCHAR" property="IndustryIDs" />
<result column="ServiceTypeID" jdbcType="VARCHAR" property="ServiceTypeID" />
<result column="IsActiveAssociation" jdbcType="INTEGER" property="IsActiveAssociation" />
</resultMap>
ParentId = #{parentId,jdbcType=VARCHAR}
where ID = #{ID,jdbcType=VARCHAR}
</update>
<select id="selectByExampleWithRowbounds" parameterType="pwc.taxtech.atms.entitiy.TemplateExample"
resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List"/>
from Template
<if test="_parameter != null">
<include refid="Example_Where_Clause"/>
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="getTemplateUniqDtosByTemplateAndTemplateGroup" parameterType="map" resultMap="TemplateUniqDto" >
SELECT p.ID,p.Code,p.Name,p.ReportType,q.ID as TemplateGroupID,q.Name as TemplateGroupName,p.IsActiveAssociation FROM Template p join TemplateGroup q on p.templategroupID=q.ID
<if test="serviceTypeID!=null">
WHERE q.ServiceTypeID=#{serviceTypeID,jdbcType=VARCHAR}
</if>
<if test="payTaxType!=null">
AND q.PayTaxType = #{payTaxType,jdbcType=INTEGER}
</if>
<if test="reportType!=null">
AND p.ReportType =#{reportType,jdbcType=INTEGER}
</if>
<if test="industryIDs!=null">
AND q.IndustryIDs =#{industryID,jdbcType=VARCHAR}
</if>
ORDER BY p.TemplateGroupID, p.OrderIndex
</select>
<resultMap id="TemplateAndGroupDbDto" type="pwc.taxtech.atms.dto.TemplateAndGroupDbDto">
<id column="ID" jdbcType="VARCHAR" property="templateID"/>
<result column="templateGroupID" jdbcType="VARCHAR" property="templateGroupID"/>
<result column="templateCode" jdbcType="VARCHAR" property="templateCode"/>
</resultMap>
<select id="getTemplateAndGroupByID" parameterType="java.lang.String" resultMap="TemplateAndGroupDbDto">
<resultMap id="TemplateUniqDto" type="pwc.taxtech.atms.dto.TemplateUniqDto">
<id column="ID" jdbcType="VARCHAR" property="ID"/>
<result column="Code" jdbcType="VARCHAR" property="Code"/>
<result column="Name" jdbcType="VARCHAR" property="Name"/>
<result column="OrderIndex" jdbcType="INTEGER" property="OrderIndex"/>
<result column="ReportType" jdbcType="INTEGER" property="ReportType"/>
<result column="TemplateGroupID" jdbcType="VARCHAR" property="TemplateGroupID"/>
<result column="TemplateGroupName" jdbcType="VARCHAR" property="TemplateGroupName"/>
<result column="ParentID" jdbcType="VARCHAR" property="ParentID"/>
<result column="ParentName" jdbcType="VARCHAR" property="ParentName"/>
<result column="PayTaxType" jdbcType="INTEGER" property="PayTaxType"/>
<result column="IndustryIDs" jdbcType="VARCHAR" property="IndustryIDs"/>
<result column="ServiceTypeID" jdbcType="VARCHAR" property="ServiceTypeID"/>
<result column="IsActiveAssociation" jdbcType="INTEGER" property="IsActiveAssociation"/>
</resultMap>
<select id="getTemplateUniqDtosByTemplateAndTemplateGroup" parameterType="map" resultMap="TemplateUniqDto">
SELECT p.ID,p.Code,p.Name,p.ReportType,q.ID as TemplateGroupID,q.Name as TemplateGroupName,p.IsActiveAssociation
FROM Template p join TemplateGroup q on p.templategroupID=q.ID
<where>
<if test="serviceTypeID!=null">
WHERE q.ServiceTypeID=#{serviceTypeID,jdbcType=VARCHAR}
</if>
<if test="payTaxType!=null">
AND q.PayTaxType = #{payTaxType,jdbcType=INTEGER}
</if>
<if test="reportType!=null">
AND p.ReportType =#{reportType,jdbcType=INTEGER}
</if>
<if test="industryIDs!=null">
AND q.IndustryIDs =#{industryID,jdbcType=VARCHAR}
</if>
</where>
ORDER BY p.TemplateGroupID, p.OrderIndex
</select>
<resultMap id="TemplateAndGroupDbDto" type="pwc.taxtech.atms.dto.TemplateAndGroupDbDto">
<id column="ID" jdbcType="VARCHAR" property="templateID"/>
<result column="templateGroupID" jdbcType="VARCHAR" property="templateGroupID"/>
<result column="templateCode" jdbcType="VARCHAR" property="templateCode"/>
</resultMap>
<select id="getTemplateAndGroupByID" parameterType="java.lang.String" resultMap="TemplateAndGroupDbDto">
SELECT p.ID as ID,q.ID as templateGroupID,p.Code as templateCode FROM Template p JOIN TemplateGroup q on p.TemplateGroupID=q.ID WHERE p.ID=#{ID,jdbcType=VARCHAR} LIMIT 1
</select>
<select id="getCountOfTemplateAndGroupByTemplateName" parameterType="map" resultType="java.lang.Long">
SELECT COUNT(1) FROM Template p join TemplateGroup q on p.TemplateGroupID=q.ID
<if test="templateGroupID!=null">
WHERE q.ID = #{templateGroupID,jdbcType=VARCHAR}
</if>
<if test="templateID!=null">
AND p.ID<>#{templateID,jdbcType=VARCHAR}
</if>
<if test="templateName!=null">
AND p.Name= #{templateName,jdbcType=VARCHAR}
</if>
</select>
<select id="getCountOfTemplateAndGroupByTemplateName" parameterType="map" resultType="java.lang.Long">
SELECT COUNT(1) FROM Template p join TemplateGroup q on p.TemplateGroupID=q.ID
<where>
<if test="templateGroupID!=null">
AND q.ID = #{templateGroupID,jdbcType=VARCHAR}
</if>
<if test="templateID!=null">
AND p.ID&lt;&gt;#{templateID,jdbcType=VARCHAR}
</if>
<if test="templateName!=null">
AND p.Name= #{templateName,jdbcType=VARCHAR}
</if>
</where>
</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