|
|
@@ -28,13 +28,27 @@
|
|
|
<result column="last_year" jdbcType="VARCHAR" property="lastYear" />
|
|
|
<result column="last_year_capital" jdbcType="DECIMAL" property="lastYearCapital" />
|
|
|
<result column="last_year_income" jdbcType="DECIMAL" property="lastYearIncome" />
|
|
|
+ <result column="cost_actual" jdbcType="DECIMAL" property="costActual" />
|
|
|
+ <result column="patent_cost" jdbcType="DECIMAL" property="patentCost" />
|
|
|
+ <result column="patent_cost_actual" jdbcType="DECIMAL" property="patentCostActual" />
|
|
|
+ <result column="soft_cost" jdbcType="DECIMAL" property="softCost" />
|
|
|
+ <result column="soft_cost_actual" jdbcType="DECIMAL" property="softCostActual" />
|
|
|
+ <result column="audit_cost" jdbcType="DECIMAL" property="auditCost" />
|
|
|
+ <result column="audit_cost_actual" jdbcType="DECIMAL" property="auditCostActual" />
|
|
|
+ <result column="other_cost" jdbcType="DECIMAL" property="otherCost" />
|
|
|
+ <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="stopStatus" jdbcType="INTEGER" property="stopstatus" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
id, tid, cost_amount, party_amount, create_time, certificates_count, urgent_day,
|
|
|
if_material, reject_count, accept_count, end_count, authorize_count, apply_count,
|
|
|
high_new_retrial, dispatch_count, stock_count, complete_count, promulgate_count,
|
|
|
dispatch_province, duty_dep, set_up_count, spot_check_count, fail_count, last_year,
|
|
|
- last_year_capital, last_year_income
|
|
|
+ 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, stopStatus
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
select
|
|
|
@@ -55,7 +69,11 @@
|
|
|
complete_count, promulgate_count, dispatch_province,
|
|
|
duty_dep, set_up_count, spot_check_count,
|
|
|
fail_count, last_year, last_year_capital,
|
|
|
- last_year_income)
|
|
|
+ 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,
|
|
|
+ stopStatus)
|
|
|
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},
|
|
|
@@ -64,7 +82,11 @@
|
|
|
#{completeCount,jdbcType=INTEGER}, #{promulgateCount,jdbcType=INTEGER}, #{dispatchProvince,jdbcType=INTEGER},
|
|
|
#{dutyDep,jdbcType=VARCHAR}, #{setUpCount,jdbcType=INTEGER}, #{spotCheckCount,jdbcType=INTEGER},
|
|
|
#{failCount,jdbcType=INTEGER}, #{lastYear,jdbcType=VARCHAR}, #{lastYearCapital,jdbcType=DECIMAL},
|
|
|
- #{lastYearIncome,jdbcType=DECIMAL})
|
|
|
+ #{lastYearIncome,jdbcType=DECIMAL}, #{costActual,jdbcType=DECIMAL}, #{patentCost,jdbcType=DECIMAL},
|
|
|
+ #{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})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.TTaskMid" useGeneratedKeys="true">
|
|
|
insert into t_task_mid
|
|
|
@@ -144,6 +166,42 @@
|
|
|
<if test="lastYearIncome != null">
|
|
|
last_year_income,
|
|
|
</if>
|
|
|
+ <if test="costActual != null">
|
|
|
+ cost_actual,
|
|
|
+ </if>
|
|
|
+ <if test="patentCost != null">
|
|
|
+ patent_cost,
|
|
|
+ </if>
|
|
|
+ <if test="patentCostActual != null">
|
|
|
+ patent_cost_actual,
|
|
|
+ </if>
|
|
|
+ <if test="softCost != null">
|
|
|
+ soft_cost,
|
|
|
+ </if>
|
|
|
+ <if test="softCostActual != null">
|
|
|
+ soft_cost_actual,
|
|
|
+ </if>
|
|
|
+ <if test="auditCost != null">
|
|
|
+ audit_cost,
|
|
|
+ </if>
|
|
|
+ <if test="auditCostActual != null">
|
|
|
+ audit_cost_actual,
|
|
|
+ </if>
|
|
|
+ <if test="otherCost != null">
|
|
|
+ other_cost,
|
|
|
+ </if>
|
|
|
+ <if test="otherCostActual != null">
|
|
|
+ other_cost_actual,
|
|
|
+ </if>
|
|
|
+ <if test="expectProfit != null">
|
|
|
+ expect_profit,
|
|
|
+ </if>
|
|
|
+ <if test="actualProfit != null">
|
|
|
+ actual_profit,
|
|
|
+ </if>
|
|
|
+ <if test="stopstatus != null">
|
|
|
+ stopStatus,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="tid != null">
|
|
|
@@ -221,6 +279,42 @@
|
|
|
<if test="lastYearIncome != null">
|
|
|
#{lastYearIncome,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
+ <if test="costActual != null">
|
|
|
+ #{costActual,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="patentCost != null">
|
|
|
+ #{patentCost,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="patentCostActual != null">
|
|
|
+ #{patentCostActual,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="softCost != null">
|
|
|
+ #{softCost,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="softCostActual != null">
|
|
|
+ #{softCostActual,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="auditCost != null">
|
|
|
+ #{auditCost,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="auditCostActual != null">
|
|
|
+ #{auditCostActual,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="otherCost != null">
|
|
|
+ #{otherCost,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="otherCostActual != null">
|
|
|
+ #{otherCostActual,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="expectProfit != null">
|
|
|
+ #{expectProfit,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="actualProfit != null">
|
|
|
+ #{actualProfit,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="stopstatus != null">
|
|
|
+ #{stopstatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.TTaskMid">
|
|
|
@@ -301,6 +395,42 @@
|
|
|
<if test="lastYearIncome != null">
|
|
|
last_year_income = #{lastYearIncome,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
+ <if test="costActual != null">
|
|
|
+ cost_actual = #{costActual,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="patentCost != null">
|
|
|
+ patent_cost = #{patentCost,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="patentCostActual != null">
|
|
|
+ patent_cost_actual = #{patentCostActual,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="softCost != null">
|
|
|
+ soft_cost = #{softCost,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="softCostActual != null">
|
|
|
+ soft_cost_actual = #{softCostActual,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="auditCost != null">
|
|
|
+ audit_cost = #{auditCost,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="auditCostActual != null">
|
|
|
+ audit_cost_actual = #{auditCostActual,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="otherCost != null">
|
|
|
+ other_cost = #{otherCost,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="otherCostActual != null">
|
|
|
+ other_cost_actual = #{otherCostActual,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="expectProfit != null">
|
|
|
+ expect_profit = #{expectProfit,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="actualProfit != null">
|
|
|
+ actual_profit = #{actualProfit,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="stopstatus != null">
|
|
|
+ stopStatus = #{stopstatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
@@ -330,7 +460,19 @@
|
|
|
fail_count = #{failCount,jdbcType=INTEGER},
|
|
|
last_year = #{lastYear,jdbcType=VARCHAR},
|
|
|
last_year_capital = #{lastYearCapital,jdbcType=DECIMAL},
|
|
|
- last_year_income = #{lastYearIncome,jdbcType=DECIMAL}
|
|
|
+ last_year_income = #{lastYearIncome,jdbcType=DECIMAL},
|
|
|
+ cost_actual = #{costActual,jdbcType=DECIMAL},
|
|
|
+ patent_cost = #{patentCost,jdbcType=DECIMAL},
|
|
|
+ patent_cost_actual = #{patentCostActual,jdbcType=DECIMAL},
|
|
|
+ soft_cost = #{softCost,jdbcType=DECIMAL},
|
|
|
+ soft_cost_actual = #{softCostActual,jdbcType=DECIMAL},
|
|
|
+ audit_cost = #{auditCost,jdbcType=DECIMAL},
|
|
|
+ audit_cost_actual = #{auditCostActual,jdbcType=DECIMAL},
|
|
|
+ other_cost = #{otherCost,jdbcType=DECIMAL},
|
|
|
+ other_cost_actual = #{otherCostActual,jdbcType=DECIMAL},
|
|
|
+ expect_profit = #{expectProfit,jdbcType=DECIMAL},
|
|
|
+ actual_profit = #{actualProfit,jdbcType=DECIMAL},
|
|
|
+ stopStatus = #{stopstatus,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
|