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}