Răsfoiți Sursa

资源目录新增父级

372237882@qq.com 3 ani în urmă
părinte
comite
a30cd2067c

+ 8 - 1
server/src/main/resources/mybatis/mapper/CatalogueMapper.xml

@@ -43,6 +43,9 @@
             <if test="extConfig != null">
                 `ext_config`,
             </if>
+            <if test="parentId != null">
+                `parent_id`,
+            </if>
             `create_by`,
             `create_time`
         </trim>
@@ -64,6 +67,9 @@
             <if test="extConfig != null">
                 #{extConfig,jdbcType=LONGVARCHAR},
             </if>
+            <if test="parentId != null">
+                #{parentId,jdbcType=LONGVARCHAR},
+            </if>
             #{createBy,jdbcType=BIGINT},
             #{createTime,jdbcType=TIMESTAMP}
         </trim>
@@ -72,7 +78,7 @@
 
     <insert id="insertBatch" useGeneratedKeys="true" keyProperty="id">
         insert into `view`
-        (`id`,`name`,description, origin_dept, `project_id`, `origin_system`, `industry`,`ext_config`)
+        (`id`,`name`,description, origin_dept, `project_id`,`parent_id`, `origin_system`, `industry`,`ext_config`)
         VALUES
         <foreach collection="list" item="record" index="index" separator=",">
             (
@@ -81,6 +87,7 @@
             #{record.description,jdbcType=VARCHAR},
             #{record.originDept,jdbcType=VARCHAR},
             #{record.projectId,jdbcType=BIGINT},
+            #{record.parentId,jdbcType=BIGINT},
             #{record.originSystem,jdbcType=VARCHAR},
             #{record.industry,jdbcType=VARCHAR},
             #{record.extConfig,jdbcType=VARCHAR}