mirror of
https://github.com/FatttSnake/Pinnacle-OA.git
synced 2026-04-06 07:21:24 +08:00
add the function of deleteNoticeType and modify the router of notice.ts
This commit is contained in:
@@ -54,4 +54,14 @@ public class NoticeTypeServiceImpl extends ServiceImpl<NoticeTypeMapper, NoticeT
|
||||
public Boolean addNoticeType(NoticeType noticeType) {
|
||||
return noticeTypeMapper.insert(noticeType)>0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean updateNoticeType(NoticeType noticeType) {
|
||||
return noticeTypeMapper.updateById(noticeType)>0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean deleteNoticeTypeById(Long typeId) {
|
||||
return noticeTypeMapper.deleteById(typeId)>0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user