|
|
@@ -317,7 +317,7 @@
|
|
|
#{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},
|
|
|
- #{declarationBatch,jdbcType=INTEGER},#{patentType,jdbcType=INTEGER})
|
|
|
+ #{item.declarationBatch,jdbcType=INTEGER},#{item.patentType,jdbcType=INTEGER})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
<select id="selectByCid" resultType="com.goafanti.order.bo.TChangeTaskOut">
|
|
|
@@ -354,10 +354,36 @@
|
|
|
<update id="deleteByTid">
|
|
|
delete from t_change_task where tid= #{tid};
|
|
|
</update>
|
|
|
+ <update id="updateMemberByTid">
|
|
|
+ update t_change_task
|
|
|
+ <set>
|
|
|
+ <if test="type != null">
|
|
|
+ type= #{type},
|
|
|
+ </if>
|
|
|
+ <if test="serviceLife != null">
|
|
|
+ service_life= #{serviceLife},
|
|
|
+ </if>
|
|
|
+ <if test="serviceYear != null">
|
|
|
+ service_year= #{serviceYear},
|
|
|
+ </if>
|
|
|
+ <if test="yearSum != null">
|
|
|
+ year_sum= #{yearSum},
|
|
|
+ </if>
|
|
|
+ <if test="contractTerm != null">
|
|
|
+ contract_term= #{contractTerm},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where 1=1
|
|
|
+ <if test="cid !=null">
|
|
|
+ and cid= #{cid}
|
|
|
+ </if>
|
|
|
+ <if test="sid !=null">
|
|
|
+ and split_super= #{sid}
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
|
|
|
|
|
|
-
|
|
|
- <select id="selectBySuper" resultType="com.goafanti.order.bo.TChangeTaskOut">
|
|
|
+ <select id="selectBySuper" resultType="com.goafanti.order.bo.TChangeTaskOut">
|
|
|
select a.id,a.order_no as orderNo,a.main, c.cname,c.sort cSort,a.commodity_name as commodityName,
|
|
|
a.commodity_quantity as commodityQuantity,i.price,a.commodity_id as commodityId,a.type,a.tid,a.receiver_name receiverName,
|
|
|
a.task_comment as taskComment ,a.commodity_price as commodityPrice,a.split_status splitStatus,a.split_super splitSuper
|