|
|
@@ -25,12 +25,13 @@
|
|
|
<result column="contract_term" jdbcType="VARCHAR" property="contractTerm" />
|
|
|
<result column="declaration_batch" jdbcType="INTEGER" property="declarationBatch" />
|
|
|
<result column="patent_type" jdbcType="INTEGER" property="patentType" />
|
|
|
+ <result column="change_split_super" jdbcType="INTEGER" property="changeSplitSuper" />
|
|
|
</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, declaration_batch,
|
|
|
- patent_type
|
|
|
+ patent_type, change_split_super
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
select
|
|
|
@@ -42,30 +43,27 @@
|
|
|
delete from t_change_task
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</delete>
|
|
|
- <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 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, declaration_batch,
|
|
|
+ patent_type, change_split_super)
|
|
|
+ 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}, #{declarationBatch,jdbcType=INTEGER},
|
|
|
+ #{patentType,jdbcType=INTEGER}, #{changeSplitSuper,jdbcType=INTEGER})
|
|
|
</insert>
|
|
|
- <insert id="insertSelective" parameterType="com.goafanti.common.model.TChangeTask">
|
|
|
+ <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.TChangeTask" useGeneratedKeys="true">
|
|
|
insert into t_change_task
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
- <if test="id != null">
|
|
|
- id,
|
|
|
- </if>
|
|
|
<if test="tid != null">
|
|
|
tid,
|
|
|
</if>
|
|
|
@@ -132,11 +130,11 @@
|
|
|
<if test="patentType != null">
|
|
|
patent_type,
|
|
|
</if>
|
|
|
+ <if test="changeSplitSuper != null">
|
|
|
+ change_split_super,
|
|
|
+ </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 +201,9 @@
|
|
|
<if test="patentType != null">
|
|
|
#{patentType,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="changeSplitSuper != null">
|
|
|
+ #{changeSplitSuper,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.TChangeTask">
|
|
|
@@ -274,6 +275,9 @@
|
|
|
<if test="patentType != null">
|
|
|
patent_type = #{patentType,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="changeSplitSuper != null">
|
|
|
+ change_split_super = #{changeSplitSuper,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
@@ -300,7 +304,8 @@
|
|
|
year_sum = #{yearSum,jdbcType=INTEGER},
|
|
|
contract_term = #{contractTerm,jdbcType=VARCHAR},
|
|
|
declaration_batch = #{declarationBatch,jdbcType=INTEGER},
|
|
|
- patent_type = #{patentType,jdbcType=INTEGER}
|
|
|
+ patent_type = #{patentType,jdbcType=INTEGER},
|
|
|
+ change_split_super = #{changeSplitSuper,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
|