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