|
@@ -64,8 +64,431 @@ func AHybRegistRouters() {
|
64
|
64
|
beego.Router("/ahyb/2406", &AHybController{}, "post:Get2406")
|
65
|
65
|
beego.Router("/ahyb/readcardcharge", &AHybController{}, "get:Readcardcharge")
|
66
|
66
|
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+ beego.Router("/ahyb/2406", &AHybController{}, "post:Get2406")
|
|
71
|
+ beego.Router("/ahyb/2406", &AHybController{}, "post:Get2406")
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+}
|
|
75
|
+func (c *JSybController) Get3501() {
|
|
76
|
+ body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
|
|
77
|
+ var respJSON map[string]interface{}
|
|
78
|
+ if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
|
|
79
|
+ utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
|
|
80
|
+ return
|
|
81
|
+ }
|
|
82
|
+
|
|
83
|
+ userJSONBytes, _ := json.Marshal(respJSON["struct_3501s"])
|
|
84
|
+ var struct3501 models.Struct3501
|
|
85
|
+ if err := json.Unmarshal(userJSONBytes, &struct3501); err != nil {
|
|
86
|
+ utils.ErrorLog("解析失败:%v", err)
|
|
87
|
+ return
|
|
88
|
+ }
|
|
89
|
+
|
|
90
|
+ result, request_log := service.Jsyb3501(struct3501)
|
|
91
|
+ saveJsLog(result, request_log, "3501", "库存盘点", struct3501.OrgName)
|
|
92
|
+ var dat2 map[string]interface{}
|
|
93
|
+ if err := json.Unmarshal([]byte(request_log), &dat2); err == nil {
|
|
94
|
+ } else {
|
|
95
|
+ }
|
|
96
|
+ var dat map[string]interface{}
|
|
97
|
+ if err := json.Unmarshal([]byte(result), &dat); err == nil {
|
|
98
|
+ } else {
|
|
99
|
+
|
|
100
|
+ }
|
|
101
|
+ c.ServeSuccessJSON(map[string]interface{}{
|
|
102
|
+ "pre": dat,
|
|
103
|
+ "request_log": dat2,
|
|
104
|
+ })
|
|
105
|
+
|
|
106
|
+}
|
|
107
|
+func (c *JSybController) Get3502() {
|
|
108
|
+ body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
|
|
109
|
+ var respJSON map[string]interface{}
|
|
110
|
+ if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
|
|
111
|
+ utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
|
|
112
|
+ return
|
|
113
|
+ }
|
|
114
|
+
|
|
115
|
+ userJSONBytes, _ := json.Marshal(respJSON["struct_3502s"])
|
|
116
|
+ var struct3502s models.Struct3502
|
|
117
|
+ if err := json.Unmarshal(userJSONBytes, &struct3502s); err != nil {
|
|
118
|
+ utils.ErrorLog("解析失败:%v", err)
|
|
119
|
+ return
|
|
120
|
+ }
|
|
121
|
+
|
|
122
|
+ result, request_log := service.Jsyb3502(struct3502s)
|
|
123
|
+ saveJsLog(result, request_log, "3502", "库存变更", struct3502s.OrgName)
|
|
124
|
+ var dat2 map[string]interface{}
|
|
125
|
+ if err := json.Unmarshal([]byte(request_log), &dat2); err == nil {
|
|
126
|
+ } else {
|
|
127
|
+ }
|
|
128
|
+ var dat map[string]interface{}
|
|
129
|
+ if err := json.Unmarshal([]byte(result), &dat); err == nil {
|
|
130
|
+ } else {
|
|
131
|
+
|
|
132
|
+ }
|
|
133
|
+ c.ServeSuccessJSON(map[string]interface{}{
|
|
134
|
+ "pre": dat,
|
|
135
|
+ "request_log": dat2,
|
|
136
|
+ })
|
|
137
|
+
|
|
138
|
+}
|
|
139
|
+func (c *JSybController) Get3503() {
|
|
140
|
+ body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
|
|
141
|
+ var respJSON map[string]interface{}
|
|
142
|
+ if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
|
|
143
|
+ utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
|
|
144
|
+ return
|
|
145
|
+ }
|
|
146
|
+
|
|
147
|
+ userJSONBytes, _ := json.Marshal(respJSON["struct_3503s"])
|
|
148
|
+ var struct3503 models.Struct3503
|
|
149
|
+ if err := json.Unmarshal(userJSONBytes, &struct3503); err != nil {
|
|
150
|
+ utils.ErrorLog("解析失败:%v", err)
|
|
151
|
+ return
|
|
152
|
+ }
|
|
153
|
+ fmt.Println(struct3503)
|
|
154
|
+
|
|
155
|
+ result, request_log := service.Jsyb3503(struct3503)
|
|
156
|
+ saveJsLog(result, request_log, "3503", "库存采购", struct3503.OrgName)
|
|
157
|
+ var dat2 map[string]interface{}
|
|
158
|
+ if err := json.Unmarshal([]byte(request_log), &dat2); err == nil {
|
|
159
|
+ } else {
|
|
160
|
+ }
|
|
161
|
+ var dat map[string]interface{}
|
|
162
|
+ if err := json.Unmarshal([]byte(result), &dat); err == nil {
|
|
163
|
+ } else {
|
|
164
|
+
|
|
165
|
+ }
|
|
166
|
+ c.ServeSuccessJSON(map[string]interface{}{
|
|
167
|
+ "pre": dat,
|
|
168
|
+ "request_log": dat2,
|
|
169
|
+ })
|
|
170
|
+
|
|
171
|
+}
|
|
172
|
+func (c *JSybController) Get3504() {
|
|
173
|
+ body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
|
|
174
|
+ var respJSON map[string]interface{}
|
|
175
|
+ if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
|
|
176
|
+ utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
|
|
177
|
+ return
|
|
178
|
+ }
|
|
179
|
+
|
|
180
|
+ userJSONBytes, _ := json.Marshal(respJSON["struct_3504s"])
|
|
181
|
+ var struct3504 []models.Struct3504
|
|
182
|
+ if err := json.Unmarshal(userJSONBytes, &struct3504); err != nil {
|
|
183
|
+ utils.ErrorLog("解析失败:%v", err)
|
|
184
|
+ return
|
|
185
|
+ }
|
|
186
|
+
|
|
187
|
+ result, request_log := service.Jsyb3504(struct3504[0])
|
|
188
|
+ saveJsLog(result, request_log, "3504", "库存盘点", struct3504[0].OrgName)
|
|
189
|
+ var dat2 map[string]interface{}
|
|
190
|
+ if err := json.Unmarshal([]byte(request_log), &dat2); err == nil {
|
|
191
|
+ } else {
|
|
192
|
+ }
|
|
193
|
+ var dat map[string]interface{}
|
|
194
|
+ if err := json.Unmarshal([]byte(result), &dat); err == nil {
|
|
195
|
+ } else {
|
|
196
|
+
|
|
197
|
+ }
|
|
198
|
+ c.ServeSuccessJSON(map[string]interface{}{
|
|
199
|
+ "pre": dat,
|
|
200
|
+ "request_log": dat2,
|
|
201
|
+ })
|
|
202
|
+
|
|
203
|
+}
|
|
204
|
+func (c *JSybController) Get3505() {
|
|
205
|
+ body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
|
|
206
|
+ var respJSON map[string]interface{}
|
|
207
|
+ if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
|
|
208
|
+ utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
|
|
209
|
+ return
|
|
210
|
+ }
|
|
211
|
+
|
|
212
|
+ userJSONBytes, _ := json.Marshal(respJSON["struct_3505s"])
|
|
213
|
+ var struct3505 models.Struct3505
|
|
214
|
+ if err := json.Unmarshal(userJSONBytes, &struct3505); err != nil {
|
|
215
|
+ utils.ErrorLog("解析失败:%v", err)
|
|
216
|
+ return
|
|
217
|
+ }
|
|
218
|
+
|
|
219
|
+ result, request_log := service.Jsyb3505(struct3505)
|
|
220
|
+ saveJsLog(result, request_log, "3505", "销售", struct3505.OrgName)
|
|
221
|
+ var dat2 map[string]interface{}
|
|
222
|
+ if err := json.Unmarshal([]byte(request_log), &dat2); err == nil {
|
|
223
|
+ } else {
|
|
224
|
+ }
|
|
225
|
+ var dat map[string]interface{}
|
|
226
|
+ if err := json.Unmarshal([]byte(result), &dat); err == nil {
|
|
227
|
+ } else {
|
|
228
|
+
|
|
229
|
+ }
|
|
230
|
+ c.ServeSuccessJSON(map[string]interface{}{
|
|
231
|
+ "pre": dat,
|
|
232
|
+ "request_log": dat2,
|
|
233
|
+ })
|
|
234
|
+
|
|
235
|
+}
|
|
236
|
+func (c *JSybController) Get3506() {
|
|
237
|
+ body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
|
|
238
|
+ var respJSON map[string]interface{}
|
|
239
|
+ if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
|
|
240
|
+ utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
|
|
241
|
+ return
|
|
242
|
+ }
|
|
243
|
+
|
|
244
|
+ userJSONBytes, _ := json.Marshal(respJSON["struct_3506s"])
|
|
245
|
+ var struct3506 models.Struct3506
|
|
246
|
+ if err := json.Unmarshal(userJSONBytes, &struct3506); err != nil {
|
|
247
|
+ utils.ErrorLog("解析失败:%v", err)
|
|
248
|
+ return
|
|
249
|
+ }
|
|
250
|
+
|
|
251
|
+ result, request_log := service.Jsyb3506(struct3506)
|
|
252
|
+ saveJsLog(result, request_log, "3506", "销售退库", struct3506.OrgName)
|
|
253
|
+ var dat2 map[string]interface{}
|
|
254
|
+ if err := json.Unmarshal([]byte(request_log), &dat2); err == nil {
|
|
255
|
+ } else {
|
|
256
|
+ }
|
|
257
|
+ var dat map[string]interface{}
|
|
258
|
+ if err := json.Unmarshal([]byte(result), &dat); err == nil {
|
|
259
|
+ } else {
|
|
260
|
+
|
|
261
|
+ }
|
|
262
|
+ c.ServeSuccessJSON(map[string]interface{}{
|
|
263
|
+ "pre": dat,
|
|
264
|
+ "request_log": dat2,
|
|
265
|
+ })
|
|
266
|
+
|
|
267
|
+}
|
|
268
|
+func (c *JSybController) Get3507() {
|
|
269
|
+ body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
|
|
270
|
+ var respJSON map[string]interface{}
|
|
271
|
+ if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
|
|
272
|
+ utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
|
|
273
|
+ return
|
|
274
|
+ }
|
|
275
|
+
|
|
276
|
+ userJSONBytes, _ := json.Marshal(respJSON["struct_3507s"])
|
|
277
|
+ var struct3507 models.Struct3507
|
|
278
|
+ if err := json.Unmarshal(userJSONBytes, &struct3507); err != nil {
|
|
279
|
+ utils.ErrorLog("解析失败:%v", err)
|
|
280
|
+ return
|
|
281
|
+ }
|
|
282
|
+
|
|
283
|
+ result, request_log := service.Jsyb3507(struct3507)
|
|
284
|
+ saveJsLog(result, request_log, "3507", "库存盘点", struct3507.OrgName)
|
|
285
|
+ var dat2 map[string]interface{}
|
|
286
|
+ if err := json.Unmarshal([]byte(request_log), &dat2); err == nil {
|
|
287
|
+ } else {
|
|
288
|
+ }
|
|
289
|
+ var dat map[string]interface{}
|
|
290
|
+ if err := json.Unmarshal([]byte(result), &dat); err == nil {
|
|
291
|
+ } else {
|
|
292
|
+
|
|
293
|
+ }
|
|
294
|
+ c.ServeSuccessJSON(map[string]interface{}{
|
|
295
|
+ "pre": dat,
|
|
296
|
+ "request_log": dat2,
|
|
297
|
+ })
|
|
298
|
+
|
|
299
|
+}
|
|
300
|
+func (c *JSybController) Get3508() {
|
|
301
|
+ body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
|
|
302
|
+ var respJSON map[string]interface{}
|
|
303
|
+ if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
|
|
304
|
+ utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
|
|
305
|
+ return
|
|
306
|
+ }
|
|
307
|
+
|
|
308
|
+ userJSONBytes, _ := json.Marshal(respJSON["struct_3508s"])
|
|
309
|
+ var struct3508 models.Struct3508
|
|
310
|
+ if err := json.Unmarshal(userJSONBytes, &struct3508); err != nil {
|
|
311
|
+ utils.ErrorLog("解析失败:%v", err)
|
|
312
|
+ return
|
|
313
|
+ }
|
|
314
|
+
|
|
315
|
+ result, request_log := service.Jsyb3508(struct3508)
|
|
316
|
+ saveJsLog(result, request_log, "3508", "库存查询", struct3508.OrgName)
|
|
317
|
+ var dat2 map[string]interface{}
|
|
318
|
+ if err := json.Unmarshal([]byte(request_log), &dat2); err == nil {
|
|
319
|
+ } else {
|
|
320
|
+ }
|
|
321
|
+ var dat map[string]interface{}
|
|
322
|
+ if err := json.Unmarshal([]byte(result), &dat); err == nil {
|
|
323
|
+ } else {
|
|
324
|
+
|
|
325
|
+ }
|
|
326
|
+ c.ServeSuccessJSON(map[string]interface{}{
|
|
327
|
+ "pre": dat,
|
|
328
|
+ "request_log": dat2,
|
|
329
|
+ })
|
|
330
|
+
|
|
331
|
+}
|
|
332
|
+func (c *JSybController) Get3509() {
|
|
333
|
+ body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
|
|
334
|
+ var respJSON map[string]interface{}
|
|
335
|
+ if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
|
|
336
|
+ utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
|
|
337
|
+ return
|
|
338
|
+ }
|
|
339
|
+
|
|
340
|
+ userJSONBytes, _ := json.Marshal(respJSON["struct_3509s"])
|
|
341
|
+ var struct3509 models.Struct3509
|
|
342
|
+ if err := json.Unmarshal(userJSONBytes, &struct3509); err != nil {
|
|
343
|
+ utils.ErrorLog("解析失败:%v", err)
|
|
344
|
+ return
|
|
345
|
+ }
|
|
346
|
+
|
|
347
|
+ result, request_log := service.Jsyb3509(struct3509)
|
|
348
|
+ saveJsLog(result, request_log, "3509", "库存查询", struct3509.OrgName)
|
|
349
|
+ var dat2 map[string]interface{}
|
|
350
|
+ if err := json.Unmarshal([]byte(request_log), &dat2); err == nil {
|
|
351
|
+ } else {
|
|
352
|
+ }
|
|
353
|
+ var dat map[string]interface{}
|
|
354
|
+ if err := json.Unmarshal([]byte(result), &dat); err == nil {
|
|
355
|
+ } else {
|
|
356
|
+
|
|
357
|
+ }
|
|
358
|
+ c.ServeSuccessJSON(map[string]interface{}{
|
|
359
|
+ "pre": dat,
|
|
360
|
+ "request_log": dat2,
|
|
361
|
+ })
|
|
362
|
+
|
|
363
|
+}
|
|
364
|
+func (c *JSybController) Get3510() {
|
|
365
|
+ body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
|
|
366
|
+ var respJSON map[string]interface{}
|
|
367
|
+ if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
|
|
368
|
+ utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
|
|
369
|
+ return
|
|
370
|
+ }
|
|
371
|
+
|
|
372
|
+ userJSONBytes, _ := json.Marshal(respJSON["struct_3510s"])
|
|
373
|
+ var struct3510 models.Struct3510
|
|
374
|
+ if err := json.Unmarshal(userJSONBytes, &struct3510); err != nil {
|
|
375
|
+ utils.ErrorLog("解析失败:%v", err)
|
|
376
|
+ return
|
|
377
|
+ }
|
|
378
|
+
|
|
379
|
+ result, request_log := service.Jsyb3510(struct3510)
|
|
380
|
+ saveJsLog(result, request_log, "3510", "库存盘点", struct3510.OrgName)
|
|
381
|
+ var dat2 map[string]interface{}
|
|
382
|
+ if err := json.Unmarshal([]byte(request_log), &dat2); err == nil {
|
|
383
|
+ } else {
|
|
384
|
+ }
|
|
385
|
+ var dat map[string]interface{}
|
|
386
|
+ if err := json.Unmarshal([]byte(result), &dat); err == nil {
|
|
387
|
+ } else {
|
|
388
|
+
|
|
389
|
+ }
|
|
390
|
+ c.ServeSuccessJSON(map[string]interface{}{
|
|
391
|
+ "pre": dat,
|
|
392
|
+ "request_log": dat2,
|
|
393
|
+ })
|
|
394
|
+
|
|
395
|
+}
|
|
396
|
+func (c *JSybController) Get3511() {
|
|
397
|
+ body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
|
|
398
|
+ var respJSON map[string]interface{}
|
|
399
|
+ if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
|
|
400
|
+ utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
|
|
401
|
+ return
|
|
402
|
+ }
|
|
403
|
+
|
|
404
|
+ userJSONBytes, _ := json.Marshal(respJSON["struct_3511s"])
|
|
405
|
+ var struct3511 models.Struct3511
|
|
406
|
+ if err := json.Unmarshal(userJSONBytes, &struct3511); err != nil {
|
|
407
|
+ utils.ErrorLog("解析失败:%v", err)
|
|
408
|
+ return
|
|
409
|
+ }
|
|
410
|
+
|
|
411
|
+ result, request_log := service.Jsyb3511(struct3511)
|
|
412
|
+ saveJsLog(result, request_log, "3511", "库存查询", struct3511.OrgName)
|
|
413
|
+ var dat2 map[string]interface{}
|
|
414
|
+ if err := json.Unmarshal([]byte(request_log), &dat2); err == nil {
|
|
415
|
+ } else {
|
|
416
|
+ }
|
|
417
|
+ var dat map[string]interface{}
|
|
418
|
+ if err := json.Unmarshal([]byte(result), &dat); err == nil {
|
|
419
|
+ } else {
|
|
420
|
+
|
|
421
|
+ }
|
|
422
|
+ c.ServeSuccessJSON(map[string]interface{}{
|
|
423
|
+ "pre": dat,
|
|
424
|
+ "request_log": dat2,
|
|
425
|
+ })
|
|
426
|
+
|
|
427
|
+}
|
|
428
|
+func (c *JSybController) Get3512() {
|
|
429
|
+ body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
|
|
430
|
+ var respJSON map[string]interface{}
|
|
431
|
+ if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
|
|
432
|
+ utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
|
|
433
|
+ return
|
|
434
|
+ }
|
|
435
|
+
|
|
436
|
+ userJSONBytes, _ := json.Marshal(respJSON["struct_3512s"])
|
|
437
|
+ var struct3512 models.Struct3512
|
|
438
|
+ if err := json.Unmarshal(userJSONBytes, &struct3512); err != nil {
|
|
439
|
+ utils.ErrorLog("解析失败:%v", err)
|
|
440
|
+ return
|
|
441
|
+ }
|
|
442
|
+
|
|
443
|
+ result, request_log := service.Jsyb3512(struct3512)
|
|
444
|
+ saveJsLog(result, request_log, "3512", "3512查询", struct3512.OrgName)
|
|
445
|
+ var dat2 map[string]interface{}
|
|
446
|
+ if err := json.Unmarshal([]byte(request_log), &dat2); err == nil {
|
|
447
|
+ } else {
|
|
448
|
+ }
|
|
449
|
+ var dat map[string]interface{}
|
|
450
|
+ if err := json.Unmarshal([]byte(result), &dat); err == nil {
|
|
451
|
+ } else {
|
|
452
|
+
|
|
453
|
+ }
|
|
454
|
+ c.ServeSuccessJSON(map[string]interface{}{
|
|
455
|
+ "pre": dat,
|
|
456
|
+ "request_log": dat2,
|
|
457
|
+ })
|
|
458
|
+
|
67
|
459
|
}
|
|
460
|
+func (c *JSybController) Get3513() {
|
|
461
|
+ body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
|
|
462
|
+ var respJSON map[string]interface{}
|
|
463
|
+ if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
|
|
464
|
+ utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
|
|
465
|
+ return
|
|
466
|
+ }
|
|
467
|
+
|
|
468
|
+ userJSONBytes, _ := json.Marshal(respJSON["struct_3513s"])
|
|
469
|
+ var struct3513 models.Struct3513
|
|
470
|
+ if err := json.Unmarshal(userJSONBytes, &struct3513); err != nil {
|
|
471
|
+ utils.ErrorLog("解析失败:%v", err)
|
|
472
|
+ return
|
|
473
|
+ }
|
68
|
474
|
|
|
475
|
+ result, request_log := service.Jsyb3513(struct3513)
|
|
476
|
+ saveJsLog(result, request_log, "3513", "库存盘点", struct3513.OrgName)
|
|
477
|
+ var dat2 map[string]interface{}
|
|
478
|
+ if err := json.Unmarshal([]byte(request_log), &dat2); err == nil {
|
|
479
|
+ } else {
|
|
480
|
+ }
|
|
481
|
+ var dat map[string]interface{}
|
|
482
|
+ if err := json.Unmarshal([]byte(result), &dat); err == nil {
|
|
483
|
+ } else {
|
|
484
|
+
|
|
485
|
+ }
|
|
486
|
+ c.ServeSuccessJSON(map[string]interface{}{
|
|
487
|
+ "pre": dat,
|
|
488
|
+ "request_log": dat2,
|
|
489
|
+ })
|
|
490
|
+
|
|
491
|
+}
|
69
|
492
|
func (c *AHybController) Readcardcharge() {
|
70
|
493
|
fixmedins_code := c.GetString("fixmedins_code")
|
71
|
494
|
secret_key := c.GetString("secret_key")
|