PurchasingRPCServiceImpl.java
1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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;
}
}