PurchasingRPCServiceImpl.java 1.31 KB
package com.diligrp.website.rpc.impl;

import com.diligrp.orders.client.OrderClient;
import com.diligrp.orders.client.domain.output.BaseOutput;
import com.diligrp.website.rpc.PurchasingRPCService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


/**
 * <B>Description</B> 代购订单接口
 * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br />
 * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br />
 * <B>Company</B> 地利集团
 *
 * @author mengxf
 * @createTime 2016年3月9日 下午5:32:34
 */
@Service
public class PurchasingRPCServiceImpl implements PurchasingRPCService {

    private static final Logger log = LoggerFactory.getLogger(PurchasingRPCServiceImpl.class);

    @Resource
    private OrderClient orderClient;

    @Override
    public Integer getValidOrderNumByShop(Long shopId){
        try {
//            BaseOutput<Integer> baseOutput = orderClient.getPurchaseOrderService().getValidOrderNumByShop(shopId);
//            if(baseOutput!=null){
//                return baseOutput.getData();
//            }
        	return null;
        } catch (Exception e) {
            log.error("获取未完结订单数量失败", e);
        }
        return null;
    }
}