提交 | 用户 | age
|
ddd881
|
1 |
package com.hz.his.feign.service.phis; |
7c680b
|
2 |
|
C |
3 |
import com.hx.resultTool.Result; |
f5bce1
|
4 |
import com.hz.his.dto.order.OrderDto; |
7c680b
|
5 |
import org.springframework.cloud.openfeign.FeignClient; |
C |
6 |
import org.springframework.web.bind.annotation.PostMapping; |
|
7 |
import org.springframework.web.bind.annotation.RequestBody; |
|
8 |
import org.springframework.web.bind.annotation.RequestParam; |
|
9 |
|
|
10 |
/** |
|
11 |
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
|
12 |
*/ |
|
13 |
@FeignClient(name = "phis-provider", path = "/p-his-data", contextId = "order") |
|
14 |
public interface SOrderService { |
|
15 |
|
|
16 |
/** |
|
17 |
* 订单列表 |
|
18 |
*/ |
|
19 |
@PostMapping(value = "/order/list") |
f5bce1
|
20 |
Result orderList(@RequestBody OrderDto orderDto); |
7c680b
|
21 |
|
C |
22 |
/** |
|
23 |
* 订单详情 |
7d2647
|
24 |
* 转换用OrderDetailDt |
7c680b
|
25 |
*/ |
C |
26 |
@PostMapping(value = "/order/detail") |
|
27 |
Result orderDetail(@RequestParam("orderId") String orderId); |
|
28 |
|
fe50cf
|
29 |
/** |
W |
30 |
* 根据商品id查询订单数量 |
|
31 |
*/ |
|
32 |
@PostMapping(value = "/order/numByGoodsId") |
|
33 |
Result queryOrderNumByGoodsId(@RequestParam("goodsId") String goodsId); |
|
34 |
|
|
35 |
/** |
|
36 |
* 根据活动id查询订单数量 |
|
37 |
*/ |
|
38 |
@PostMapping(value = "/order/numByActivityId") |
|
39 |
Result queryOrderNumByActivityId(@RequestParam("activityId") String activityId); |
|
40 |
|
7dbcc1
|
41 |
/** |
W |
42 |
* 订单列表 |
|
43 |
*/ |
|
44 |
@PostMapping(value = "/order/deta/all") |
|
45 |
Result getOrderDetasAll(@RequestBody OrderDto orderDto); |
792cfe
|
46 |
|
W |
47 |
/** |
|
48 |
* 订单列表 |
|
49 |
*/ |
|
50 |
@PostMapping(value = "/getOrderCustomerConfirm") |
|
51 |
Result getOrderCustomerConfirm(@RequestBody OrderDto orderDto); |
7c680b
|
52 |
} |