|
|
@@ -6,10 +6,11 @@
|
|
|
<result column="tid" jdbcType="INTEGER" property="tid" />
|
|
|
<result column="service_life" jdbcType="VARCHAR" property="serviceLife" />
|
|
|
<result column="service_year" jdbcType="VARCHAR" property="serviceYear" />
|
|
|
+ <result column="year_sum" jdbcType="INTEGER" property="yearSum" />
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
- id, tid, service_life, service_year, create_time
|
|
|
+ id, tid, service_life, service_year, year_sum, create_time
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
select
|
|
|
@@ -23,9 +24,11 @@
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.goafanti.common.model.TTaskMember">
|
|
|
insert into t_task_member (id, tid, service_life,
|
|
|
- service_year, create_time)
|
|
|
+ service_year, year_sum, create_time
|
|
|
+ )
|
|
|
values (#{id,jdbcType=INTEGER}, #{tid,jdbcType=INTEGER}, #{serviceLife,jdbcType=VARCHAR},
|
|
|
- #{serviceYear,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP})
|
|
|
+ #{serviceYear,jdbcType=VARCHAR}, #{yearSum,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}
|
|
|
+ )
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.TTaskMember">
|
|
|
insert into t_task_member
|
|
|
@@ -42,6 +45,9 @@
|
|
|
<if test="serviceYear != null">
|
|
|
service_year,
|
|
|
</if>
|
|
|
+ <if test="yearSum != null">
|
|
|
+ year_sum,
|
|
|
+ </if>
|
|
|
<if test="createTime != null">
|
|
|
create_time,
|
|
|
</if>
|
|
|
@@ -59,6 +65,9 @@
|
|
|
<if test="serviceYear != null">
|
|
|
#{serviceYear,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="yearSum != null">
|
|
|
+ #{yearSum,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="createTime != null">
|
|
|
#{createTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
@@ -76,6 +85,9 @@
|
|
|
<if test="serviceYear != null">
|
|
|
service_year = #{serviceYear,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="yearSum != null">
|
|
|
+ year_sum = #{yearSum,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="createTime != null">
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
@@ -87,6 +99,7 @@
|
|
|
set tid = #{tid,jdbcType=INTEGER},
|
|
|
service_life = #{serviceLife,jdbcType=VARCHAR},
|
|
|
service_year = #{serviceYear,jdbcType=VARCHAR},
|
|
|
+ year_sum = #{yearSum,jdbcType=INTEGER},
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|