Selaa lähdekoodia

修复菜单中状态查询转换失败的错误

“zyj” 3 vuotta sitten
vanhempi
sitoutus
6aee2d2e69

+ 2 - 2
ruoyi-system/src/main/resources/mapper/system/SysMenuMapper.xml

@@ -42,7 +42,7 @@
 				AND visible = #{visible}
 			</if>
 			<if test="status != null and status != ''">
-				AND status = #{status}
+				AND status = #{status}::integer
 			</if>
 		</where>
 		order by parent_id, order_num
@@ -68,7 +68,7 @@
             AND m.visible = #{visible}
 		</if>
 		<if test="status != null and status != ''">
-            AND m.status = #{status}
+            AND m.status = #{status}::integer
 		</if>
 		order by m.parent_id, m.order_num
 	</select>