修复通知公告批量删除异常问题

master
RuoYi 5 years ago
parent 02062f31e9
commit 7604d59e49

@ -84,9 +84,9 @@ public class SysNoticeController extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('system:notice:remove')") @PreAuthorize("@ss.hasPermi('system:notice:remove')")
@Log(title = "通知公告", businessType = BusinessType.DELETE) @Log(title = "通知公告", businessType = BusinessType.DELETE)
@DeleteMapping("/{noticeId}") @DeleteMapping("/{noticeIds}")
public AjaxResult remove(@PathVariable Long noticeId) 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 * @param noticeIds ID
* @return * @return
*/ */
public int deleteNoticeByIds(Long noticeIds); public int deleteNoticeByIds(Long[] noticeIds);
} }

@ -56,5 +56,5 @@ public interface ISysNoticeService
* @param noticeIds ID * @param noticeIds ID
* @return * @return
*/ */
public int deleteNoticeByIds(Long noticeIds); public int deleteNoticeByIds(Long[] noticeIds);
} }

@ -84,7 +84,7 @@ public class SysNoticeServiceImpl implements ISysNoticeService
* @param noticeIds ID * @param noticeIds ID
* @return * @return
*/ */
public int deleteNoticeByIds(Long noticeIds) public int deleteNoticeByIds(Long[] noticeIds)
{ {
return noticeMapper.deleteNoticeByIds(noticeIds); return noticeMapper.deleteNoticeByIds(noticeIds);
} }

Loading…
Cancel
Save