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"?> <?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"> <!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"> <mapper namespace="pwc.taxtech.atms.dao.TemplateGroupMapper">
<resultMap id="BaseResultMap" type="pwc.taxtech.atms.entitiy.TemplateGroup"> <resultMap id="BaseResultMap" type="pwc.taxtech.atms.entitiy.TemplateGroup">
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
--> -->
<id column="ID" jdbcType="VARCHAR" property="ID" /> <id column="ID" jdbcType="VARCHAR" property="ID"/>
<result column="Name" jdbcType="VARCHAR" property="name" /> <result column="Name" jdbcType="VARCHAR" property="name"/>
<result column="ServiceTypeID" jdbcType="VARCHAR" property="serviceTypeID" /> <result column="ServiceTypeID" jdbcType="VARCHAR" property="serviceTypeID"/>
<result column="IndustryIDs" jdbcType="VARCHAR" property="industryIDs" /> <result column="IndustryIDs" jdbcType="VARCHAR" property="industryIDs"/>
<result column="PayTaxType" jdbcType="INTEGER" property="payTaxType" /> <result column="PayTaxType" jdbcType="INTEGER" property="payTaxType"/>
<result column="GroupType" jdbcType="INTEGER" property="groupType" /> <result column="GroupType" jdbcType="INTEGER" property="groupType"/>
<result column="CopyFrom" jdbcType="VARCHAR" property="copyFrom" /> <result column="CopyFrom" jdbcType="VARCHAR" property="copyFrom"/>
<result column="UpdateTime" jdbcType="TIMESTAMP" property="updateTime" /> <result column="UpdateTime" jdbcType="TIMESTAMP" property="updateTime"/>
<result column="CreateTime" jdbcType="TIMESTAMP" property="createTime" /> <result column="CreateTime" jdbcType="TIMESTAMP" property="createTime"/>
<result column="IsSystemType" jdbcType="INTEGER" property="isSystemType" /> <result column="IsSystemType" jdbcType="INTEGER" property="isSystemType"/>
</resultMap> </resultMap>
<sql id="Example_Where_Clause"> <sql id="Example_Where_Clause">
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
--> -->
<where> <where>
<foreach collection="oredCriteria" item="criteria" separator="or"> <foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid"> <if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")"> <trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion"> <foreach collection="criteria.criteria" item="criterion">
<choose> <choose>
<when test="criterion.noValue"> <when test="criterion.noValue">
and ${criterion.condition} and ${criterion.condition}
</when> </when>
<when test="criterion.singleValue"> <when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value} and ${criterion.condition} #{criterion.value}
</when> </when>
<when test="criterion.betweenValue"> <when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when> </when>
<when test="criterion.listValue"> <when test="criterion.listValue">
and ${criterion.condition} and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> <foreach close=")" collection="criterion.value" item="listItem" open="("
#{listItem} separator=",">
</foreach> #{listItem}
</when> </foreach>
</choose> </when>
</choose>
</foreach>
</trim>
</if>
</foreach> </foreach>
</trim> </where>
</if> </sql>
</foreach> <sql id="Update_By_Example_Where_Clause">
</where> <!--
</sql> WARNING - @mbg.generated
<sql id="Update_By_Example_Where_Clause"> This element is automatically generated by MyBatis Generator, do not modify.
<!-- -->
WARNING - @mbg.generated <where>
This element is automatically generated by MyBatis Generator, do not modify. <foreach collection="example.oredCriteria" item="criteria" separator="or">
--> <if test="criteria.valid">
<where> <trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="example.oredCriteria" item="criteria" separator="or"> <foreach collection="criteria.criteria" item="criterion">
<if test="criteria.valid"> <choose>
<trim prefix="(" prefixOverrides="and" suffix=")"> <when test="criterion.noValue">
<foreach collection="criteria.criteria" item="criterion"> and ${criterion.condition}
<choose> </when>
<when test="criterion.noValue"> <when test="criterion.singleValue">
and ${criterion.condition} and ${criterion.condition} #{criterion.value}
</when> </when>
<when test="criterion.singleValue"> <when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when> </when>
<when test="criterion.betweenValue"> <when test="criterion.listValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} and ${criterion.condition}
</when> <foreach close=")" collection="criterion.value" item="listItem" open="("
<when test="criterion.listValue"> separator=",">
and ${criterion.condition} #{listItem}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> </foreach>
#{listItem} </when>
</foreach> </choose>
</when> </foreach>
</choose> </trim>
</if>
</foreach> </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> </if>
</foreach> </select>
</where> <update id="updateByExampleSelective" parameterType="map">
</sql> <!--
<sql id="Base_Column_List"> WARNING - @mbg.generated
<!-- This element is automatically generated by MyBatis Generator, do not modify.
WARNING - @mbg.generated -->
This element is automatically generated by MyBatis Generator, do not modify. update TemplateGroup
--> <set>
ID, Name, ServiceTypeID, IndustryIDs, PayTaxType, GroupType, CopyFrom, UpdateTime, <if test="record.ID != null">
CreateTime, IsSystemType ID = #{record.ID,jdbcType=VARCHAR},
</sql> </if>
<select id="selectByExample" parameterType="pwc.taxtech.atms.entitiy.TemplateGroupExample" resultMap="BaseResultMap"> <if test="record.name != null">
<!-- Name = #{record.name,jdbcType=VARCHAR},
WARNING - @mbg.generated </if>
This element is automatically generated by MyBatis Generator, do not modify. <if test="record.serviceTypeID != null">
--> ServiceTypeID = #{record.serviceTypeID,jdbcType=VARCHAR},
select </if>
<if test="distinct"> <if test="record.industryIDs != null">
distinct IndustryIDs = #{record.industryIDs,jdbcType=VARCHAR},
</if> </if>
<include refid="Base_Column_List" /> <if test="record.payTaxType != null">
from TemplateGroup PayTaxType = #{record.payTaxType,jdbcType=INTEGER},
<if test="_parameter != null"> </if>
<include refid="Example_Where_Clause" /> <if test="record.groupType != null">
</if> GroupType = #{record.groupType,jdbcType=INTEGER},
<if test="orderByClause != null"> </if>
order by ${orderByClause} <if test="record.copyFrom != null">
</if> CopyFrom = #{record.copyFrom,jdbcType=VARCHAR},
</select> </if>
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap"> <if test="record.updateTime != null">
<!-- UpdateTime = #{record.updateTime,jdbcType=TIMESTAMP},
WARNING - @mbg.generated </if>
This element is automatically generated by MyBatis Generator, do not modify. <if test="record.createTime != null">
--> CreateTime = #{record.createTime,jdbcType=TIMESTAMP},
select </if>
<include refid="Base_Column_List" /> <if test="record.isSystemType != null">
from TemplateGroup IsSystemType = #{record.isSystemType,jdbcType=INTEGER},
where ID = #{ID,jdbcType=VARCHAR} </if>
</select> </set>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String"> <if test="_parameter != null">
<!-- <include refid="Update_By_Example_Where_Clause"/>
WARNING - @mbg.generated </if>
This element is automatically generated by MyBatis Generator, do not modify. </update>
--> <update id="updateByExample" parameterType="map">
delete from TemplateGroup <!--
where ID = #{ID,jdbcType=VARCHAR} WARNING - @mbg.generated
</delete> This element is automatically generated by MyBatis Generator, do not modify.
<delete id="deleteByExample" parameterType="pwc.taxtech.atms.entitiy.TemplateGroupExample"> -->
<!-- update TemplateGroup
WARNING - @mbg.generated set ID = #{record.ID,jdbcType=VARCHAR},
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">
Name = #{record.name,jdbcType=VARCHAR}, Name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.serviceTypeID != null">
ServiceTypeID = #{record.serviceTypeID,jdbcType=VARCHAR}, ServiceTypeID = #{record.serviceTypeID,jdbcType=VARCHAR},
</if>
<if test="record.industryIDs != null">
IndustryIDs = #{record.industryIDs,jdbcType=VARCHAR}, IndustryIDs = #{record.industryIDs,jdbcType=VARCHAR},
</if>
<if test="record.payTaxType != null">
PayTaxType = #{record.payTaxType,jdbcType=INTEGER}, PayTaxType = #{record.payTaxType,jdbcType=INTEGER},
</if>
<if test="record.groupType != null">
GroupType = #{record.groupType,jdbcType=INTEGER}, GroupType = #{record.groupType,jdbcType=INTEGER},
</if>
<if test="record.copyFrom != null">
CopyFrom = #{record.copyFrom,jdbcType=VARCHAR}, CopyFrom = #{record.copyFrom,jdbcType=VARCHAR},
</if>
<if test="record.updateTime != null">
UpdateTime = #{record.updateTime,jdbcType=TIMESTAMP}, UpdateTime = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.createTime != null">
CreateTime = #{record.createTime,jdbcType=TIMESTAMP}, CreateTime = #{record.createTime,jdbcType=TIMESTAMP},
</if> IsSystemType = #{record.isSystemType,jdbcType=INTEGER}
<if test="record.isSystemType != null"> <if test="_parameter != null">
IsSystemType = #{record.isSystemType,jdbcType=INTEGER}, <include refid="Update_By_Example_Where_Clause"/>
</if> </if>
</set> </update>
<if test="_parameter != null"> <update id="updateByPrimaryKeySelective" parameterType="pwc.taxtech.atms.entitiy.TemplateGroup">
<include refid="Update_By_Example_Where_Clause" /> <!--
</if> WARNING - @mbg.generated
</update> This element is automatically generated by MyBatis Generator, do not modify.
<update id="updateByExample" parameterType="map"> -->
<!-- update TemplateGroup
WARNING - @mbg.generated <set>
This element is automatically generated by MyBatis Generator, do not modify. <if test="name != null">
--> Name = #{name,jdbcType=VARCHAR},
update TemplateGroup </if>
set ID = #{record.ID,jdbcType=VARCHAR}, <if test="serviceTypeID != null">
Name = #{record.name,jdbcType=VARCHAR}, ServiceTypeID = #{serviceTypeID,jdbcType=VARCHAR},
ServiceTypeID = #{record.serviceTypeID,jdbcType=VARCHAR}, </if>
IndustryIDs = #{record.industryIDs,jdbcType=VARCHAR}, <if test="industryIDs != null">
PayTaxType = #{record.payTaxType,jdbcType=INTEGER}, IndustryIDs = #{industryIDs,jdbcType=VARCHAR},
GroupType = #{record.groupType,jdbcType=INTEGER}, </if>
CopyFrom = #{record.copyFrom,jdbcType=VARCHAR}, <if test="payTaxType != null">
UpdateTime = #{record.updateTime,jdbcType=TIMESTAMP}, PayTaxType = #{payTaxType,jdbcType=INTEGER},
CreateTime = #{record.createTime,jdbcType=TIMESTAMP}, </if>
IsSystemType = #{record.isSystemType,jdbcType=INTEGER} <if test="groupType != null">
<if test="_parameter != null"> GroupType = #{groupType,jdbcType=INTEGER},
<include refid="Update_By_Example_Where_Clause" /> </if>
</if> <if test="copyFrom != null">
</update> CopyFrom = #{copyFrom,jdbcType=VARCHAR},
<update id="updateByPrimaryKeySelective" parameterType="pwc.taxtech.atms.entitiy.TemplateGroup"> </if>
<!-- <if test="updateTime != null">
WARNING - @mbg.generated UpdateTime = #{updateTime,jdbcType=TIMESTAMP},
This element is automatically generated by MyBatis Generator, do not modify. </if>
--> <if test="createTime != null">
update TemplateGroup CreateTime = #{createTime,jdbcType=TIMESTAMP},
<set> </if>
<if test="name != null"> <if test="isSystemType != null">
Name = #{name,jdbcType=VARCHAR}, IsSystemType = #{isSystemType,jdbcType=INTEGER},
</if> </if>
<if test="serviceTypeID != null"> </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}, ServiceTypeID = #{serviceTypeID,jdbcType=VARCHAR},
</if>
<if test="industryIDs != null">
IndustryIDs = #{industryIDs,jdbcType=VARCHAR}, IndustryIDs = #{industryIDs,jdbcType=VARCHAR},
</if>
<if test="payTaxType != null">
PayTaxType = #{payTaxType,jdbcType=INTEGER}, PayTaxType = #{payTaxType,jdbcType=INTEGER},
</if>
<if test="groupType != null">
GroupType = #{groupType,jdbcType=INTEGER}, GroupType = #{groupType,jdbcType=INTEGER},
</if>
<if test="copyFrom != null">
CopyFrom = #{copyFrom,jdbcType=VARCHAR}, CopyFrom = #{copyFrom,jdbcType=VARCHAR},
</if>
<if test="updateTime != null">
UpdateTime = #{updateTime,jdbcType=TIMESTAMP}, UpdateTime = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="createTime != null">
CreateTime = #{createTime,jdbcType=TIMESTAMP}, CreateTime = #{createTime,jdbcType=TIMESTAMP},
</if> IsSystemType = #{isSystemType,jdbcType=INTEGER}
<if test="isSystemType != null"> where ID = #{ID,jdbcType=VARCHAR}
IsSystemType = #{isSystemType,jdbcType=INTEGER}, </update>
</if> <select id="selectByExampleWithRowbounds" parameterType="pwc.taxtech.atms.entitiy.TemplateGroupExample"
</set> resultMap="BaseResultMap">
where ID = #{ID,jdbcType=VARCHAR} <!--
</update> WARNING - @mbg.generated
<update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.entitiy.TemplateGroup"> This element is automatically generated by MyBatis Generator, do not modify.
<!-- -->
WARNING - @mbg.generated select
This element is automatically generated by MyBatis Generator, do not modify. <if test="distinct">
--> distinct
update TemplateGroup </if>
set Name = #{name,jdbcType=VARCHAR}, <include refid="Base_Column_List"/>
ServiceTypeID = #{serviceTypeID,jdbcType=VARCHAR}, from TemplateGroup
IndustryIDs = #{industryIDs,jdbcType=VARCHAR}, <if test="_parameter != null">
PayTaxType = #{payTaxType,jdbcType=INTEGER}, <include refid="Example_Where_Clause"/>
GroupType = #{groupType,jdbcType=INTEGER}, </if>
CopyFrom = #{copyFrom,jdbcType=VARCHAR}, <if test="orderByClause != null">
UpdateTime = #{updateTime,jdbcType=TIMESTAMP}, order by ${orderByClause}
CreateTime = #{createTime,jdbcType=TIMESTAMP}, </if>
IsSystemType = #{isSystemType,jdbcType=INTEGER} </select>
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> </mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?> <?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"> <!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"> <mapper namespace="pwc.taxtech.atms.dao.TemplateMapper">
<resultMap id="BaseResultMap" type="pwc.taxtech.atms.entitiy.Template"> <resultMap id="BaseResultMap" type="pwc.taxtech.atms.entitiy.Template">
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
--> -->
<id column="ID" jdbcType="VARCHAR" property="ID" /> <id column="ID" jdbcType="VARCHAR" property="ID"/>
<result column="Name" jdbcType="VARCHAR" property="name" /> <result column="Name" jdbcType="VARCHAR" property="name"/>
<result column="Code" jdbcType="VARCHAR" property="code" /> <result column="Code" jdbcType="VARCHAR" property="code"/>
<result column="Path" jdbcType="VARCHAR" property="path" /> <result column="Path" jdbcType="VARCHAR" property="path"/>
<result column="ReportType" jdbcType="INTEGER" property="reportType" /> <result column="ReportType" jdbcType="INTEGER" property="reportType"/>
<result column="TemplateGroupID" jdbcType="VARCHAR" property="templateGroupID" /> <result column="TemplateGroupID" jdbcType="VARCHAR" property="templateGroupID"/>
<result column="OrderIndex" jdbcType="INTEGER" property="orderIndex" /> <result column="OrderIndex" jdbcType="INTEGER" property="orderIndex"/>
<result column="CreateTime" jdbcType="TIMESTAMP" property="createTime" /> <result column="CreateTime" jdbcType="TIMESTAMP" property="createTime"/>
<result column="UpdateTime" jdbcType="TIMESTAMP" property="updateTime" /> <result column="UpdateTime" jdbcType="TIMESTAMP" property="updateTime"/>
<result column="IsSystemType" jdbcType="INTEGER" property="isSystemType" /> <result column="IsSystemType" jdbcType="INTEGER" property="isSystemType"/>
<result column="IsActiveAssociation" jdbcType="INTEGER" property="isActiveAssociation" /> <result column="IsActiveAssociation" jdbcType="INTEGER" property="isActiveAssociation"/>
<result column="ParentId" jdbcType="VARCHAR" property="parentId" /> <result column="ParentId" jdbcType="VARCHAR" property="parentId"/>
</resultMap> </resultMap>
<sql id="Example_Where_Clause"> <sql id="Example_Where_Clause">
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
--> -->
<where> <where>
<foreach collection="oredCriteria" item="criteria" separator="or"> <foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid"> <if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")"> <trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion"> <foreach collection="criteria.criteria" item="criterion">
<choose> <choose>
<when test="criterion.noValue"> <when test="criterion.noValue">
and ${criterion.condition} and ${criterion.condition}
</when> </when>
<when test="criterion.singleValue"> <when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value} and ${criterion.condition} #{criterion.value}
</when> </when>
<when test="criterion.betweenValue"> <when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when> </when>
<when test="criterion.listValue"> <when test="criterion.listValue">
and ${criterion.condition} and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> <foreach close=")" collection="criterion.value" item="listItem" open="("
#{listItem} separator=",">
</foreach> #{listItem}
</when> </foreach>
</choose> </when>
</choose>
</foreach>
</trim>
</if>
</foreach> </foreach>
</trim> </where>
</if> </sql>
</foreach> <sql id="Update_By_Example_Where_Clause">
</where> <!--
</sql> WARNING - @mbg.generated
<sql id="Update_By_Example_Where_Clause"> This element is automatically generated by MyBatis Generator, do not modify.
<!-- -->
WARNING - @mbg.generated <where>
This element is automatically generated by MyBatis Generator, do not modify. <foreach collection="example.oredCriteria" item="criteria" separator="or">
--> <if test="criteria.valid">
<where> <trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="example.oredCriteria" item="criteria" separator="or"> <foreach collection="criteria.criteria" item="criterion">
<if test="criteria.valid"> <choose>
<trim prefix="(" prefixOverrides="and" suffix=")"> <when test="criterion.noValue">
<foreach collection="criteria.criteria" item="criterion"> and ${criterion.condition}
<choose> </when>
<when test="criterion.noValue"> <when test="criterion.singleValue">
and ${criterion.condition} and ${criterion.condition} #{criterion.value}
</when> </when>
<when test="criterion.singleValue"> <when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when> </when>
<when test="criterion.betweenValue"> <when test="criterion.listValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} and ${criterion.condition}
</when> <foreach close=")" collection="criterion.value" item="listItem" open="("
<when test="criterion.listValue"> separator=",">
and ${criterion.condition} #{listItem}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> </foreach>
#{listItem} </when>
</foreach> </choose>
</when> </foreach>
</choose> </trim>
</if>
</foreach> </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> </if>
</foreach> <include refid="Base_Column_List"/>
</where> from Template
</sql> <if test="_parameter != null">
<sql id="Base_Column_List"> <include refid="Example_Where_Clause"/>
<!-- </if>
WARNING - @mbg.generated <if test="orderByClause != null">
This element is automatically generated by MyBatis Generator, do not modify. order by ${orderByClause}
--> </if>
ID, Name, Code, Path, ReportType, TemplateGroupID, OrderIndex, CreateTime, UpdateTime, </select>
IsSystemType, IsActiveAssociation, ParentId <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
</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.
WARNING - @mbg.generated -->
This element is automatically generated by MyBatis Generator, do not modify. select
--> <include refid="Base_Column_List"/>
select from Template
<if test="distinct"> where ID = #{ID,jdbcType=VARCHAR}
distinct </select>
</if> <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
<include refid="Base_Column_List" /> <!--
from Template WARNING - @mbg.generated
<if test="_parameter != null"> This element is automatically generated by MyBatis Generator, do not modify.
<include refid="Example_Where_Clause" /> -->
</if> delete from Template
<if test="orderByClause != null"> where ID = #{ID,jdbcType=VARCHAR}
order by ${orderByClause} </delete>
</if> <delete id="deleteByExample" parameterType="pwc.taxtech.atms.entitiy.TemplateExample">
</select> <!--
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap"> WARNING - @mbg.generated
<!-- This element is automatically generated by MyBatis Generator, do not modify.
WARNING - @mbg.generated -->
This element is automatically generated by MyBatis Generator, do not modify. delete from Template
--> <if test="_parameter != null">
select <include refid="Example_Where_Clause"/>
<include refid="Base_Column_List" /> </if>
from Template </delete>
where ID = #{ID,jdbcType=VARCHAR} <insert id="insert" parameterType="pwc.taxtech.atms.entitiy.Template">
</select> <!--
<delete id="deleteByPrimaryKey" parameterType="java.lang.String"> WARNING - @mbg.generated
<!-- This element is automatically generated by MyBatis Generator, do not modify.
WARNING - @mbg.generated -->
This element is automatically generated by MyBatis Generator, do not modify. insert into Template (ID, Name, Code,
--> Path, ReportType, TemplateGroupID,
delete from Template OrderIndex, CreateTime, UpdateTime,
where ID = #{ID,jdbcType=VARCHAR} IsSystemType, IsActiveAssociation, ParentId
</delete> )
<delete id="deleteByExample" parameterType="pwc.taxtech.atms.entitiy.TemplateExample"> values (#{ID,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR},
<!-- #{path,jdbcType=VARCHAR}, #{reportType,jdbcType=INTEGER}, #{templateGroupID,jdbcType=VARCHAR},
WARNING - @mbg.generated #{orderIndex,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
This element is automatically generated by MyBatis Generator, do not modify. #{isSystemType,jdbcType=INTEGER}, #{isActiveAssociation,jdbcType=INTEGER}, #{parentId,jdbcType=VARCHAR}
--> )
delete from Template </insert>
<if test="_parameter != null"> <insert id="insertSelective" parameterType="pwc.taxtech.atms.entitiy.Template">
<include refid="Example_Where_Clause" /> <!--
</if> WARNING - @mbg.generated
</delete> This element is automatically generated by MyBatis Generator, do not modify.
<insert id="insert" parameterType="pwc.taxtech.atms.entitiy.Template"> -->
<!-- insert into Template
WARNING - @mbg.generated <trim prefix="(" suffix=")" suffixOverrides=",">
This element is automatically generated by MyBatis Generator, do not modify. <if test="ID != null">
--> ID,
insert into Template (ID, Name, Code, </if>
Path, ReportType, TemplateGroupID, <if test="name != null">
OrderIndex, CreateTime, UpdateTime, Name,
IsSystemType, IsActiveAssociation, ParentId </if>
) <if test="code != null">
values (#{ID,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, Code,
#{path,jdbcType=VARCHAR}, #{reportType,jdbcType=INTEGER}, #{templateGroupID,jdbcType=VARCHAR}, </if>
#{orderIndex,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, <if test="path != null">
#{isSystemType,jdbcType=INTEGER}, #{isActiveAssociation,jdbcType=INTEGER}, #{parentId,jdbcType=VARCHAR} Path,
) </if>
</insert> <if test="reportType != null">
<insert id="insertSelective" parameterType="pwc.taxtech.atms.entitiy.Template"> ReportType,
<!-- </if>
WARNING - @mbg.generated <if test="templateGroupID != null">
This element is automatically generated by MyBatis Generator, do not modify. TemplateGroupID,
--> </if>
insert into Template <if test="orderIndex != null">
<trim prefix="(" suffix=")" suffixOverrides=","> OrderIndex,
<if test="ID != null"> </if>
ID, <if test="createTime != null">
</if> CreateTime,
<if test="name != null"> </if>
Name, <if test="updateTime != null">
</if> UpdateTime,
<if test="code != null"> </if>
Code, <if test="isSystemType != null">
</if> IsSystemType,
<if test="path != null"> </if>
Path, <if test="isActiveAssociation != null">
</if> IsActiveAssociation,
<if test="reportType != null"> </if>
ReportType, <if test="parentId != null">
</if> ParentId,
<if test="templateGroupID != null"> </if>
TemplateGroupID, </trim>
</if> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="orderIndex != null"> <if test="ID != null">
OrderIndex, #{ID,jdbcType=VARCHAR},
</if> </if>
<if test="createTime != null"> <if test="name != null">
CreateTime, #{name,jdbcType=VARCHAR},
</if> </if>
<if test="updateTime != null"> <if test="code != null">
UpdateTime, #{code,jdbcType=VARCHAR},
</if> </if>
<if test="isSystemType != null"> <if test="path != null">
IsSystemType, #{path,jdbcType=VARCHAR},
</if> </if>
<if test="isActiveAssociation != null"> <if test="reportType != null">
IsActiveAssociation, #{reportType,jdbcType=INTEGER},
</if> </if>
<if test="parentId != null"> <if test="templateGroupID != null">
ParentId, #{templateGroupID,jdbcType=VARCHAR},
</if> </if>
</trim> <if test="orderIndex != null">
<trim prefix="values (" suffix=")" suffixOverrides=","> #{orderIndex,jdbcType=INTEGER},
<if test="ID != null"> </if>
#{ID,jdbcType=VARCHAR}, <if test="createTime != null">
</if> #{createTime,jdbcType=TIMESTAMP},
<if test="name != null"> </if>
#{name,jdbcType=VARCHAR}, <if test="updateTime != null">
</if> #{updateTime,jdbcType=TIMESTAMP},
<if test="code != null"> </if>
#{code,jdbcType=VARCHAR}, <if test="isSystemType != null">
</if> #{isSystemType,jdbcType=INTEGER},
<if test="path != null"> </if>
#{path,jdbcType=VARCHAR}, <if test="isActiveAssociation != null">
</if> #{isActiveAssociation,jdbcType=INTEGER},
<if test="reportType != null"> </if>
#{reportType,jdbcType=INTEGER}, <if test="parentId != null">
</if> #{parentId,jdbcType=VARCHAR},
<if test="templateGroupID != null"> </if>
#{templateGroupID,jdbcType=VARCHAR}, </trim>
</if> </insert>
<if test="orderIndex != null"> <select id="countByExample" parameterType="pwc.taxtech.atms.entitiy.TemplateExample" resultType="java.lang.Long">
#{orderIndex,jdbcType=INTEGER}, <!--
</if> WARNING - @mbg.generated
<if test="createTime != null"> This element is automatically generated by MyBatis Generator, do not modify.
#{createTime,jdbcType=TIMESTAMP}, -->
</if> select count(*) from Template
<if test="updateTime != null"> <if test="_parameter != null">
#{updateTime,jdbcType=TIMESTAMP}, <include refid="Example_Where_Clause"/>
</if> </if>
<if test="isSystemType != null"> </select>
#{isSystemType,jdbcType=INTEGER}, <update id="updateByExampleSelective" parameterType="map">
</if> <!--
<if test="isActiveAssociation != null"> WARNING - @mbg.generated
#{isActiveAssociation,jdbcType=INTEGER}, This element is automatically generated by MyBatis Generator, do not modify.
</if> -->
<if test="parentId != null"> update Template
#{parentId,jdbcType=VARCHAR}, <set>
</if> <if test="record.ID != null">
</trim> ID = #{record.ID,jdbcType=VARCHAR},
</insert> </if>
<select id="countByExample" parameterType="pwc.taxtech.atms.entitiy.TemplateExample" resultType="java.lang.Long"> <if test="record.name != null">
<!-- Name = #{record.name,jdbcType=VARCHAR},
WARNING - @mbg.generated </if>
This element is automatically generated by MyBatis Generator, do not modify. <if test="record.code != null">
--> Code = #{record.code,jdbcType=VARCHAR},
select count(*) from Template </if>
<if test="_parameter != null"> <if test="record.path != null">
<include refid="Example_Where_Clause" /> Path = #{record.path,jdbcType=VARCHAR},
</if> </if>
</select> <if test="record.reportType != null">
<update id="updateByExampleSelective" parameterType="map"> ReportType = #{record.reportType,jdbcType=INTEGER},
<!-- </if>
WARNING - @mbg.generated <if test="record.templateGroupID != null">
This element is automatically generated by MyBatis Generator, do not modify. TemplateGroupID = #{record.templateGroupID,jdbcType=VARCHAR},
--> </if>
update Template <if test="record.orderIndex != null">
<set> OrderIndex = #{record.orderIndex,jdbcType=INTEGER},
<if test="record.ID != null"> </if>
ID = #{record.ID,jdbcType=VARCHAR}, <if test="record.createTime != null">
</if> CreateTime = #{record.createTime,jdbcType=TIMESTAMP},
<if test="record.name != null"> </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}, Name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.code != null">
Code = #{record.code,jdbcType=VARCHAR}, Code = #{record.code,jdbcType=VARCHAR},
</if>
<if test="record.path != null">
Path = #{record.path,jdbcType=VARCHAR}, Path = #{record.path,jdbcType=VARCHAR},
</if>
<if test="record.reportType != null">
ReportType = #{record.reportType,jdbcType=INTEGER}, ReportType = #{record.reportType,jdbcType=INTEGER},
</if>
<if test="record.templateGroupID != null">
TemplateGroupID = #{record.templateGroupID,jdbcType=VARCHAR}, TemplateGroupID = #{record.templateGroupID,jdbcType=VARCHAR},
</if>
<if test="record.orderIndex != null">
OrderIndex = #{record.orderIndex,jdbcType=INTEGER}, OrderIndex = #{record.orderIndex,jdbcType=INTEGER},
</if>
<if test="record.createTime != null">
CreateTime = #{record.createTime,jdbcType=TIMESTAMP}, CreateTime = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.updateTime != null">
UpdateTime = #{record.updateTime,jdbcType=TIMESTAMP}, UpdateTime = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.isSystemType != null">
IsSystemType = #{record.isSystemType,jdbcType=INTEGER}, IsSystemType = #{record.isSystemType,jdbcType=INTEGER},
</if>
<if test="record.isActiveAssociation != null">
IsActiveAssociation = #{record.isActiveAssociation,jdbcType=INTEGER}, IsActiveAssociation = #{record.isActiveAssociation,jdbcType=INTEGER},
</if> ParentId = #{record.parentId,jdbcType=VARCHAR}
<if test="record.parentId != null"> <if test="_parameter != null">
ParentId = #{record.parentId,jdbcType=VARCHAR}, <include refid="Update_By_Example_Where_Clause"/>
</if> </if>
</set> </update>
<if test="_parameter != null"> <update id="updateByPrimaryKeySelective" parameterType="pwc.taxtech.atms.entitiy.Template">
<include refid="Update_By_Example_Where_Clause" /> <!--
</if> WARNING - @mbg.generated
</update> This element is automatically generated by MyBatis Generator, do not modify.
<update id="updateByExample" parameterType="map"> -->
<!-- update Template
WARNING - @mbg.generated <set>
This element is automatically generated by MyBatis Generator, do not modify. <if test="name != null">
--> Name = #{name,jdbcType=VARCHAR},
update Template </if>
set ID = #{record.ID,jdbcType=VARCHAR}, <if test="code != null">
Name = #{record.name,jdbcType=VARCHAR}, Code = #{code,jdbcType=VARCHAR},
Code = #{record.code,jdbcType=VARCHAR}, </if>
Path = #{record.path,jdbcType=VARCHAR}, <if test="path != null">
ReportType = #{record.reportType,jdbcType=INTEGER}, Path = #{path,jdbcType=VARCHAR},
TemplateGroupID = #{record.templateGroupID,jdbcType=VARCHAR}, </if>
OrderIndex = #{record.orderIndex,jdbcType=INTEGER}, <if test="reportType != null">
CreateTime = #{record.createTime,jdbcType=TIMESTAMP}, ReportType = #{reportType,jdbcType=INTEGER},
UpdateTime = #{record.updateTime,jdbcType=TIMESTAMP}, </if>
IsSystemType = #{record.isSystemType,jdbcType=INTEGER}, <if test="templateGroupID != null">
IsActiveAssociation = #{record.isActiveAssociation,jdbcType=INTEGER}, TemplateGroupID = #{templateGroupID,jdbcType=VARCHAR},
ParentId = #{record.parentId,jdbcType=VARCHAR} </if>
<if test="_parameter != null"> <if test="orderIndex != null">
<include refid="Update_By_Example_Where_Clause" /> OrderIndex = #{orderIndex,jdbcType=INTEGER},
</if> </if>
</update> <if test="createTime != null">
<update id="updateByPrimaryKeySelective" parameterType="pwc.taxtech.atms.entitiy.Template"> CreateTime = #{createTime,jdbcType=TIMESTAMP},
<!-- </if>
WARNING - @mbg.generated <if test="updateTime != null">
This element is automatically generated by MyBatis Generator, do not modify. UpdateTime = #{updateTime,jdbcType=TIMESTAMP},
--> </if>
update Template <if test="isSystemType != null">
<set> IsSystemType = #{isSystemType,jdbcType=INTEGER},
<if test="name != null"> </if>
Name = #{name,jdbcType=VARCHAR}, <if test="isActiveAssociation != null">
</if> IsActiveAssociation = #{isActiveAssociation,jdbcType=INTEGER},
<if test="code != null"> </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}, Code = #{code,jdbcType=VARCHAR},
</if>
<if test="path != null">
Path = #{path,jdbcType=VARCHAR}, Path = #{path,jdbcType=VARCHAR},
</if>
<if test="reportType != null">
ReportType = #{reportType,jdbcType=INTEGER}, ReportType = #{reportType,jdbcType=INTEGER},
</if>
<if test="templateGroupID != null">
TemplateGroupID = #{templateGroupID,jdbcType=VARCHAR}, TemplateGroupID = #{templateGroupID,jdbcType=VARCHAR},
</if>
<if test="orderIndex != null">
OrderIndex = #{orderIndex,jdbcType=INTEGER}, OrderIndex = #{orderIndex,jdbcType=INTEGER},
</if>
<if test="createTime != null">
CreateTime = #{createTime,jdbcType=TIMESTAMP}, CreateTime = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
UpdateTime = #{updateTime,jdbcType=TIMESTAMP}, UpdateTime = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="isSystemType != null">
IsSystemType = #{isSystemType,jdbcType=INTEGER}, IsSystemType = #{isSystemType,jdbcType=INTEGER},
</if>
<if test="isActiveAssociation != null">
IsActiveAssociation = #{isActiveAssociation,jdbcType=INTEGER}, IsActiveAssociation = #{isActiveAssociation,jdbcType=INTEGER},
</if> ParentId = #{parentId,jdbcType=VARCHAR}
<if test="parentId != null"> where ID = #{ID,jdbcType=VARCHAR}
ParentId = #{parentId,jdbcType=VARCHAR}, </update>
</if> <select id="selectByExampleWithRowbounds" parameterType="pwc.taxtech.atms.entitiy.TemplateExample"
</set> resultMap="BaseResultMap">
where ID = #{ID,jdbcType=VARCHAR} <!--
</update> WARNING - @mbg.generated
<update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.entitiy.Template"> This element is automatically generated by MyBatis Generator, do not modify.
<!-- -->
WARNING - @mbg.generated select
This element is automatically generated by MyBatis Generator, do not modify. <if test="distinct">
--> distinct
update Template </if>
set Name = #{name,jdbcType=VARCHAR}, <include refid="Base_Column_List"/>
Code = #{code,jdbcType=VARCHAR}, from Template
Path = #{path,jdbcType=VARCHAR}, <if test="_parameter != null">
ReportType = #{reportType,jdbcType=INTEGER}, <include refid="Example_Where_Clause"/>
TemplateGroupID = #{templateGroupID,jdbcType=VARCHAR}, </if>
OrderIndex = #{orderIndex,jdbcType=INTEGER}, <if test="orderByClause != null">
CreateTime = #{createTime,jdbcType=TIMESTAMP}, order by ${orderByClause}
UpdateTime = #{updateTime,jdbcType=TIMESTAMP}, </if>
IsSystemType = #{isSystemType,jdbcType=INTEGER}, </select>
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>
<select id="getTemplateUniqDtosByTemplateAndTemplateGroup" parameterType="map" resultMap="TemplateUniqDto" > <resultMap id="TemplateUniqDto" type="pwc.taxtech.atms.dto.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 <id column="ID" jdbcType="VARCHAR" property="ID"/>
<if test="serviceTypeID!=null"> <result column="Code" jdbcType="VARCHAR" property="Code"/>
WHERE q.ServiceTypeID=#{serviceTypeID,jdbcType=VARCHAR} <result column="Name" jdbcType="VARCHAR" property="Name"/>
</if> <result column="OrderIndex" jdbcType="INTEGER" property="OrderIndex"/>
<if test="payTaxType!=null"> <result column="ReportType" jdbcType="INTEGER" property="ReportType"/>
AND q.PayTaxType = #{payTaxType,jdbcType=INTEGER} <result column="TemplateGroupID" jdbcType="VARCHAR" property="TemplateGroupID"/>
</if> <result column="TemplateGroupName" jdbcType="VARCHAR" property="TemplateGroupName"/>
<if test="reportType!=null"> <result column="ParentID" jdbcType="VARCHAR" property="ParentID"/>
AND p.ReportType =#{reportType,jdbcType=INTEGER} <result column="ParentName" jdbcType="VARCHAR" property="ParentName"/>
</if> <result column="PayTaxType" jdbcType="INTEGER" property="PayTaxType"/>
<if test="industryIDs!=null"> <result column="IndustryIDs" jdbcType="VARCHAR" property="IndustryIDs"/>
AND q.IndustryIDs =#{industryID,jdbcType=VARCHAR} <result column="ServiceTypeID" jdbcType="VARCHAR" property="ServiceTypeID"/>
</if> <result column="IsActiveAssociation" jdbcType="INTEGER" property="IsActiveAssociation"/>
ORDER BY p.TemplateGroupID, p.OrderIndex </resultMap>
</select>
<resultMap id="TemplateAndGroupDbDto" type="pwc.taxtech.atms.dto.TemplateAndGroupDbDto"> <select id="getTemplateUniqDtosByTemplateAndTemplateGroup" parameterType="map" resultMap="TemplateUniqDto">
<id column="ID" jdbcType="VARCHAR" property="templateID"/> SELECT p.ID,p.Code,p.Name,p.ReportType,q.ID as TemplateGroupID,q.Name as TemplateGroupName,p.IsActiveAssociation
<result column="templateGroupID" jdbcType="VARCHAR" property="templateGroupID"/> FROM Template p join TemplateGroup q on p.templategroupID=q.ID
<result column="templateCode" jdbcType="VARCHAR" property="templateCode"/> <where>
</resultMap> <if test="serviceTypeID!=null">
<select id="getTemplateAndGroupByID" parameterType="java.lang.String" resultMap="TemplateAndGroupDbDto"> 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 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>
<select id="getCountOfTemplateAndGroupByTemplateName" parameterType="map" resultType="java.lang.Long"> <select id="getCountOfTemplateAndGroupByTemplateName" parameterType="map" resultType="java.lang.Long">
SELECT COUNT(1) FROM Template p join TemplateGroup q on p.TemplateGroupID=q.ID SELECT COUNT(1) FROM Template p join TemplateGroup q on p.TemplateGroupID=q.ID
<if test="templateGroupID!=null"> <where>
WHERE q.ID = #{templateGroupID,jdbcType=VARCHAR} <if test="templateGroupID!=null">
</if> AND q.ID = #{templateGroupID,jdbcType=VARCHAR}
<if test="templateID!=null"> </if>
AND p.ID<>#{templateID,jdbcType=VARCHAR} <if test="templateID!=null">
</if> AND p.ID&lt;&gt;#{templateID,jdbcType=VARCHAR}
<if test="templateName!=null"> </if>
AND p.Name= #{templateName,jdbcType=VARCHAR} <if test="templateName!=null">
</if> AND p.Name= #{templateName,jdbcType=VARCHAR}
</select> </if>
</where>
</select>
</mapper> </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