|
|
@@ -25,12 +25,16 @@
|
|
|
<result column="set_up_count" jdbcType="INTEGER" property="setUpCount" />
|
|
|
<result column="spot_check_count" jdbcType="INTEGER" property="spotCheckCount" />
|
|
|
<result column="fail_count" jdbcType="INTEGER" property="failCount" />
|
|
|
+ <result column="last_year" jdbcType="VARCHAR" property="lastYear" />
|
|
|
+ <result column="last_year_capital" jdbcType="VARCHAR" property="lastYearCapital" />
|
|
|
+ <result column="last_year_income" jdbcType="VARCHAR" property="lastYearIncome" />
|
|
|
</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
|
|
|
+ dispatch_province, duty_dep, set_up_count, spot_check_count, fail_count, last_year,
|
|
|
+ last_year_capital, last_year_income
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
select
|
|
|
@@ -42,30 +46,29 @@
|
|
|
delete from t_task_mid
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</delete>
|
|
|
- <insert id="insert" parameterType="com.goafanti.common.model.TTaskMid">
|
|
|
- insert into t_task_mid (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)
|
|
|
- values (#{id,jdbcType=INTEGER}, #{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}, #{endCount,jdbcType=INTEGER}, #{authorizeCount,jdbcType=INTEGER},
|
|
|
- #{applyCount,jdbcType=INTEGER}, #{highNewRetrial,jdbcType=INTEGER}, #{dispatchCount,jdbcType=INTEGER},
|
|
|
- #{stockCount,jdbcType=INTEGER}, #{completeCount,jdbcType=INTEGER}, #{promulgateCount,jdbcType=INTEGER},
|
|
|
- #{dispatchProvince,jdbcType=INTEGER}, #{dutyDep,jdbcType=VARCHAR}, #{setUpCount,jdbcType=INTEGER},
|
|
|
- #{spotCheckCount,jdbcType=INTEGER}, #{failCount,jdbcType=INTEGER})
|
|
|
+ <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.TTaskMid" useGeneratedKeys="true">
|
|
|
+ insert into t_task_mid (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)
|
|
|
+ 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},
|
|
|
+ #{endCount,jdbcType=INTEGER}, #{authorizeCount,jdbcType=INTEGER}, #{applyCount,jdbcType=INTEGER},
|
|
|
+ #{highNewRetrial,jdbcType=INTEGER}, #{dispatchCount,jdbcType=INTEGER}, #{stockCount,jdbcType=INTEGER},
|
|
|
+ #{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=VARCHAR},
|
|
|
+ #{lastYearIncome,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
- <insert id="insertSelective" parameterType="com.goafanti.common.model.TTaskMid">
|
|
|
+ <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.TTaskMid" useGeneratedKeys="true">
|
|
|
insert into t_task_mid
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
- <if test="id != null">
|
|
|
- id,
|
|
|
- </if>
|
|
|
<if test="tid != null">
|
|
|
tid,
|
|
|
</if>
|
|
|
@@ -132,11 +135,17 @@
|
|
|
<if test="failCount != null">
|
|
|
fail_count,
|
|
|
</if>
|
|
|
+ <if test="lastYear != null">
|
|
|
+ last_year,
|
|
|
+ </if>
|
|
|
+ <if test="lastYearCapital != null">
|
|
|
+ last_year_capital,
|
|
|
+ </if>
|
|
|
+ <if test="lastYearIncome != null">
|
|
|
+ last_year_income,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
- <if test="id != null">
|
|
|
- #{id,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
<if test="tid != null">
|
|
|
#{tid,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
@@ -203,6 +212,15 @@
|
|
|
<if test="failCount != null">
|
|
|
#{failCount,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="lastYear != null">
|
|
|
+ #{lastYear,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="lastYearCapital != null">
|
|
|
+ #{lastYearCapital,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="lastYearIncome != null">
|
|
|
+ #{lastYearIncome,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.TTaskMid">
|
|
|
@@ -274,6 +292,15 @@
|
|
|
<if test="failCount != null">
|
|
|
fail_count = #{failCount,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="lastYear != null">
|
|
|
+ last_year = #{lastYear,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="lastYearCapital != null">
|
|
|
+ last_year_capital = #{lastYearCapital,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="lastYearIncome != null">
|
|
|
+ last_year_income = #{lastYearIncome,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
@@ -300,7 +327,10 @@
|
|
|
duty_dep = #{dutyDep,jdbcType=VARCHAR},
|
|
|
set_up_count = #{setUpCount,jdbcType=INTEGER},
|
|
|
spot_check_count = #{spotCheckCount,jdbcType=INTEGER},
|
|
|
- fail_count = #{failCount,jdbcType=INTEGER}
|
|
|
+ fail_count = #{failCount,jdbcType=INTEGER},
|
|
|
+ last_year = #{lastYear,jdbcType=VARCHAR},
|
|
|
+ last_year_capital = #{lastYearCapital,jdbcType=VARCHAR},
|
|
|
+ last_year_income = #{lastYearIncome,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
|
|
|
@@ -439,8 +469,8 @@
|
|
|
<select id="getDtails" resultType="com.goafanti.common.model.TTaskMid">
|
|
|
select a.id tid,dg.id dispatchProvince,tr.department_id dutyDep
|
|
|
from t_order_task a left join t_order_new b on a.order_no =b.order_no
|
|
|
- left join department c on b.order_dep =c.id left join admin tr on a.task_receiver =tr.id
|
|
|
- left join district_glossory dg on c.province =dg.id
|
|
|
+ left join department c on b.order_dep =c.id left join admin tr on a.task_receiver =tr.id
|
|
|
+ left join district_glossory dg on c.province =dg.id
|
|
|
where a.id= #{id};
|
|
|
</select>
|
|
|
|