Commit ad1e5c42 authored by eddie.woo's avatar eddie.woo

fix

parent 0de392d6
......@@ -273,548 +273,4 @@
update_time = #{updateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="pwc.taxtech.atms.entity.WfRecordDetail">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="record_id" jdbcType="BIGINT" property="recordId" />
<result column="act_inst_id" jdbcType="VARCHAR" property="actInstId" />
<result column="act_task_id" jdbcType="VARCHAR" property="actTaskId" />
<result column="uid" jdbcType="VARCHAR" property="uid" />
<result column="status" jdbcType="TINYINT" property="status" />
<result column="comment" jdbcType="VARCHAR" property="comment" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, record_id, act_inst_id, act_task_id, `uid`, `status`, `comment`, create_time,
update_time
</sql>
<select id="selectByExample" parameterType="pwc.taxtech.atms.entity.WfRecordDetailExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from wf_record_detail
<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.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from wf_record_detail
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from wf_record_detail
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="pwc.taxtech.atms.entity.WfRecordDetailExample">
delete from wf_record_detail
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="pwc.taxtech.atms.entity.WfRecordDetail">
insert into wf_record_detail (id, record_id, act_inst_id,
act_task_id, `uid`, `status`,
`comment`, create_time, update_time
)
values (#{id,jdbcType=BIGINT}, #{recordId,jdbcType=BIGINT}, #{actInstId,jdbcType=VARCHAR},
#{actTaskId,jdbcType=VARCHAR}, #{uid,jdbcType=VARCHAR}, #{status,jdbcType=TINYINT},
#{comment,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
)
</insert>
<insert id="insertSelective" parameterType="pwc.taxtech.atms.entity.WfRecordDetail">
insert into wf_record_detail
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="recordId != null">
record_id,
</if>
<if test="actInstId != null">
act_inst_id,
</if>
<if test="actTaskId != null">
act_task_id,
</if>
<if test="uid != null">
`uid`,
</if>
<if test="status != null">
`status`,
</if>
<if test="comment != null">
`comment`,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="recordId != null">
#{recordId,jdbcType=BIGINT},
</if>
<if test="actInstId != null">
#{actInstId,jdbcType=VARCHAR},
</if>
<if test="actTaskId != null">
#{actTaskId,jdbcType=VARCHAR},
</if>
<if test="uid != null">
#{uid,jdbcType=VARCHAR},
</if>
<if test="status != null">
#{status,jdbcType=TINYINT},
</if>
<if test="comment != null">
#{comment,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="pwc.taxtech.atms.entity.WfRecordDetailExample" resultType="java.lang.Long">
select count(*) from wf_record_detail
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update wf_record_detail
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.recordId != null">
record_id = #{record.recordId,jdbcType=BIGINT},
</if>
<if test="record.actInstId != null">
act_inst_id = #{record.actInstId,jdbcType=VARCHAR},
</if>
<if test="record.actTaskId != null">
act_task_id = #{record.actTaskId,jdbcType=VARCHAR},
</if>
<if test="record.uid != null">
`uid` = #{record.uid,jdbcType=VARCHAR},
</if>
<if test="record.status != null">
`status` = #{record.status,jdbcType=TINYINT},
</if>
<if test="record.comment != null">
`comment` = #{record.comment,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.updateTime != null">
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update wf_record_detail
set id = #{record.id,jdbcType=BIGINT},
record_id = #{record.recordId,jdbcType=BIGINT},
act_inst_id = #{record.actInstId,jdbcType=VARCHAR},
act_task_id = #{record.actTaskId,jdbcType=VARCHAR},
`uid` = #{record.uid,jdbcType=VARCHAR},
`status` = #{record.status,jdbcType=TINYINT},
`comment` = #{record.comment,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="pwc.taxtech.atms.entity.WfRecordDetail">
update wf_record_detail
<set>
<if test="recordId != null">
record_id = #{recordId,jdbcType=BIGINT},
</if>
<if test="actInstId != null">
act_inst_id = #{actInstId,jdbcType=VARCHAR},
</if>
<if test="actTaskId != null">
act_task_id = #{actTaskId,jdbcType=VARCHAR},
</if>
<if test="uid != null">
`uid` = #{uid,jdbcType=VARCHAR},
</if>
<if test="status != null">
`status` = #{status,jdbcType=TINYINT},
</if>
<if test="comment != null">
`comment` = #{comment,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.entity.WfRecordDetail">
update wf_record_detail
set record_id = #{recordId,jdbcType=BIGINT},
act_inst_id = #{actInstId,jdbcType=VARCHAR},
act_task_id = #{actTaskId,jdbcType=VARCHAR},
`uid` = #{uid,jdbcType=VARCHAR},
`status` = #{status,jdbcType=TINYINT},
`comment` = #{comment,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="pwc.taxtech.atms.entity.WfRecordDetail">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="record_id" jdbcType="BIGINT" property="recordId" />
<result column="act_inst_id" jdbcType="VARCHAR" property="actInstId" />
<result column="act_task_id" jdbcType="VARCHAR" property="actTaskId" />
<result column="uid" jdbcType="VARCHAR" property="uid" />
<result column="status" jdbcType="TINYINT" property="status" />
<result column="comment" jdbcType="VARCHAR" property="comment" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, record_id, act_inst_id, act_task_id, `uid`, `status`, `comment`, create_time,
update_time
</sql>
<select id="selectByExample" parameterType="pwc.taxtech.atms.entity.WfRecordDetailExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from wf_record_detail
<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.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from wf_record_detail
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from wf_record_detail
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="pwc.taxtech.atms.entity.WfRecordDetailExample">
delete from wf_record_detail
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="pwc.taxtech.atms.entity.WfRecordDetail">
insert into wf_record_detail (id, record_id, act_inst_id,
act_task_id, `uid`, `status`,
`comment`, create_time, update_time
)
values (#{id,jdbcType=BIGINT}, #{recordId,jdbcType=BIGINT}, #{actInstId,jdbcType=VARCHAR},
#{actTaskId,jdbcType=VARCHAR}, #{uid,jdbcType=VARCHAR}, #{status,jdbcType=TINYINT},
#{comment,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
)
</insert>
<insert id="insertSelective" parameterType="pwc.taxtech.atms.entity.WfRecordDetail">
insert into wf_record_detail
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="recordId != null">
record_id,
</if>
<if test="actInstId != null">
act_inst_id,
</if>
<if test="actTaskId != null">
act_task_id,
</if>
<if test="uid != null">
`uid`,
</if>
<if test="status != null">
`status`,
</if>
<if test="comment != null">
`comment`,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="recordId != null">
#{recordId,jdbcType=BIGINT},
</if>
<if test="actInstId != null">
#{actInstId,jdbcType=VARCHAR},
</if>
<if test="actTaskId != null">
#{actTaskId,jdbcType=VARCHAR},
</if>
<if test="uid != null">
#{uid,jdbcType=VARCHAR},
</if>
<if test="status != null">
#{status,jdbcType=TINYINT},
</if>
<if test="comment != null">
#{comment,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="pwc.taxtech.atms.entity.WfRecordDetailExample" resultType="java.lang.Long">
select count(*) from wf_record_detail
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update wf_record_detail
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.recordId != null">
record_id = #{record.recordId,jdbcType=BIGINT},
</if>
<if test="record.actInstId != null">
act_inst_id = #{record.actInstId,jdbcType=VARCHAR},
</if>
<if test="record.actTaskId != null">
act_task_id = #{record.actTaskId,jdbcType=VARCHAR},
</if>
<if test="record.uid != null">
`uid` = #{record.uid,jdbcType=VARCHAR},
</if>
<if test="record.status != null">
`status` = #{record.status,jdbcType=TINYINT},
</if>
<if test="record.comment != null">
`comment` = #{record.comment,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.updateTime != null">
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update wf_record_detail
set id = #{record.id,jdbcType=BIGINT},
record_id = #{record.recordId,jdbcType=BIGINT},
act_inst_id = #{record.actInstId,jdbcType=VARCHAR},
act_task_id = #{record.actTaskId,jdbcType=VARCHAR},
`uid` = #{record.uid,jdbcType=VARCHAR},
`status` = #{record.status,jdbcType=TINYINT},
`comment` = #{record.comment,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="pwc.taxtech.atms.entity.WfRecordDetail">
update wf_record_detail
<set>
<if test="recordId != null">
record_id = #{recordId,jdbcType=BIGINT},
</if>
<if test="actInstId != null">
act_inst_id = #{actInstId,jdbcType=VARCHAR},
</if>
<if test="actTaskId != null">
act_task_id = #{actTaskId,jdbcType=VARCHAR},
</if>
<if test="uid != null">
`uid` = #{uid,jdbcType=VARCHAR},
</if>
<if test="status != null">
`status` = #{status,jdbcType=TINYINT},
</if>
<if test="comment != null">
`comment` = #{comment,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.entity.WfRecordDetail">
update wf_record_detail
set record_id = #{recordId,jdbcType=BIGINT},
act_inst_id = #{actInstId,jdbcType=VARCHAR},
act_task_id = #{actTaskId,jdbcType=VARCHAR},
`uid` = #{uid,jdbcType=VARCHAR},
`status` = #{status,jdbcType=TINYINT},
`comment` = #{comment,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
\ No newline at end of file
......@@ -320,642 +320,4 @@
update_time = #{updateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="pwc.taxtech.atms.entity.WfRecord">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="org_id" jdbcType="VARCHAR" property="orgId" />
<result column="project_id" jdbcType="BIGINT" property="projectId" />
<result column="year" jdbcType="INTEGER" property="year" />
<result column="period" jdbcType="TINYINT" property="period" />
<result column="type" jdbcType="TINYINT" property="type" />
<result column="act_inst_id" jdbcType="VARCHAR" property="actInstId" />
<result column="status" jdbcType="TINYINT" property="status" />
<result column="uid" jdbcType="VARCHAR" property="uid" />
<result column="comment" jdbcType="VARCHAR" property="comment" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, org_id, project_id, `year`, period, `type`, act_inst_id, `status`, `uid`, `comment`,
create_time, update_time
</sql>
<select id="selectByExample" parameterType="pwc.taxtech.atms.entity.WfRecordExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from wf_record
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from wf_record
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from wf_record
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="pwc.taxtech.atms.entity.WfRecordExample">
delete from wf_record
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="pwc.taxtech.atms.entity.WfRecord">
insert into wf_record (id, org_id, project_id,
`year`, period, `type`,
act_inst_id, `status`, `uid`,
`comment`, create_time, update_time
)
values (#{id,jdbcType=BIGINT}, #{orgId,jdbcType=VARCHAR}, #{projectId,jdbcType=BIGINT},
#{year,jdbcType=INTEGER}, #{period,jdbcType=TINYINT}, #{type,jdbcType=TINYINT},
#{actInstId,jdbcType=VARCHAR}, #{status,jdbcType=TINYINT}, #{uid,jdbcType=VARCHAR},
#{comment,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
)
</insert>
<insert id="insertSelective" parameterType="pwc.taxtech.atms.entity.WfRecord">
insert into wf_record
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="orgId != null">
org_id,
</if>
<if test="projectId != null">
project_id,
</if>
<if test="year != null">
`year`,
</if>
<if test="period != null">
period,
</if>
<if test="type != null">
`type`,
</if>
<if test="actInstId != null">
act_inst_id,
</if>
<if test="status != null">
`status`,
</if>
<if test="uid != null">
`uid`,
</if>
<if test="comment != null">
`comment`,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="orgId != null">
#{orgId,jdbcType=VARCHAR},
</if>
<if test="projectId != null">
#{projectId,jdbcType=BIGINT},
</if>
<if test="year != null">
#{year,jdbcType=INTEGER},
</if>
<if test="period != null">
#{period,jdbcType=TINYINT},
</if>
<if test="type != null">
#{type,jdbcType=TINYINT},
</if>
<if test="actInstId != null">
#{actInstId,jdbcType=VARCHAR},
</if>
<if test="status != null">
#{status,jdbcType=TINYINT},
</if>
<if test="uid != null">
#{uid,jdbcType=VARCHAR},
</if>
<if test="comment != null">
#{comment,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="pwc.taxtech.atms.entity.WfRecordExample" resultType="java.lang.Long">
select count(*) from wf_record
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update wf_record
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.orgId != null">
org_id = #{record.orgId,jdbcType=VARCHAR},
</if>
<if test="record.projectId != null">
project_id = #{record.projectId,jdbcType=BIGINT},
</if>
<if test="record.year != null">
`year` = #{record.year,jdbcType=INTEGER},
</if>
<if test="record.period != null">
period = #{record.period,jdbcType=TINYINT},
</if>
<if test="record.type != null">
`type` = #{record.type,jdbcType=TINYINT},
</if>
<if test="record.actInstId != null">
act_inst_id = #{record.actInstId,jdbcType=VARCHAR},
</if>
<if test="record.status != null">
`status` = #{record.status,jdbcType=TINYINT},
</if>
<if test="record.uid != null">
`uid` = #{record.uid,jdbcType=VARCHAR},
</if>
<if test="record.comment != null">
`comment` = #{record.comment,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.updateTime != null">
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update wf_record
set id = #{record.id,jdbcType=BIGINT},
org_id = #{record.orgId,jdbcType=VARCHAR},
project_id = #{record.projectId,jdbcType=BIGINT},
`year` = #{record.year,jdbcType=INTEGER},
period = #{record.period,jdbcType=TINYINT},
`type` = #{record.type,jdbcType=TINYINT},
act_inst_id = #{record.actInstId,jdbcType=VARCHAR},
`status` = #{record.status,jdbcType=TINYINT},
`uid` = #{record.uid,jdbcType=VARCHAR},
`comment` = #{record.comment,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="pwc.taxtech.atms.entity.WfRecord">
update wf_record
<set>
<if test="orgId != null">
org_id = #{orgId,jdbcType=VARCHAR},
</if>
<if test="projectId != null">
project_id = #{projectId,jdbcType=BIGINT},
</if>
<if test="year != null">
`year` = #{year,jdbcType=INTEGER},
</if>
<if test="period != null">
period = #{period,jdbcType=TINYINT},
</if>
<if test="type != null">
`type` = #{type,jdbcType=TINYINT},
</if>
<if test="actInstId != null">
act_inst_id = #{actInstId,jdbcType=VARCHAR},
</if>
<if test="status != null">
`status` = #{status,jdbcType=TINYINT},
</if>
<if test="uid != null">
`uid` = #{uid,jdbcType=VARCHAR},
</if>
<if test="comment != null">
`comment` = #{comment,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.entity.WfRecord">
update wf_record
set org_id = #{orgId,jdbcType=VARCHAR},
project_id = #{projectId,jdbcType=BIGINT},
`year` = #{year,jdbcType=INTEGER},
period = #{period,jdbcType=TINYINT},
`type` = #{type,jdbcType=TINYINT},
act_inst_id = #{actInstId,jdbcType=VARCHAR},
`status` = #{status,jdbcType=TINYINT},
`uid` = #{uid,jdbcType=VARCHAR},
`comment` = #{comment,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="pwc.taxtech.atms.entity.WfRecord">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="org_id" jdbcType="VARCHAR" property="orgId" />
<result column="project_id" jdbcType="BIGINT" property="projectId" />
<result column="year" jdbcType="INTEGER" property="year" />
<result column="period" jdbcType="TINYINT" property="period" />
<result column="type" jdbcType="TINYINT" property="type" />
<result column="act_inst_id" jdbcType="VARCHAR" property="actInstId" />
<result column="status" jdbcType="TINYINT" property="status" />
<result column="uid" jdbcType="VARCHAR" property="uid" />
<result column="comment" jdbcType="VARCHAR" property="comment" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, org_id, project_id, `year`, period, `type`, act_inst_id, `status`, `uid`, `comment`,
create_time, update_time
</sql>
<select id="selectByExample" parameterType="pwc.taxtech.atms.entity.WfRecordExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from wf_record
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from wf_record
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from wf_record
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="pwc.taxtech.atms.entity.WfRecordExample">
delete from wf_record
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="pwc.taxtech.atms.entity.WfRecord">
insert into wf_record (id, org_id, project_id,
`year`, period, `type`,
act_inst_id, `status`, `uid`,
`comment`, create_time, update_time
)
values (#{id,jdbcType=BIGINT}, #{orgId,jdbcType=VARCHAR}, #{projectId,jdbcType=BIGINT},
#{year,jdbcType=INTEGER}, #{period,jdbcType=TINYINT}, #{type,jdbcType=TINYINT},
#{actInstId,jdbcType=VARCHAR}, #{status,jdbcType=TINYINT}, #{uid,jdbcType=VARCHAR},
#{comment,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
)
</insert>
<insert id="insertSelective" parameterType="pwc.taxtech.atms.entity.WfRecord">
insert into wf_record
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="orgId != null">
org_id,
</if>
<if test="projectId != null">
project_id,
</if>
<if test="year != null">
`year`,
</if>
<if test="period != null">
period,
</if>
<if test="type != null">
`type`,
</if>
<if test="actInstId != null">
act_inst_id,
</if>
<if test="status != null">
`status`,
</if>
<if test="uid != null">
`uid`,
</if>
<if test="comment != null">
`comment`,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="orgId != null">
#{orgId,jdbcType=VARCHAR},
</if>
<if test="projectId != null">
#{projectId,jdbcType=BIGINT},
</if>
<if test="year != null">
#{year,jdbcType=INTEGER},
</if>
<if test="period != null">
#{period,jdbcType=TINYINT},
</if>
<if test="type != null">
#{type,jdbcType=TINYINT},
</if>
<if test="actInstId != null">
#{actInstId,jdbcType=VARCHAR},
</if>
<if test="status != null">
#{status,jdbcType=TINYINT},
</if>
<if test="uid != null">
#{uid,jdbcType=VARCHAR},
</if>
<if test="comment != null">
#{comment,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="pwc.taxtech.atms.entity.WfRecordExample" resultType="java.lang.Long">
select count(*) from wf_record
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update wf_record
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.orgId != null">
org_id = #{record.orgId,jdbcType=VARCHAR},
</if>
<if test="record.projectId != null">
project_id = #{record.projectId,jdbcType=BIGINT},
</if>
<if test="record.year != null">
`year` = #{record.year,jdbcType=INTEGER},
</if>
<if test="record.period != null">
period = #{record.period,jdbcType=TINYINT},
</if>
<if test="record.type != null">
`type` = #{record.type,jdbcType=TINYINT},
</if>
<if test="record.actInstId != null">
act_inst_id = #{record.actInstId,jdbcType=VARCHAR},
</if>
<if test="record.status != null">
`status` = #{record.status,jdbcType=TINYINT},
</if>
<if test="record.uid != null">
`uid` = #{record.uid,jdbcType=VARCHAR},
</if>
<if test="record.comment != null">
`comment` = #{record.comment,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.updateTime != null">
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update wf_record
set id = #{record.id,jdbcType=BIGINT},
org_id = #{record.orgId,jdbcType=VARCHAR},
project_id = #{record.projectId,jdbcType=BIGINT},
`year` = #{record.year,jdbcType=INTEGER},
period = #{record.period,jdbcType=TINYINT},
`type` = #{record.type,jdbcType=TINYINT},
act_inst_id = #{record.actInstId,jdbcType=VARCHAR},
`status` = #{record.status,jdbcType=TINYINT},
`uid` = #{record.uid,jdbcType=VARCHAR},
`comment` = #{record.comment,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="pwc.taxtech.atms.entity.WfRecord">
update wf_record
<set>
<if test="orgId != null">
org_id = #{orgId,jdbcType=VARCHAR},
</if>
<if test="projectId != null">
project_id = #{projectId,jdbcType=BIGINT},
</if>
<if test="year != null">
`year` = #{year,jdbcType=INTEGER},
</if>
<if test="period != null">
period = #{period,jdbcType=TINYINT},
</if>
<if test="type != null">
`type` = #{type,jdbcType=TINYINT},
</if>
<if test="actInstId != null">
act_inst_id = #{actInstId,jdbcType=VARCHAR},
</if>
<if test="status != null">
`status` = #{status,jdbcType=TINYINT},
</if>
<if test="uid != null">
`uid` = #{uid,jdbcType=VARCHAR},
</if>
<if test="comment != null">
`comment` = #{comment,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.entity.WfRecord">
update wf_record
set org_id = #{orgId,jdbcType=VARCHAR},
project_id = #{projectId,jdbcType=BIGINT},
`year` = #{year,jdbcType=INTEGER},
period = #{period,jdbcType=TINYINT},
`type` = #{type,jdbcType=TINYINT},
act_inst_id = #{actInstId,jdbcType=VARCHAR},
`status` = #{status,jdbcType=TINYINT},
`uid` = #{uid,jdbcType=VARCHAR},
`comment` = #{comment,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=BIGINT}
</update>
</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