|
|
@@ -23,11 +23,14 @@
|
|
|
<result column="service_year" jdbcType="VARCHAR" property="serviceYear" />
|
|
|
<result column="year_sum" jdbcType="INTEGER" property="yearSum" />
|
|
|
<result column="contract_term" jdbcType="VARCHAR" property="contractTerm" />
|
|
|
+ <result column="declaration_batch" jdbcType="INTEGER" property="declarationBatch" />
|
|
|
+ <result column="patent_type" jdbcType="INTEGER" property="patentType" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
id, tid, cid, order_no, main, commodity_id, commodity_name, commodity_quantity, commodity_price,
|
|
|
task_comment, `type`, create_time, split_status, split_super, receiver_name, official_cost,
|
|
|
- cost_reduction, service_life, service_year, year_sum, contract_term
|
|
|
+ cost_reduction, service_life, service_year, year_sum, contract_term, declaration_batch,
|
|
|
+ patent_type
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
select
|
|
|
@@ -39,25 +42,30 @@
|
|
|
delete from t_change_task
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</delete>
|
|
|
- <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.TChangeTask" useGeneratedKeys="true">
|
|
|
- insert into t_change_task (tid, cid, order_no,
|
|
|
- main, commodity_id, commodity_name,
|
|
|
- commodity_quantity, commodity_price, task_comment,
|
|
|
- `type`, create_time, split_status,
|
|
|
- split_super, receiver_name, official_cost,
|
|
|
- cost_reduction, service_life, service_year,
|
|
|
- year_sum, contract_term)
|
|
|
- values (#{tid,jdbcType=INTEGER}, #{cid,jdbcType=INTEGER}, #{orderNo,jdbcType=VARCHAR},
|
|
|
- #{main,jdbcType=INTEGER}, #{commodityId,jdbcType=VARCHAR}, #{commodityName,jdbcType=VARCHAR},
|
|
|
- #{commodityQuantity,jdbcType=INTEGER}, #{commodityPrice,jdbcType=DECIMAL}, #{taskComment,jdbcType=VARCHAR},
|
|
|
- #{type,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{splitStatus,jdbcType=INTEGER},
|
|
|
- #{splitSuper,jdbcType=INTEGER}, #{receiverName,jdbcType=VARCHAR}, #{officialCost,jdbcType=INTEGER},
|
|
|
- #{costReduction,jdbcType=INTEGER}, #{serviceLife,jdbcType=VARCHAR}, #{serviceYear,jdbcType=VARCHAR},
|
|
|
- #{yearSum,jdbcType=INTEGER}, #{contractTerm,jdbcType=VARCHAR})
|
|
|
+ <insert id="insert" parameterType="com.goafanti.common.model.TChangeTask">
|
|
|
+ insert into t_change_task (id, tid, cid,
|
|
|
+ order_no, main, commodity_id,
|
|
|
+ commodity_name, commodity_quantity, commodity_price,
|
|
|
+ task_comment, `type`, create_time,
|
|
|
+ split_status, split_super, receiver_name,
|
|
|
+ official_cost, cost_reduction, service_life,
|
|
|
+ service_year, year_sum, contract_term,
|
|
|
+ declaration_batch, patent_type)
|
|
|
+ values (#{id,jdbcType=INTEGER}, #{tid,jdbcType=INTEGER}, #{cid,jdbcType=INTEGER},
|
|
|
+ #{orderNo,jdbcType=VARCHAR}, #{main,jdbcType=INTEGER}, #{commodityId,jdbcType=VARCHAR},
|
|
|
+ #{commodityName,jdbcType=VARCHAR}, #{commodityQuantity,jdbcType=INTEGER}, #{commodityPrice,jdbcType=DECIMAL},
|
|
|
+ #{taskComment,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ #{splitStatus,jdbcType=INTEGER}, #{splitSuper,jdbcType=INTEGER}, #{receiverName,jdbcType=VARCHAR},
|
|
|
+ #{officialCost,jdbcType=INTEGER}, #{costReduction,jdbcType=INTEGER}, #{serviceLife,jdbcType=VARCHAR},
|
|
|
+ #{serviceYear,jdbcType=VARCHAR}, #{yearSum,jdbcType=INTEGER}, #{contractTerm,jdbcType=VARCHAR},
|
|
|
+ #{declarationBatch,jdbcType=INTEGER}, #{patentType,jdbcType=INTEGER})
|
|
|
</insert>
|
|
|
- <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.TChangeTask" useGeneratedKeys="true">
|
|
|
+ <insert id="insertSelective" parameterType="com.goafanti.common.model.TChangeTask">
|
|
|
insert into t_change_task
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">
|
|
|
+ id,
|
|
|
+ </if>
|
|
|
<if test="tid != null">
|
|
|
tid,
|
|
|
</if>
|
|
|
@@ -118,8 +126,17 @@
|
|
|
<if test="contractTerm != null">
|
|
|
contract_term,
|
|
|
</if>
|
|
|
+ <if test="declarationBatch != null">
|
|
|
+ declaration_batch,
|
|
|
+ </if>
|
|
|
+ <if test="patentType != null">
|
|
|
+ patent_type,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">
|
|
|
+ #{id,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="tid != null">
|
|
|
#{tid,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
@@ -180,6 +197,12 @@
|
|
|
<if test="contractTerm != null">
|
|
|
#{contractTerm,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="declarationBatch != null">
|
|
|
+ #{declarationBatch,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="patentType != null">
|
|
|
+ #{patentType,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.TChangeTask">
|
|
|
@@ -245,6 +268,12 @@
|
|
|
<if test="contractTerm != null">
|
|
|
contract_term = #{contractTerm,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="declarationBatch != null">
|
|
|
+ declaration_batch = #{declarationBatch,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="patentType != null">
|
|
|
+ patent_type = #{patentType,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
@@ -269,7 +298,9 @@
|
|
|
service_life = #{serviceLife,jdbcType=VARCHAR},
|
|
|
service_year = #{serviceYear,jdbcType=VARCHAR},
|
|
|
year_sum = #{yearSum,jdbcType=INTEGER},
|
|
|
- contract_term = #{contractTerm,jdbcType=VARCHAR}
|
|
|
+ contract_term = #{contractTerm,jdbcType=VARCHAR},
|
|
|
+ declaration_batch = #{declarationBatch,jdbcType=INTEGER},
|
|
|
+ patent_type = #{patentType,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
|
|
|
@@ -278,14 +309,15 @@
|
|
|
order_no, commodity_id, commodity_name,
|
|
|
commodity_quantity, commodity_price, task_comment,
|
|
|
split_super , receiver_name, create_time,service_life,
|
|
|
- service_year, year_sum, contract_term)
|
|
|
+ service_year, year_sum, contract_term,declaration_batch,patent_type)
|
|
|
values
|
|
|
<foreach collection="list" index="index" item="item" separator=",">
|
|
|
( #{item.tid,jdbcType=INTEGER}, #{item.cid,jdbcType=INTEGER}, #{item.splitStatus,jdbcType=INTEGER},
|
|
|
#{item.orderNo,jdbcType=VARCHAR}, #{item.commodityId,jdbcType=VARCHAR}, #{item.commodityName,jdbcType=VARCHAR},
|
|
|
#{item.commodityQuantity,jdbcType=INTEGER}, #{item.commodityPrice,jdbcType=DECIMAL}, #{item.taskComment,jdbcType=VARCHAR},
|
|
|
#{item.splitSuper,jdbcType=INTEGER}, #{item.receiverName,jdbcType=VARCHAR}, now(), #{item.serviceLife,jdbcType=VARCHAR},
|
|
|
- #{item.serviceYear,jdbcType=VARCHAR}, #{item.yearSum,jdbcType=INTEGER},#{item.contractTerm,jdbcType=VARCHAR})
|
|
|
+ #{item.serviceYear,jdbcType=VARCHAR}, #{item.yearSum,jdbcType=INTEGER},#{item.contractTerm,jdbcType=VARCHAR},
|
|
|
+ #{declarationBatch,jdbcType=INTEGER},#{patentType,jdbcType=INTEGER})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
<select id="selectByCid" resultType="com.goafanti.order.bo.TChangeTaskOut">
|