|
|
@@ -22,12 +22,11 @@
|
|
|
<result column="service_life" jdbcType="VARCHAR" property="serviceLife" />
|
|
|
<result column="service_year" jdbcType="VARCHAR" property="serviceYear" />
|
|
|
<result column="year_sum" jdbcType="INTEGER" property="yearSum" />
|
|
|
- <result column="picture_url" jdbcType="VARCHAR" property="pictureUrl" />
|
|
|
</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, picture_url
|
|
|
+ cost_reduction, service_life, service_year, year_sum
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
select
|
|
|
@@ -46,16 +45,14 @@
|
|
|
task_comment, `type`, create_time,
|
|
|
split_status, split_super, receiver_name,
|
|
|
official_cost, cost_reduction, service_life,
|
|
|
- service_year, year_sum, picture_url
|
|
|
- )
|
|
|
+ service_year, year_sum)
|
|
|
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}, #{pictureUrl,jdbcType=VARCHAR}
|
|
|
- )
|
|
|
+ #{serviceYear,jdbcType=VARCHAR}, #{yearSum,jdbcType=INTEGER})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.TChangeTask">
|
|
|
insert into t_change_task
|
|
|
@@ -120,9 +117,6 @@
|
|
|
<if test="yearSum != null">
|
|
|
year_sum,
|
|
|
</if>
|
|
|
- <if test="pictureUrl != null">
|
|
|
- picture_url,
|
|
|
- </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
|
@@ -185,9 +179,6 @@
|
|
|
<if test="yearSum != null">
|
|
|
#{yearSum,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="pictureUrl != null">
|
|
|
- #{pictureUrl,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.TChangeTask">
|
|
|
@@ -250,9 +241,6 @@
|
|
|
<if test="yearSum != null">
|
|
|
year_sum = #{yearSum,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="pictureUrl != null">
|
|
|
- picture_url = #{pictureUrl,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
@@ -276,8 +264,7 @@
|
|
|
cost_reduction = #{costReduction,jdbcType=INTEGER},
|
|
|
service_life = #{serviceLife,jdbcType=VARCHAR},
|
|
|
service_year = #{serviceYear,jdbcType=VARCHAR},
|
|
|
- year_sum = #{yearSum,jdbcType=INTEGER},
|
|
|
- picture_url = #{pictureUrl,jdbcType=VARCHAR}
|
|
|
+ year_sum = #{yearSum,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
|