Kaynağa Gözat

修复修改菜单中类型转换失败的错误

“zyj” 3 yıl önce
ebeveyn
işleme
6f6c220ccf

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

@@ -134,8 +134,8 @@
 			<if test="path != null and path != ''">path = #{path},</if>
 			<if test="component != null">component = #{component},</if>
 			<if test="query != null">`query` = #{query},</if>
-			<if test="isFrame != null and isFrame != ''">is_frame = #{isFrame},</if>
-			<if test="isCache != null and isCache != ''">is_cache = #{isCache},</if>
+			<if test="isFrame != null and isFrame != ''">is_frame = #{isFrame}::integer,</if>
+			<if test="isCache != null and isCache != ''">is_cache = #{isCache}::integer,</if>
 			<if test="menuType != null and menuType != ''">menu_type = #{menuType},</if>
 			<if test="visible != null">visible = #{visible},</if>
 			<if test="status != null">status = #{status}::integer,</if>