From a33898c2a0374c249862a2b996e33352e30c8caf Mon Sep 17 00:00:00 2001
From: KonBAI <1527468660@qq.com>
Date: 星期六, 02 四月 2022 13:02:56 +0800
Subject: [PATCH] !167 update 修改角色"菜单树选择项"和"部门树选择项"是否关联显示字段为Boolean类型 * fix 修改 postgres sql脚本,处理角色表字段类型错误问题。 * fix 修复postgreSQL新增或更新角色信息报错。修改角色"菜单树选择项"和"部门树选择项"是否关联显示字段为Boolean类型。

---
 ruoyi-system/src/main/resources/mapper/system/SysNoticeMapper.xml |   80 ----------------------------------------
 1 files changed, 0 insertions(+), 80 deletions(-)

diff --git a/ruoyi-system/src/main/resources/mapper/system/SysNoticeMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysNoticeMapper.xml
index 9ae9fe0..be3cd08 100644
--- a/ruoyi-system/src/main/resources/mapper/system/SysNoticeMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/SysNoticeMapper.xml
@@ -17,84 +17,4 @@
         <result property="remark" column="remark"/>
     </resultMap>
 
-    <sql id="selectNoticeVo">
-        select notice_id,
-               notice_title,
-               notice_type,
-               cast(notice_content as char) as notice_content,
-               status,
-               create_by,
-               create_time,
-               update_by,
-               update_time,
-               remark
-        from sys_notice
-    </sql>
-
-    <select id="selectNoticeById" parameterType="Long" resultMap="SysNoticeResult">
-        <include refid="selectNoticeVo"/>
-        where notice_id = #{noticeId}
-    </select>
-
-    <select id="selectNoticeList" parameterType="SysNotice" resultMap="SysNoticeResult">
-        <include refid="selectNoticeVo"/>
-        <where>
-            <if test="noticeTitle != null and noticeTitle != ''">
-                AND notice_title like concat('%', #{noticeTitle}, '%')
-            </if>
-            <if test="noticeType != null and noticeType != ''">
-                AND notice_type = #{noticeType}
-            </if>
-            <if test="createBy != null and createBy != ''">
-                AND create_by like concat('%', #{createBy}, '%')
-            </if>
-        </where>
-    </select>
-
-    <insert id="insertNotice" parameterType="SysNotice">
-        insert into sys_notice (
-        <if test="noticeTitle != null and noticeTitle != '' ">notice_title,</if>
-        <if test="noticeType != null and noticeType != '' ">notice_type,</if>
-        <if test="noticeContent != null and noticeContent != '' ">notice_content,</if>
-        <if test="status != null and status != '' ">status,</if>
-        <if test="remark != null and remark != ''">remark,</if>
-        <if test="createBy != null and createBy != ''">create_by,</if>
-        create_time
-        )values(
-        <if test="noticeTitle != null and noticeTitle != ''">#{noticeTitle},</if>
-        <if test="noticeType != null and noticeType != ''">#{noticeType},</if>
-        <if test="noticeContent != null and noticeContent != ''">#{noticeContent},</if>
-        <if test="status != null and status != ''">#{status},</if>
-        <if test="remark != null and remark != ''">#{remark},</if>
-        <if test="createBy != null and createBy != ''">#{createBy},</if>
-        sysdate()
-        )
-    </insert>
-
-    <update id="updateNotice" parameterType="SysNotice">
-        update sys_notice
-        <set>
-            <if test="noticeTitle != null and noticeTitle != ''">notice_title = #{noticeTitle},</if>
-            <if test="noticeType != null and noticeType != ''">notice_type = #{noticeType},</if>
-            <if test="noticeContent != null">notice_content = #{noticeContent},</if>
-            <if test="status != null and status != ''">status = #{status},</if>
-            <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
-            update_time = sysdate()
-        </set>
-        where notice_id = #{noticeId}
-    </update>
-
-    <delete id="deleteNoticeById" parameterType="Long">
-        delete
-        from sys_notice
-        where notice_id = #{noticeId}
-    </delete>
-
-    <delete id="deleteNoticeByIds" parameterType="Long">
-        delete from sys_notice where notice_id in
-        <foreach item="noticeId" collection="array" open="(" separator="," close=")">
-            #{noticeId}
-        </foreach>
-    </delete>
-
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.3