|
|
@@ -39,6 +39,7 @@
|
|
|
<result column="other_cost_actual" jdbcType="DECIMAL" property="otherCostActual" />
|
|
|
<result column="expect_profit" jdbcType="DECIMAL" property="expectProfit" />
|
|
|
<result column="actual_profit" jdbcType="DECIMAL" property="actualProfit" />
|
|
|
+ <result column="stop_type" jdbcType="INTEGER" property="stopType" />
|
|
|
<result column="stop_status" jdbcType="INTEGER" property="stopStatus" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
@@ -48,7 +49,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_status
|
|
|
+ expect_profit, actual_profit, stop_type, stop_status
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
select
|
|
|
@@ -73,7 +74,7 @@
|
|
|
patent_cost_actual, soft_cost, soft_cost_actual,
|
|
|
audit_cost, audit_cost_actual, other_cost,
|
|
|
other_cost_actual, expect_profit, actual_profit,
|
|
|
- stop_status)
|
|
|
+ stop_type, stop_status)
|
|
|
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},
|
|
|
@@ -86,7 +87,7 @@
|
|
|
#{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},
|
|
|
- #{stopStatus,jdbcType=INTEGER})
|
|
|
+ #{stopType,jdbcType=INTEGER}, #{stopStatus,jdbcType=INTEGER})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.TTaskMid" useGeneratedKeys="true">
|
|
|
insert into t_task_mid
|
|
|
@@ -199,6 +200,9 @@
|
|
|
<if test="actualProfit != null">
|
|
|
actual_profit,
|
|
|
</if>
|
|
|
+ <if test="stopType != null">
|
|
|
+ stop_type,
|
|
|
+ </if>
|
|
|
<if test="stopStatus != null">
|
|
|
stop_status,
|
|
|
</if>
|
|
|
@@ -312,6 +316,9 @@
|
|
|
<if test="actualProfit != null">
|
|
|
#{actualProfit,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
+ <if test="stopType != null">
|
|
|
+ #{stopType,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="stopStatus != null">
|
|
|
#{stopStatus,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
@@ -428,6 +435,9 @@
|
|
|
<if test="actualProfit != null">
|
|
|
actual_profit = #{actualProfit,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
+ <if test="stopType != null">
|
|
|
+ stop_type = #{stopType,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="stopStatus != null">
|
|
|
stop_status = #{stopStatus,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
@@ -472,6 +482,7 @@
|
|
|
other_cost_actual = #{otherCostActual,jdbcType=DECIMAL},
|
|
|
expect_profit = #{expectProfit,jdbcType=DECIMAL},
|
|
|
actual_profit = #{actualProfit,jdbcType=DECIMAL},
|
|
|
+ stop_type = #{stopType,jdbcType=INTEGER},
|
|
|
stop_status = #{stopStatus,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
@@ -578,10 +589,12 @@
|
|
|
<if test="lastYearIncome != null">
|
|
|
last_year_income = #{lastYearIncome,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
- <if test="stopStatus != null">
|
|
|
- stop_status = #{stopStatus,jdbcType=INTEGER}
|
|
|
+ <if test="stopType != null">
|
|
|
+ stop_type = #{stopType,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="stopStatus != null">
|
|
|
+ stop_status = #{stopStatus,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
-
|
|
|
</set>
|
|
|
where tid = #{tid,jdbcType=INTEGER}
|
|
|
</update>
|