正在显示
4 个修改的文件
包含
6 行增加
和
6 行删除
| @@ -84,9 +84,9 @@ public class SysNoticeController extends BaseController | @@ -84,9 +84,9 @@ public class SysNoticeController extends BaseController | ||
| 84 | */ | 84 | */ |
| 85 | @PreAuthorize("@ss.hasPermi('system:notice:remove')") | 85 | @PreAuthorize("@ss.hasPermi('system:notice:remove')") |
| 86 | @Log(title = "通知公告", businessType = BusinessType.DELETE) | 86 | @Log(title = "通知公告", businessType = BusinessType.DELETE) |
| 87 | - @DeleteMapping("/{noticeId}") | ||
| 88 | - public AjaxResult remove(@PathVariable Long noticeId) | 87 | + @DeleteMapping("/{noticeIds}") |
| 88 | + public AjaxResult remove(@PathVariable Long[] noticeIds) | ||
| 89 | { | 89 | { |
| 90 | - return toAjax(noticeService.deleteNoticeById(noticeId)); | 90 | + return toAjax(noticeService.deleteNoticeByIds(noticeIds)); |
| 91 | } | 91 | } |
| 92 | } | 92 | } |
| @@ -56,5 +56,5 @@ public interface SysNoticeMapper | @@ -56,5 +56,5 @@ public interface SysNoticeMapper | ||
| 56 | * @param noticeIds 需要删除的公告ID | 56 | * @param noticeIds 需要删除的公告ID |
| 57 | * @return 结果 | 57 | * @return 结果 |
| 58 | */ | 58 | */ |
| 59 | - public int deleteNoticeByIds(Long noticeIds); | 59 | + public int deleteNoticeByIds(Long[] noticeIds); |
| 60 | } | 60 | } |
| @@ -56,5 +56,5 @@ public interface ISysNoticeService | @@ -56,5 +56,5 @@ public interface ISysNoticeService | ||
| 56 | * @param noticeIds 需要删除的公告ID | 56 | * @param noticeIds 需要删除的公告ID |
| 57 | * @return 结果 | 57 | * @return 结果 |
| 58 | */ | 58 | */ |
| 59 | - public int deleteNoticeByIds(Long noticeIds); | 59 | + public int deleteNoticeByIds(Long[] noticeIds); |
| 60 | } | 60 | } |
| @@ -84,7 +84,7 @@ public class SysNoticeServiceImpl implements ISysNoticeService | @@ -84,7 +84,7 @@ public class SysNoticeServiceImpl implements ISysNoticeService | ||
| 84 | * @param noticeIds 需要删除的公告ID | 84 | * @param noticeIds 需要删除的公告ID |
| 85 | * @return 结果 | 85 | * @return 结果 |
| 86 | */ | 86 | */ |
| 87 | - public int deleteNoticeByIds(Long noticeIds) | 87 | + public int deleteNoticeByIds(Long[] noticeIds) |
| 88 | { | 88 | { |
| 89 | return noticeMapper.deleteNoticeByIds(noticeIds); | 89 | return noticeMapper.deleteNoticeByIds(noticeIds); |
| 90 | } | 90 | } |
-
请 注册 或 登录 后发表评论