yangys
2024-03-27 e48aa2ac8dea1be5db11c63edf0b912c4ad5ce65
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package com.qianwen.smartman.modules.notify.wrapper;
 
import java.util.Objects;
import java.util.Optional;
import com.qianwen.core.mp.support.BaseEntityWrapper;
import com.qianwen.core.tool.utils.BeanUtil;
import com.qianwen.core.tool.utils.SpringUtil;
import com.qianwen.smartman.modules.notify.dto.NotifyTemplateDTO;
import com.qianwen.smartman.modules.notify.dto.NotifyTemplateResponseDTO;
import com.qianwen.smartman.modules.system.service.IDictService;
 
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/notify/wrapper/NotifyTemplateWrapper.class */
public class NotifyTemplateWrapper extends BaseEntityWrapper<NotifyTemplateDTO, NotifyTemplateResponseDTO> {
    public static NotifyTemplateWrapper build() {
        return new NotifyTemplateWrapper();
    }
 
    public NotifyTemplateResponseDTO entityVO(NotifyTemplateDTO entity) {
        NotifyTemplateResponseDTO notifyTemplateResponseDTO = (NotifyTemplateResponseDTO) Objects.requireNonNull(BeanUtil.copyProperties(entity, NotifyTemplateResponseDTO.class));
        String businessName = (String) Optional.ofNullable(((IDictService) SpringUtil.getBean(IDictService.class)).getValue("notify-biz-key", notifyTemplateResponseDTO.getBusiness())).orElse("");
        notifyTemplateResponseDTO.setBusinessName(businessName);
        return notifyTemplateResponseDTO;
    }
}