From f6adaa3c4da30e825adcedf02e6570c7195149be Mon Sep 17 00:00:00 2001 From: wangxy <1481820854@qq.com> Date: Fri, 8 Nov 2024 11:19:53 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E7=80=9A=E9=AB=98=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/ruoyi/system/mapper/SysNoticeMapper.java | 2 +- .../com/ruoyi/system/service/impl/SysNoticeServiceImpl.java | 2 +- .../src/main/resources/mapper/system/SysNoticeMapper.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysNoticeMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysNoticeMapper.java index 836abd5..9e4a359 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysNoticeMapper.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysNoticeMapper.java @@ -48,7 +48,7 @@ public interface SysNoticeMapper * @param noticeIds 需要删除的数据ID * @return 结果 */ - public int deleteNoticeByIds(String[] noticeIds); + public int deleteNoticeByIds(Long[] noticeIds); /** diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysNoticeServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysNoticeServiceImpl.java index 31f06b3..b2af239 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysNoticeServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysNoticeServiceImpl.java @@ -77,7 +77,7 @@ public class SysNoticeServiceImpl implements ISysNoticeService @Override public int deleteNoticeByIds(String ids) { - return noticeMapper.deleteNoticeByIds(Convert.toStrArray(ids)); + return noticeMapper.deleteNoticeByIds(Convert.toLongArray(ids)); } /** diff --git a/ruoyi-system/src/main/resources/mapper/system/SysNoticeMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysNoticeMapper.xml index 57f2a20..b36a039 100644 --- a/ruoyi-system/src/main/resources/mapper/system/SysNoticeMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/SysNoticeMapper.xml @@ -75,7 +75,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" where notice_id = #{noticeId} - + delete from sys_notice where notice_id in #{noticeId}