|
|
@@ -16,6 +16,7 @@
|
|
|
<result column="grant_by" jdbcType="VARCHAR" property="grantBy" />
|
|
|
<result column="grant_time" jdbcType="DATE" property="grantTime" />
|
|
|
<result column="grant_type" jdbcType="INTEGER" property="grantType" />
|
|
|
+ <result column="task_id" jdbcType="INTEGER" property="taskId" />
|
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
|
<!--
|
|
|
@@ -92,7 +93,7 @@
|
|
|
This element was generated on Tue Nov 27 11:15:28 CST 2018.
|
|
|
-->
|
|
|
id, create_time, order_no, bonus_subject, grant_status, grant_target, grant_by, grant_time,
|
|
|
- grant_type
|
|
|
+ grant_type, task_id
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.goafanti.common.model.TOrderBonusExample" resultMap="BaseResultMap">
|
|
|
<!--
|
|
|
@@ -152,11 +153,11 @@
|
|
|
-->
|
|
|
insert into t_order_bonus (id, create_time, order_no,
|
|
|
bonus_subject, grant_status, grant_target,
|
|
|
- grant_by, grant_time, grant_type
|
|
|
+ grant_by, grant_time, grant_type, task_id
|
|
|
)
|
|
|
values (#{id,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{orderNo,jdbcType=VARCHAR},
|
|
|
#{bonusSubject,jdbcType=INTEGER}, #{grantStatus,jdbcType=INTEGER}, #{grantTarget,jdbcType=VARCHAR},
|
|
|
- #{grantBy,jdbcType=VARCHAR}, #{grantTime,jdbcType=DATE}, #{grantType,jdbcType=INTEGER}
|
|
|
+ #{grantBy,jdbcType=VARCHAR}, #{grantTime,jdbcType=DATE}, #{grantType,jdbcType=INTEGER}, #{taskId,jdbcType=INTEGER}
|
|
|
)
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.TOrderBonus">
|
|
|
@@ -194,6 +195,9 @@
|
|
|
<if test="grantType != null">
|
|
|
grant_type,
|
|
|
</if>
|
|
|
+ <if test="taskId != null">
|
|
|
+ task_id,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
|
@@ -223,6 +227,9 @@
|
|
|
<if test="grantType != null">
|
|
|
#{grantType,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="taskId != null">
|
|
|
+ #{taskId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<select id="countByExample" parameterType="com.goafanti.common.model.TOrderBonusExample" resultType="java.lang.Long">
|
|
|
@@ -271,6 +278,9 @@
|
|
|
<if test="record.grantType != null">
|
|
|
grant_type = #{record.grantType,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="record.taskId != null">
|
|
|
+ task_id = #{record.taskId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
@@ -291,7 +301,8 @@
|
|
|
grant_target = #{record.grantTarget,jdbcType=VARCHAR},
|
|
|
grant_by = #{record.grantBy,jdbcType=VARCHAR},
|
|
|
grant_time = #{record.grantTime,jdbcType=DATE},
|
|
|
- grant_type = #{record.grantType,jdbcType=INTEGER}
|
|
|
+ grant_type = #{record.grantType,jdbcType=INTEGER},
|
|
|
+ task_id = #{record.taskId,jdbcType=INTEGER}
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
|
@@ -328,6 +339,9 @@
|
|
|
<if test="grantType != null">
|
|
|
grant_type = #{grantType,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="taskId != null">
|
|
|
+ task_id = #{taskId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
@@ -345,7 +359,8 @@
|
|
|
grant_target = #{grantTarget,jdbcType=VARCHAR},
|
|
|
grant_by = #{grantBy,jdbcType=VARCHAR},
|
|
|
grant_time = #{grantTime,jdbcType=DATE},
|
|
|
- grant_type = #{grantType,jdbcType=INTEGER}
|
|
|
+ grant_type = #{grantType,jdbcType=INTEGER},
|
|
|
+ task_id = #{taskId,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
<!-- 财务专员统计技术员的奖金 -->
|