yangys
2024-04-04 ed4a5236bab800094be4a8378f5098eebe3de6ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package com.qianwen.smartman.modules.notify.wrapper;
 
import java.util.Objects;
import com.qianwen.smartman.common.cache.DictCache;
import com.qianwen.smartman.common.enums.DictEnum;
import com.qianwen.core.mp.support.BaseEntityWrapper;
import com.qianwen.core.tool.utils.BeanUtil;
import com.qianwen.smartman.modules.notify.entity.Notice;
import com.qianwen.smartman.modules.notify.vo.NoticeVO;
 
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/notify/wrapper/NoticeWrapper.class */
public class NoticeWrapper extends BaseEntityWrapper<Notice, NoticeVO> {
    public static NoticeWrapper build() {
        return new NoticeWrapper();
    }
 
    public NoticeVO entityVO(Notice notice) {
        NoticeVO noticeVO = (NoticeVO) Objects.requireNonNull(BeanUtil.copy(notice, NoticeVO.class));
        String dictValue = DictCache.getValue(DictEnum.NOTICE, noticeVO.getCategory());
        noticeVO.setCategoryName(dictValue);
        return noticeVO;
    }
}