|
@@ -19,6 +19,7 @@
|
|
|
<result column="create_by" property="createBy" jdbcType="VARCHAR"/>
|
|
|
<result column="update_by" property="updateBy" jdbcType="VARCHAR"/>
|
|
|
<result column="parent_id" property="parentId" jdbcType="INTEGER"/>
|
|
|
+ <result column="children_num" property="childrenNum" jdbcType="INTEGER"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<!--auto generated Code-->
|
|
@@ -38,7 +39,8 @@
|
|
|
date_update,
|
|
|
create_by,
|
|
|
update_by,
|
|
|
- parent_id
|
|
|
+ parent_id,
|
|
|
+ children_num
|
|
|
</sql>
|
|
|
|
|
|
<!--auto generated Code-->
|
|
@@ -59,7 +61,8 @@
|
|
|
date_update,
|
|
|
create_by,
|
|
|
update_by,
|
|
|
- parent_id
|
|
|
+ parent_id,
|
|
|
+ children_num
|
|
|
) VALUES (
|
|
|
#{customer.id,jdbcType=INTEGER},
|
|
|
#{customer.siteId,jdbcType=INTEGER},
|
|
@@ -76,7 +79,8 @@
|
|
|
#{customer.dateUpdate,jdbcType=TIMESTAMP},
|
|
|
#{customer.createBy,jdbcType=VARCHAR},
|
|
|
#{customer.updateBy,jdbcType=VARCHAR},
|
|
|
- #{customer.parentId,jdbcType=INTEGER}
|
|
|
+ #{customer.parentId,jdbcType=INTEGER},
|
|
|
+ #{customer.childrenNum,jdbcType=INTEGER}
|
|
|
)
|
|
|
</insert>
|
|
|
|
|
@@ -100,6 +104,7 @@
|
|
|
<if test="customer.createBy!=null"> create_by,</if>
|
|
|
<if test="customer.updateBy!=null"> update_by,</if>
|
|
|
<if test="customer.parentId!=null"> parent_id,</if>
|
|
|
+ <if test="customer.childrenNum!=null"> children_num,</if>
|
|
|
</trim>
|
|
|
VALUES
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
@@ -135,6 +140,8 @@
|
|
|
</if>
|
|
|
<if test="customer.parentId!=null">#{customer.parentId,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="customer.childrenNum!=null">#{customer.childrenNum,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -156,7 +163,8 @@
|
|
|
date_update,
|
|
|
create_by,
|
|
|
update_by,
|
|
|
- parent_id
|
|
|
+ parent_id,
|
|
|
+ children_num
|
|
|
)VALUES
|
|
|
<foreach collection="customers" item="customer" index="index" separator=",">
|
|
|
(
|
|
@@ -175,7 +183,8 @@
|
|
|
#{customer.dateUpdate,jdbcType=TIMESTAMP},
|
|
|
#{customer.createBy,jdbcType=VARCHAR},
|
|
|
#{customer.updateBy,jdbcType=VARCHAR},
|
|
|
- #{customer.parentId,jdbcType=INTEGER}
|
|
|
+ #{customer.parentId,jdbcType=INTEGER},
|
|
|
+ #{customer.childrenNum,jdbcType=INTEGER}
|
|
|
)
|
|
|
</foreach>
|
|
|
</insert>
|
|
@@ -198,7 +207,8 @@
|
|
|
<if test="customer.dateUpdate != null"> date_update= #{customer.dateUpdate,jdbcType=TIMESTAMP},</if>
|
|
|
<if test="customer.createBy != null"> create_by= #{customer.createBy,jdbcType=VARCHAR},</if>
|
|
|
<if test="customer.updateBy != null"> update_by= #{customer.updateBy,jdbcType=VARCHAR},</if>
|
|
|
- <if test="customer.parentId != null"> parent_id= #{customer.parentId,jdbcType=INTEGER}</if>
|
|
|
+ <if test="customer.parentId != null"> parent_id= #{customer.parentId,jdbcType=INTEGER},</if>
|
|
|
+ <if test="customer.childrenNum != null"> children_num= #{customer.childrenNum,jdbcType=INTEGER}</if>
|
|
|
</set>
|
|
|
WHERE id = #{customer.id,jdbcType=INTEGER}
|
|
|
</update>
|