Browse Source

导航获取修改

anderx 1 year ago
parent
commit
f76a6ef917
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main/java/com/goafanti/common/mapper/PermissionMapper.xml

+ 2 - 2
src/main/java/com/goafanti/common/mapper/PermissionMapper.xml

@@ -331,7 +331,7 @@
 					permission
 				where
 					super_id = #{superId,jdbcType=VARCHAR}
-					and (type = 1 or type = 2)
+                    and d.type in (1,2)
   			</when>
   			<otherwise>
 				select
@@ -344,7 +344,7 @@
 					b.id = c.rid left join permission d on
 					c.pid = d.id
 				where
-					(d.type = 1 or d.type = 2)
+					d.type in (1,2)
 					and d.super_id = #{superId,jdbcType=VARCHAR}
 					and a.uid = #{aid,jdbcType=VARCHAR}
 					group by d.id