package com.qianwen.smartman.modules.notify.convert; import com.qianwen.smartman.modules.notify.entity.Notice; import com.qianwen.smartman.modules.notify.vo.NoticeAddVO; import com.qianwen.smartman.modules.notify.vo.NoticeUpdateVO; import com.qianwen.smartman.modules.notify.vo.NoticeVO; /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/notify/convert/NoticeConvertImpl.class */ public class NoticeConvertImpl implements NoticeConvert { @Override // org.springblade.modules.notify.convert.NoticeConvert public Notice convert(NoticeAddVO noticeAddVO) { if (noticeAddVO == null) { return null; } Notice notice = new Notice(); notice.setTitle(noticeAddVO.getTitle()); notice.setCategory(noticeAddVO.getCategory()); notice.setContent(noticeAddVO.getContent()); return notice; } @Override // org.springblade.modules.notify.convert.NoticeConvert public Notice convert(NoticeUpdateVO noticeUpdateVO) { if (noticeUpdateVO == null) { return null; } Notice notice = new Notice(); notice.setId(noticeUpdateVO.getId()); notice.setTitle(noticeUpdateVO.getTitle()); notice.setCategory(noticeUpdateVO.getCategory()); notice.setContent(noticeUpdateVO.getContent()); return notice; } @Override // org.springblade.modules.notify.convert.NoticeConvert public NoticeVO convert(Notice notice) { if (notice == null) { return null; } NoticeVO noticeVO = new NoticeVO(); noticeVO.setId(notice.getId()); noticeVO.setCreateUser(notice.getCreateUser()); noticeVO.setCreateDept(notice.getCreateDept()); noticeVO.setCreateTime(notice.getCreateTime()); noticeVO.setUpdateUser(notice.getUpdateUser()); noticeVO.setUpdateTime(notice.getUpdateTime()); noticeVO.setStatus(notice.getStatus()); noticeVO.setIsDeleted(notice.getIsDeleted()); noticeVO.setTenantId(notice.getTenantId()); noticeVO.setTitle(notice.getTitle()); noticeVO.setCategory(notice.getCategory()); noticeVO.setContent(notice.getContent()); return noticeVO; } }