提交 | 用户 | age
|
ddd881
|
1 |
package com.hz.his.feign.service.phis; |
7c680b
|
2 |
|
C |
3 |
import com.hx.resultTool.Result; |
|
4 |
import com.hz.his.dto.PageDto; |
f5bce1
|
5 |
import com.hz.his.dto.TimeDto; |
F |
6 |
import com.hz.his.dto.project.ProjectDto; |
7c680b
|
7 |
import org.springframework.cloud.openfeign.FeignClient; |
C |
8 |
import org.springframework.web.bind.annotation.PostMapping; |
|
9 |
import org.springframework.web.bind.annotation.RequestBody; |
|
10 |
import org.springframework.web.bind.annotation.RequestParam; |
|
11 |
|
|
12 |
import java.util.List; |
77622b
|
13 |
import java.util.Map; |
7c680b
|
14 |
|
C |
15 |
/** |
|
16 |
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
|
17 |
*/ |
|
18 |
@FeignClient(name="phis-provider",path = "/p-his-data",contextId = "project") |
|
19 |
public interface SProjectService { |
|
20 |
|
|
21 |
/** |
|
22 |
* 获取项目spu详情 |
|
23 |
* @param projectId 公共标识 |
|
24 |
* @return Result |
|
25 |
*/ |
|
26 |
@PostMapping(value = "/project/spu/detail") |
|
27 |
Result getProjectSpuDetail(@RequestParam("projectId") String projectId); |
|
28 |
|
|
29 |
/** |
|
30 |
* 获取项目sku详情 |
|
31 |
* @param projectId 公共标识 |
|
32 |
* @return Result |
|
33 |
*/ |
|
34 |
@PostMapping(value = "/project/sku/detail") |
|
35 |
Result getProjectSkuDetail(@RequestParam("projectId") String projectId); |
|
36 |
|
|
37 |
/** |
|
38 |
* 获取项目sku列表 |
|
39 |
* @param spuId 公共标识 |
|
40 |
* @return Result |
|
41 |
*/ |
|
42 |
@PostMapping(value = "/project/sku/spuId/list") |
|
43 |
List<String> getSkuListBySpuId(@RequestParam("spuId") String spuId); |
|
44 |
|
|
45 |
|
|
46 |
/** |
|
47 |
* 获取项目列表 |
|
48 |
* @return Result |
|
49 |
*/ |
|
50 |
@PostMapping(value = "/project/page/list") |
|
51 |
Result getProjectList(@RequestBody PageDto pageDto); |
|
52 |
|
|
53 |
/** |
|
54 |
* 获取项目门店价格列表 |
|
55 |
* @return Result |
|
56 |
*/ |
|
57 |
@PostMapping(value = "/project/sku/getProjectShopPrice") |
|
58 |
Result getProjectShopPrice(@RequestBody String id); |
d6712e
|
59 |
|
94e364
|
60 |
/** |
F |
61 |
* 获取项目门店价格更新 |
|
62 |
* @return Result |
|
63 |
*/ |
|
64 |
@PostMapping(value = "/project/sku/shop/price/update") |
f5bce1
|
65 |
Result getUpdateShopPrice(@RequestBody TimeDto timeDto); |
d6712e
|
66 |
|
F |
67 |
/** |
|
68 |
* 获取项目sku列表(同步使用) |
|
69 |
* @return Result |
|
70 |
*/ |
|
71 |
@PostMapping(value = "/project/page/sku/update") |
f5bce1
|
72 |
Result getUpdateProject(@RequestBody ProjectDto projectDto); |
d6712e
|
73 |
|
F |
74 |
/** |
|
75 |
* 获取项目spu列表(同步使用) |
|
76 |
* @return Result |
|
77 |
*/ |
|
78 |
@PostMapping(value = "/project/page/spu/update") |
f5bce1
|
79 |
Result getUpdateSpuProject(@RequestBody ProjectDto projectDto); |
1e5b85
|
80 |
|
F |
81 |
/** |
f075bf
|
82 |
* 获取当前项目sku规格和其spu规格(同步使用) |
1e5b85
|
83 |
* @return Result |
f075bf
|
84 |
* 返回使用SpecDt |
1e5b85
|
85 |
*/ |
F |
86 |
@PostMapping(value = "/project/page/spu/spec/update") |
f075bf
|
87 |
Result getUpdateSpuSpecProject(@RequestParam("projectId") String projectId); |
F |
88 |
|
|
89 |
/** |
|
90 |
* 获取当前项目sku和对应的spu信息 |
|
91 |
* @return Result |
|
92 |
*/ |
|
93 |
@PostMapping(value = "/project/sku/spu") |
|
94 |
Result getSkuAndSpu(@RequestParam("projectId") String projectId); |
1e5b85
|
95 |
|
9a9c5f
|
96 |
/** |
W |
97 |
* 判断是否为医疗项目 |
|
98 |
* @return Result |
|
99 |
*/ |
|
100 |
@PostMapping(value = "/project/check/medical") |
|
101 |
Result checkMedicalIitems(@RequestBody ProjectDto projectDto); |
|
102 |
|
77622b
|
103 |
/** |
R |
104 |
* his助手,门店助手 开单时 使用查询项目列表 |
|
105 |
* @param projectDto |
|
106 |
* @return |
|
107 |
*/ |
|
108 |
@PostMapping(value = "/project/list/by/type") |
55711b
|
109 |
Result getProjectByTypeId(@RequestBody ProjectDto projectDto); |
77622b
|
110 |
|
55711b
|
111 |
/**查询项目积分抵扣现金的比例*/ |
e8d1de
|
112 |
@PostMapping(value = "/project/integral/cash/rate") |
a8ee1e
|
113 |
Result getIntegralCashRate(@RequestBody ProjectDto projectDto); |
7c680b
|
114 |
} |