package com.hzs.sale.order.provider;

import com.hzs.common.core.domain.R;
import com.hzs.sale.order.ISaOrderItemsServiceApi;
import com.hzs.sale.order.service.ISaOrderItemsService;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 *  销售订单-明细表
 */
@Slf4j
@DubboService
public class SaOrderItemsServiceProvider implements ISaOrderItemsServiceApi {

    @Autowired
    private ISaOrderItemsService iSaOrderItemsService;

    @Override
    public R orderItemsReturn(List<Long> orderItemsIdList, Long userId, Integer pkCountry) {
        if (iSaOrderItemsService.orderItemsReturn(orderItemsIdList, userId, pkCountry)) {
            return R.ok();
        }
        return R.fail();
    }

}
