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

import com.xunhong.erp.turbo.api.biz.api.OrderRebateServiceI;
import com.xunhong.erp.turbo.api.biz.dto.qry.OrderRebatePageQry;
import com.xunhong.erp.turbo.api.biz.dto.vo.OrderRebateVO;
import com.xunhong.erp.turbo.base.dto.PageDTO;
import com.xunhong.erp.turbo.biz.app.executor.query.OrderRebatePageQryExe;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

/**
 * @author shenyifei
 */
@Slf4j
@Service
@DubboService(interfaceClass = OrderRebateServiceI.class, version = "1.0.0")
@RequiredArgsConstructor
public class OrderRebateServiceImpl implements OrderRebateServiceI {

	private final OrderRebatePageQryExe orderRebatePageQryExe;

	@Override
	public PageDTO<OrderRebateVO> page(OrderRebatePageQry orderRebatePageQry) {
		return PageDTO.of(orderRebatePageQryExe.execute(orderRebatePageQry));
	}
}

