package com.xunhong.erp.turbo.biz.app.assembler;

import com.xunhong.erp.turbo.api.biz.dto.vo.OrderRebateVO;
import com.xunhong.erp.turbo.biz.domain.entity.OrderRebate;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.NullValueCheckStrategy;

/**
 * @author shenyifei
 */
@Mapper(componentModel = "spring", nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
public interface OrderRebateAssembler {

	@Mapping(target = "purchaseOrderVO", source = "purchaseOrder")
	@Mapping(target = "createdByName", ignore = true)
	@Mapping(target = "createdBy", ignore = true)
	OrderRebateVO toOrderRebateVO(OrderRebate orderRebate);
}
