|
|
@@ -41,6 +41,7 @@
|
|
|
<result column="actual_profit" jdbcType="DECIMAL" property="actualProfit" />
|
|
|
<result column="stop_type" jdbcType="INTEGER" property="stopType" />
|
|
|
<result column="stop_status" jdbcType="INTEGER" property="stopStatus" />
|
|
|
+ <result column="change" jdbcType="INTEGER" property="change" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
id, tid, cost_amount, party_amount, create_time, certificates_count, urgent_day,
|
|
|
@@ -49,7 +50,7 @@
|
|
|
dispatch_province, duty_dep, set_up_count, spot_check_count, fail_count, last_year,
|
|
|
last_year_capital, last_year_income, cost_actual, patent_cost, patent_cost_actual,
|
|
|
soft_cost, soft_cost_actual, audit_cost, audit_cost_actual, other_cost, other_cost_actual,
|
|
|
- expect_profit, actual_profit, stop_type, stop_status
|
|
|
+ expect_profit, actual_profit, stop_type, stop_status, `change`
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
select
|
|
|
@@ -74,7 +75,8 @@
|
|
|
patent_cost_actual, soft_cost, soft_cost_actual,
|
|
|
audit_cost, audit_cost_actual, other_cost,
|
|
|
other_cost_actual, expect_profit, actual_profit,
|
|
|
- stop_type, stop_status)
|
|
|
+ stop_type, stop_status, `change`
|
|
|
+ )
|
|
|
values (#{tid,jdbcType=INTEGER}, #{costAmount,jdbcType=DECIMAL}, #{partyAmount,jdbcType=DECIMAL},
|
|
|
#{createTime,jdbcType=TIMESTAMP}, #{certificatesCount,jdbcType=INTEGER}, #{urgentDay,jdbcType=INTEGER},
|
|
|
#{ifMaterial,jdbcType=INTEGER}, #{rejectCount,jdbcType=INTEGER}, #{acceptCount,jdbcType=INTEGER},
|
|
|
@@ -87,7 +89,8 @@
|
|
|
#{patentCostActual,jdbcType=DECIMAL}, #{softCost,jdbcType=DECIMAL}, #{softCostActual,jdbcType=DECIMAL},
|
|
|
#{auditCost,jdbcType=DECIMAL}, #{auditCostActual,jdbcType=DECIMAL}, #{otherCost,jdbcType=DECIMAL},
|
|
|
#{otherCostActual,jdbcType=DECIMAL}, #{expectProfit,jdbcType=DECIMAL}, #{actualProfit,jdbcType=DECIMAL},
|
|
|
- #{stopType,jdbcType=INTEGER}, #{stopStatus,jdbcType=INTEGER})
|
|
|
+ #{stopType,jdbcType=INTEGER}, #{stopStatus,jdbcType=INTEGER}, #{change,jdbcType=INTEGER}
|
|
|
+ )
|
|
|
</insert>
|
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.TTaskMid" useGeneratedKeys="true">
|
|
|
insert into t_task_mid
|
|
|
@@ -206,6 +209,9 @@
|
|
|
<if test="stopStatus != null">
|
|
|
stop_status,
|
|
|
</if>
|
|
|
+ <if test="change != null">
|
|
|
+ `change`,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="tid != null">
|
|
|
@@ -322,6 +328,9 @@
|
|
|
<if test="stopStatus != null">
|
|
|
#{stopStatus,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="change != null">
|
|
|
+ #{change,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.TTaskMid">
|
|
|
@@ -441,6 +450,9 @@
|
|
|
<if test="stopStatus != null">
|
|
|
stop_status = #{stopStatus,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="change != null">
|
|
|
+ `change` = #{change,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
@@ -483,7 +495,8 @@
|
|
|
expect_profit = #{expectProfit,jdbcType=DECIMAL},
|
|
|
actual_profit = #{actualProfit,jdbcType=DECIMAL},
|
|
|
stop_type = #{stopType,jdbcType=INTEGER},
|
|
|
- stop_status = #{stopStatus,jdbcType=INTEGER}
|
|
|
+ stop_status = #{stopStatus,jdbcType=INTEGER},
|
|
|
+ `change` = #{change,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
|
|
|
@@ -493,10 +506,10 @@
|
|
|
update t_task_mid
|
|
|
set party_amount = party_amount
|
|
|
<if test="type == 0">
|
|
|
- + #{paymentAmount,jdbcType=DECIMAL}
|
|
|
+ + #{paymentAmount,jdbcType=DECIMAL}
|
|
|
</if>
|
|
|
<if test="type == 1">
|
|
|
- - #{paymentAmount,jdbcType=DECIMAL}
|
|
|
+ - #{paymentAmount,jdbcType=DECIMAL}
|
|
|
</if>
|
|
|
where tid = #{tid,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
@@ -637,3 +650,5 @@
|
|
|
</select>
|
|
|
|
|
|
</mapper>
|
|
|
+
|
|
|
+ </mapper>
|