|
@@ -7,9 +7,10 @@
|
|
<result column="product_id" property="productId" jdbcType="INTEGER" />
|
|
<result column="product_id" property="productId" jdbcType="INTEGER" />
|
|
<result column="fittings_id" property="fittingsId" jdbcType="INTEGER" />
|
|
<result column="fittings_id" property="fittingsId" jdbcType="INTEGER" />
|
|
<result column="send_fitting_number" property="sendFittingNumber" jdbcType="INTEGER" />
|
|
<result column="send_fitting_number" property="sendFittingNumber" jdbcType="INTEGER" />
|
|
|
|
+ <result column="color_bar" property="colorBar" />
|
|
</resultMap>
|
|
</resultMap>
|
|
<sql id="Base_Column_List" >
|
|
<sql id="Base_Column_List" >
|
|
- send_fitting_id, relation_id, product_id, fittings_id, send_fitting_number
|
|
|
|
|
|
+ send_fitting_id, relation_id, product_id, fittings_id, send_fitting_number,color_bar
|
|
</sql>
|
|
</sql>
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
select
|
|
select
|
|
@@ -52,11 +53,11 @@
|
|
|
|
|
|
<insert id="insert" parameterType="SendFitting" >
|
|
<insert id="insert" parameterType="SendFitting" >
|
|
insert into tb_rst_send_fitting ( relation_id, product_id,
|
|
insert into tb_rst_send_fitting ( relation_id, product_id,
|
|
- fittings_id, send_fitting_number,send_fitting_type)
|
|
|
|
|
|
+ fittings_id, send_fitting_number,send_fitting_type,color_bar)
|
|
values
|
|
values
|
|
<foreach collection="list" item="node" index="index" separator="," open="" close="">
|
|
<foreach collection="list" item="node" index="index" separator="," open="" close="">
|
|
(#{node.relationId}, #{node.productId},
|
|
(#{node.relationId}, #{node.productId},
|
|
- #{node.fittingsId}, #{node.sendFittingNumber}, #{node.sendFittingType})
|
|
|
|
|
|
+ #{node.fittingsId}, #{node.sendFittingNumber}, #{node.sendFittingType}, #{node.colorBar})
|
|
</foreach>
|
|
</foreach>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
@@ -79,6 +80,9 @@
|
|
<if test="sendFittingNumber != null" >
|
|
<if test="sendFittingNumber != null" >
|
|
send_fitting_number,
|
|
send_fitting_number,
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="colorBar != null" >
|
|
|
|
+ color_bar,
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
<if test="sendFittingId != null" >
|
|
<if test="sendFittingId != null" >
|
|
@@ -96,6 +100,9 @@
|
|
<if test="sendFittingNumber != null" >
|
|
<if test="sendFittingNumber != null" >
|
|
#{sendFittingNumber,jdbcType=INTEGER},
|
|
#{sendFittingNumber,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="colorBar != null" >
|
|
|
|
+ #{colorBar},
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
<update id="updateByPrimaryKeySelective" parameterType="SendFitting" >
|
|
<update id="updateByPrimaryKeySelective" parameterType="SendFitting" >
|
|
@@ -113,15 +120,11 @@
|
|
<if test="sendFittingNumber != null" >
|
|
<if test="sendFittingNumber != null" >
|
|
send_fitting_number = #{sendFittingNumber,jdbcType=INTEGER},
|
|
send_fitting_number = #{sendFittingNumber,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="colorBar != null" >
|
|
|
|
+ color_bar = #{colorBar},
|
|
|
|
+ </if>
|
|
</set>
|
|
</set>
|
|
where send_fitting_id = #{sendFittingId,jdbcType=INTEGER}
|
|
where send_fitting_id = #{sendFittingId,jdbcType=INTEGER}
|
|
</update>
|
|
</update>
|
|
- <update id="updateByPrimaryKey" parameterType="SendFitting" >
|
|
|
|
- update tb_rst_send_fitting
|
|
|
|
- set relation_id = #{relationId,jdbcType=INTEGER},
|
|
|
|
- product_id = #{productId,jdbcType=INTEGER},
|
|
|
|
- fittings_id = #{fittingsId,jdbcType=INTEGER},
|
|
|
|
- send_fitting_number = #{sendFittingNumber,jdbcType=INTEGER}
|
|
|
|
- where send_fitting_id = #{sendFittingId,jdbcType=INTEGER}
|
|
|
|
- </update>
|
|
|
|
|
|
+
|
|
</mapper>
|
|
</mapper>
|