package cn.superdesk.uniorder.dubbo.provider.order.base;

import cn.superdesk.uniorder.common.rest.response.R;
import cn.superdesk.uniorder.dto.vo.unified.UnifiedOrderReturnVo;
import cn.superdesk.uniorder.dto.vo.unified.UnifiedOrderCommonHeadSum;
import cn.superdesk.uniorder.dto.vo.unified.ViewUnifiedOrderReturn;
import cn.superdesk.uniorder.service.order.base.UnifiedOrderReturnService;
import cn.superdesk.uniorder.dubbo.facade.order.base.DubboUnifiedRefundOrderService;
import com.alibaba.dubbo.config.annotation.Service;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;


@Slf4j
@Service(version = "1.0.0", retries = -1, timeout = 10000)
public class DubboUnifiedOrderReturnServiceImpl implements DubboUnifiedRefundOrderService {

	@Autowired
	private UnifiedOrderReturnService unifiedOrderReturnService;

	@Override
	public R<List<UnifiedOrderReturnVo>> getPage(Map<String, Object> params, int pageNum, int pageSize) {

		return unifiedOrderReturnService.findViewReturnVo(params, pageNum, pageSize);
	}

	@Override
	public UnifiedOrderCommonHeadSum getPageH(Map<String, Object> params) {

		return unifiedOrderReturnService.getPageHeadSum(params);
	}

	@Override
	public List<ViewUnifiedOrderReturn> findView(Map<String, Object> returnparams) {

		return unifiedOrderReturnService.findView(returnparams);
	}
}
