mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-30 09:48:43 +08:00 
			
		
		
		
	修复通知公告批量删除异常问题
This commit is contained in:
		| @@ -84,9 +84,9 @@ public class SysNoticeController extends BaseController | ||||
|      */ | ||||
|     @PreAuthorize("@ss.hasPermi('system:notice:remove')") | ||||
|     @Log(title = "通知公告", businessType = BusinessType.DELETE) | ||||
|     @DeleteMapping("/{noticeId}") | ||||
|     public AjaxResult remove(@PathVariable Long noticeId) | ||||
|     @DeleteMapping("/{noticeIds}") | ||||
|     public AjaxResult remove(@PathVariable Long[] noticeIds) | ||||
|     { | ||||
|         return toAjax(noticeService.deleteNoticeById(noticeId)); | ||||
|         return toAjax(noticeService.deleteNoticeByIds(noticeIds)); | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -56,5 +56,5 @@ public interface SysNoticeMapper | ||||
|      * @param noticeIds 需要删除的公告ID | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int deleteNoticeByIds(Long noticeIds); | ||||
|     public int deleteNoticeByIds(Long[] noticeIds); | ||||
| } | ||||
| @@ -56,5 +56,5 @@ public interface ISysNoticeService | ||||
|      * @param noticeIds 需要删除的公告ID | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int deleteNoticeByIds(Long noticeIds); | ||||
|     public int deleteNoticeByIds(Long[] noticeIds); | ||||
| } | ||||
|   | ||||
| @@ -84,7 +84,7 @@ public class SysNoticeServiceImpl implements ISysNoticeService | ||||
|      * @param noticeIds 需要删除的公告ID | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int deleteNoticeByIds(Long noticeIds) | ||||
|     public int deleteNoticeByIds(Long[] noticeIds) | ||||
|     { | ||||
|         return noticeMapper.deleteNoticeByIds(noticeIds); | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 RuoYi
					RuoYi