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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
| package com.java110.feign.user;
|
| import com.alibaba.fastjson.JSONObject;
| import com.java110.common.log.LoggerEngine;
| import com.java110.common.util.ProtocolUtil;
| import org.springframework.cloud.netflix.feign.FeignClient;
| import org.springframework.web.bind.annotation.RequestMapping;
| import org.springframework.web.bind.annotation.RequestParam;
|
| /**
| *
| * 用户服务接口
| * 用户查询,修改,删除 实现
| * Created by wuxw on 2017/4/5.
| */
| @FeignClient(name = "user-service", fallback = UserServiceFallback.class)
| public interface IUserService {
|
| /**
| * 通过User对象中数据查询用户信息
| * 如,用户ID,名称
| * @param data
| * @return
| */
| @RequestMapping("/userService/queryUserInfo")
| public String queryUserInfo(@RequestParam("data") String data);
|
|
| /**
| * 根据购物车信息查询
| * @param busiOrder
| * @return
| */
| @RequestMapping("/userService/queryCustInfoByOlId")
| public String queryCustInfoByOlId(@RequestParam("busiOrder") String busiOrder);
|
|
|
| /**
| * 根据购物车信息查询 需要作废的发起的报文
| * @param busiOrder
| * @return
| */
| @RequestMapping("/userService/queryNeedDeleteCustInfoByOlId")
| public String queryNeedDeleteCustInfoByOlId(@RequestParam("busiOrder") String busiOrder);
|
|
| /**
| * 用户服务信息受理
| * 协议:
| * {
| * 'boCust':[{}],
| * 'boCustAttr':[{}]
| * }
| * @param data
| * @return
| */
| @RequestMapping("/userService/soUserService")
| public String soUserService(@RequestParam("data") String data);
|
|
| /**
| * 这个接口专门用于订单服务受理用,入参为 JSONArray
| *
| * 支持 多个 客户信息 受理
| *
| * 请求协议:
| *
| * {
| "data": [
| {
| "actionTypeCd": "C1",
| "boCust": [
| {
| "custId": "-1",
| "name": "S",
| "email": "-52",
| "cellphone": "17797173942",
| "realName": "wuxw",
| "sex": "1",
| "password": "123456",
| "lanId": "863010",
| "custAdress": "青海省西宁市城中区格兰小镇",
| "custType": "1",
| "openId": "",
| "state": "ADD"
| },
| {
| "custId": "123",
| "name": "S",
| "email": "-52",
| "cellphone": "17797173942",
| "realName": "wuxw",
| "sex": "1",
| "password": "123456",
| "lanId": "863010",
| "custAdress": "青海省西宁市城中区格兰小镇",
| "custType": "1",
| "openId": "",
| "state": "DEL"
| }
| ],
| "boCustAttr": [
| {
| "custId": "123",
| "prodId": "-1",
| "attrCd": "123344",
| "value": "1",
| "state": "ADD"
| },
| {
| "custId": "123",
| "prodId": "-1",
| "attrCd": "123345",
| "value": "1",
| "state": "DEL"
| }
| ]
| }
| ]
| }
|
| *
| * 返回协议:
| *
| * {
| 'RESULT_CODE': '0000',
| 'RESULT_MSG': '成功',
| 'RESULT_INFO': {}
| }
| * @param data
| * @return
| */
| @RequestMapping("/userService/soUserServiceForOrderService")
| public String soUserServiceForOrderService(@RequestParam("data") String data);
|
|
| /**
| * 客户信息处理
| * 协议:
| *{
| * boCust:[{},{}]
| * }
| * @param data
| * @return
| * @throws Exception
| */
| @RequestMapping("/userService/soBoCust")
| public String soBoCust(@RequestParam("data") String data ) ;
|
| /**
| * 客户信息属性处理
| * 协议:
| *{
| * boCustAttr:[{},{}]
| * }
| * @param data
| * @return
| * @throws Exception
| */
| @RequestMapping("/userService/soBoCustAttr")
| public String soBoCustAttr(@RequestParam("data") String data) ;
|
|
| /**
| * 作废订单,根据boId作废订单
| *
| * 接口协议:
| *
| * { 'data': [
|
| {
| 'olId': '123456',
| 'boId': '222222',
| 'actionTypeCd': 'C1'
| },
| {
| 'olId': '123456',
| 'boId': '222222',
| 'actionTypeCd': 'C1'
| },
| {
| 'olId': '123456',
| 'boId': '222222',
| 'actionTypeCd': 'C1'
| }
| ] }
| * @param data
| * @return
| */
| @RequestMapping("/userService/soDeleteCustService")
| public String soDeleteCustService(@RequestParam("data") String data);
|
| }
|
|