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 { 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; } }