SellerServeMerchantStatDTOConvert.java 867 Bytes
package cn.com.glsx.busassistant.converter;

import cn.com.glsx.busassistant.response.outputValue.StaffOutputValueStatItemResponse;
import cn.com.glsx.dj.smartcarlife.dto.staffStat.SellerServeMerchantStatDTO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

@Mapper
public interface SellerServeMerchantStatDTOConvert {
    SellerServeMerchantStatDTOConvert INSTANCE = Mappers.getMapper(SellerServeMerchantStatDTOConvert.class);


    @Mappings({
            @Mapping(source = "merchantId",target = "shopMerchantId"),
            @Mapping(source = "merchantName",target = "shopMerchantName"),
            @Mapping(source = "toShopOrderCount",target = "orderCount")
    })
    StaffOutputValueStatItemResponse toStaffOutputValueStatItemResponse(SellerServeMerchantStatDTO sourceEntity);
}