package com.qianwen.smartman.modules.notify.convert;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import java.util.List;
|
import org.mapstruct.Builder;
|
import org.mapstruct.Mapper;
|
import org.mapstruct.Mappings;
|
import org.mapstruct.factory.Mappers;
|
import com.qianwen.smartman.modules.notify.dto.BusinessNotifyDTO;
|
import com.qianwen.smartman.modules.notify.dto.BusinessNotifyQueryDTO;
|
import com.qianwen.smartman.modules.notify.dto.NotifyBusinessTreeDTO;
|
import com.qianwen.smartman.modules.notify.entity.BusinessNotify;
|
import com.qianwen.smartman.modules.notify.vo.NotifyBusinessTreeVO;
|
|
@Mapper(builder = @Builder(disableBuilder = true))
|
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/notify/convert/BusinessNotifyConvert.class */
|
public interface BusinessNotifyConvert {
|
public static final BusinessNotifyConvert INSTANCE = (BusinessNotifyConvert) Mappers.getMapper(BusinessNotifyConvert.class);
|
|
@Mappings({})
|
BusinessNotify convertToEntity(BusinessNotifyQueryDTO sources);
|
|
@Mappings({})
|
BusinessNotify convertToEntity(BusinessNotifyDTO sources);
|
|
@Mappings({})
|
BusinessNotifyDTO convertToDTO(BusinessNotify sources);
|
|
@Mappings({})
|
List<BusinessNotifyDTO> convertToDTOList(List<BusinessNotify> sources);
|
|
@Mappings({})
|
List<NotifyBusinessTreeVO> convertDTOToVO(List<NotifyBusinessTreeDTO> business);
|
|
@Mappings({})
|
default IPage<BusinessNotifyDTO> convertToPage(IPage<BusinessNotify> doiPage) {
|
List<BusinessNotify> records = doiPage.getRecords();
|
List<BusinessNotifyDTO> boRecords = convertToDTOList(records);
|
Page page = new Page(doiPage.getCurrent(), doiPage.getSize(), doiPage.getTotal());
|
page.setRecords(boRecords);
|
return page;
|
}
|
}
|