From be9f8d7bf1f675def1c280e944ef3c5abb63ac13 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期六, 08 十月 2022 12:35:25 +0800
Subject: [PATCH] 1

---
 src/main/resources/mapper/sys/DepMapper.xml |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/resources/mapper/sys/DepMapper.xml b/src/main/resources/mapper/sys/DepMapper.xml
index ece592a..3ace895 100644
--- a/src/main/resources/mapper/sys/DepMapper.xml
+++ b/src/main/resources/mapper/sys/DepMapper.xml
@@ -15,7 +15,7 @@
 
     <select id="selectDepRecursive" resultMap="resultMap" resultType="com.lf.server.entity.sys.DepEntity">
         with recursive rs as(
-            select * from lf.sys_dep where name='涓浗鐭虫补澶╃劧姘旂閬撳伐绋嬫湁闄愬叕鍙�'
+            select * from lf.sys_dep where name=#{name}
         union
             select a.* from lf.sys_dep a, rs b where a.pid=b.id
         )
@@ -62,11 +62,11 @@
     </update>
 
     <update id="updateDeps">
-        <foreach collection="list" item="item" index="index" separator=","  >
+        <foreach collection="list" item="item" index="index" separator=";">
             update lf.sys_menu
             <set>
                 pid=#{item.pid},name=#{item.name},sname=#{item.sname},code=#{item.code},uncode=#{item.uncode},addr=#{item.addr},contact=#{item.contact},
-                fax=#{item.fax},email=#{item.email},post=#{item.post},website=#{item.website},level=#{item.level},order_num =#{item.orderNum},
+                fax=#{item.fax},email=#{item.email},post=#{item.post},website=#{item.website},level=#{item.level},order_num=#{item.orderNum},
                 update_user=#{item.updateUser},update_time=now(),bak=#{item.bak}
             </set>
             where id = #{item.id}

--
Gitblit v1.9.3