|
|
@@ -16,14 +16,24 @@
|
|
|
<result column="authorize_count" jdbcType="INTEGER" property="authorizeCount" />
|
|
|
<result column="apply_count" jdbcType="INTEGER" property="applyCount" />
|
|
|
<result column="high_new_retrial" jdbcType="INTEGER" property="highNewRetrial" />
|
|
|
+ <result column="dispatch_count" jdbcType="INTEGER" property="dispatchCount" />
|
|
|
+ <result column="stock_count" jdbcType="INTEGER" property="stockCount" />
|
|
|
+ <result column="complete_count" jdbcType="INTEGER" property="completeCount" />
|
|
|
+ <result column="promulgate_count" jdbcType="INTEGER" property="promulgateCount" />
|
|
|
+ <result column="dispatch_province" jdbcType="INTEGER" property="dispatchProvince" />
|
|
|
+ <result column="duty_dep" jdbcType="VARCHAR" property="dutyDep" />
|
|
|
+ <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" />
|
|
|
</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
|
|
|
+ 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
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
- select
|
|
|
+ select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from t_task_mid
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
@@ -33,16 +43,22 @@
|
|
|
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)
|
|
|
- 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})
|
|
|
+ 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>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.TTaskMid">
|
|
|
insert into t_task_mid
|
|
|
@@ -89,6 +105,33 @@
|
|
|
<if test="highNewRetrial != null">
|
|
|
high_new_retrial,
|
|
|
</if>
|
|
|
+ <if test="dispatchCount != null">
|
|
|
+ dispatch_count,
|
|
|
+ </if>
|
|
|
+ <if test="stockCount != null">
|
|
|
+ stock_count,
|
|
|
+ </if>
|
|
|
+ <if test="completeCount != null">
|
|
|
+ complete_count,
|
|
|
+ </if>
|
|
|
+ <if test="promulgateCount != null">
|
|
|
+ promulgate_count,
|
|
|
+ </if>
|
|
|
+ <if test="dispatchProvince != null">
|
|
|
+ dispatch_province,
|
|
|
+ </if>
|
|
|
+ <if test="dutyDep != null">
|
|
|
+ duty_dep,
|
|
|
+ </if>
|
|
|
+ <if test="setUpCount != null">
|
|
|
+ set_up_count,
|
|
|
+ </if>
|
|
|
+ <if test="spotCheckCount != null">
|
|
|
+ spot_check_count,
|
|
|
+ </if>
|
|
|
+ <if test="failCount != null">
|
|
|
+ fail_count,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
|
@@ -133,6 +176,33 @@
|
|
|
<if test="highNewRetrial != null">
|
|
|
#{highNewRetrial,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="dispatchCount != null">
|
|
|
+ #{dispatchCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="stockCount != null">
|
|
|
+ #{stockCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="completeCount != null">
|
|
|
+ #{completeCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="promulgateCount != null">
|
|
|
+ #{promulgateCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="dispatchProvince != null">
|
|
|
+ #{dispatchProvince,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="dutyDep != null">
|
|
|
+ #{dutyDep,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="setUpCount != null">
|
|
|
+ #{setUpCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="spotCheckCount != null">
|
|
|
+ #{spotCheckCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="failCount != null">
|
|
|
+ #{failCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.TTaskMid">
|
|
|
@@ -177,6 +247,33 @@
|
|
|
<if test="highNewRetrial != null">
|
|
|
high_new_retrial = #{highNewRetrial,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="dispatchCount != null">
|
|
|
+ dispatch_count = #{dispatchCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="stockCount != null">
|
|
|
+ stock_count = #{stockCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="completeCount != null">
|
|
|
+ complete_count = #{completeCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="promulgateCount != null">
|
|
|
+ promulgate_count = #{promulgateCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="dispatchProvince != null">
|
|
|
+ dispatch_province = #{dispatchProvince,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="dutyDep != null">
|
|
|
+ duty_dep = #{dutyDep,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="setUpCount != null">
|
|
|
+ set_up_count = #{setUpCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="spotCheckCount != null">
|
|
|
+ spot_check_count = #{spotCheckCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="failCount != null">
|
|
|
+ fail_count = #{failCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
@@ -194,7 +291,16 @@
|
|
|
end_count = #{endCount,jdbcType=INTEGER},
|
|
|
authorize_count = #{authorizeCount,jdbcType=INTEGER},
|
|
|
apply_count = #{applyCount,jdbcType=INTEGER},
|
|
|
- high_new_retrial = #{highNewRetrial,jdbcType=INTEGER}
|
|
|
+ high_new_retrial = #{highNewRetrial,jdbcType=INTEGER},
|
|
|
+ dispatch_count = #{dispatchCount,jdbcType=INTEGER},
|
|
|
+ stock_count = #{stockCount,jdbcType=INTEGER},
|
|
|
+ complete_count = #{completeCount,jdbcType=INTEGER},
|
|
|
+ promulgate_count = #{promulgateCount,jdbcType=INTEGER},
|
|
|
+ dispatch_province = #{dispatchProvince,jdbcType=INTEGER},
|
|
|
+ duty_dep = #{dutyDep,jdbcType=VARCHAR},
|
|
|
+ set_up_count = #{setUpCount,jdbcType=INTEGER},
|
|
|
+ spot_check_count = #{spotCheckCount,jdbcType=INTEGER},
|
|
|
+ fail_count = #{failCount,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
|
|
|
@@ -231,20 +337,71 @@
|
|
|
<update id="updateByTid" parameterType="com.goafanti.common.model.TTaskMid">
|
|
|
update t_task_mid
|
|
|
<set>
|
|
|
+ <if test="tid != null">
|
|
|
+ tid = #{tid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="costAmount != null">
|
|
|
+ cost_amount = #{costAmount,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="partyAmount != null">
|
|
|
+ party_amount = #{partyAmount,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="certificatesCount != null">
|
|
|
+ certificates_count = #{certificatesCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="urgentDay != null">
|
|
|
- urgent_Day = #{urgentDay},
|
|
|
+ urgent_day = #{urgentDay,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="ifMaterial != null">
|
|
|
- if_material = #{ifMaterial},
|
|
|
+ if_material = #{ifMaterial,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="rejectCount != null">
|
|
|
- reject_count = #{rejectCount},
|
|
|
+ reject_count = #{rejectCount,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="acceptCount != null">
|
|
|
- accept_count = #{acceptCount},
|
|
|
+ accept_count = #{acceptCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="endCount != null">
|
|
|
+ end_count = #{endCount,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="authorizeCount != null">
|
|
|
- authorize_count = #{authorizeCount},
|
|
|
+ authorize_count = #{authorizeCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="applyCount != null">
|
|
|
+ apply_count = #{applyCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="highNewRetrial != null">
|
|
|
+ high_new_retrial = #{highNewRetrial,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="dispatchCount != null">
|
|
|
+ dispatch_count = #{dispatchCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="stockCount != null">
|
|
|
+ stock_count = #{stockCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="completeCount != null">
|
|
|
+ complete_count = #{completeCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="promulgateCount != null">
|
|
|
+ promulgate_count = #{promulgateCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="dispatchProvince != null">
|
|
|
+ dispatch_province = #{dispatchProvince,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="dutyDep != null">
|
|
|
+ duty_dep = #{dutyDep,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="setUpCount != null">
|
|
|
+ set_up_count = #{setUpCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="spotCheckCount != null">
|
|
|
+ spot_check_count = #{spotCheckCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="failCount != null">
|
|
|
+ fail_count = #{failCount,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
</set>
|
|
|
where tid = #{tid,jdbcType=INTEGER}
|
|
|
@@ -280,4 +437,4 @@
|
|
|
where a.tid= #{tid}
|
|
|
</select>
|
|
|
|
|
|
-</mapper>
|
|
|
+</mapper>
|