陈少旭 10 months ago
parent
commit
18561ba22c
6 changed files with 2127 additions and 329 deletions
  1. 628 24
      controllers/js/jsyb_controller.go
  2. 1095 131
      controllers/sg/his_api_controller.go
  3. 2 4
      main.go
  4. 219 0
      models/model32xx.go
  5. 13 1
      service/his_service.go
  6. 170 169
      service/jsyb_service.go

+ 628 - 24
controllers/js/jsyb_controller.go View File

@@ -50,8 +50,8 @@ func JSybRegistRouters() {
50 50
 	beego.Router("/jsyb/4101", &JSybController{}, "post:Get4101")
51 51
 	beego.Router("/jsyb/readcard", &JSybController{}, "get:ReadCard")
52 52
 
53
-	beego.Router("/jsyb/3260", &JSybController{}, "post:Get3260")
54
-	beego.Router("/jsyb/3261", &JSybController{}, "post:Get3261")
53
+	beego.Router("/jsyb/3260", &JSybController{}, "get:Get3260")
54
+	beego.Router("/jsyb/3261", &JSybController{}, "get:Get3261")
55 55
 	beego.Router("/jsyb/3262", &JSybController{}, "post:Get3262")
56 56
 	beego.Router("/jsyb/3263", &JSybController{}, "post:Get3263")
57 57
 	beego.Router("/jsyb/3264", &JSybController{}, "post:Get3264")
@@ -72,80 +72,684 @@ func JSybRegistRouters() {
72 72
 }
73 73
 
74 74
 func (c *JSybController) Get3260() {
75
-	service.Jxyb3260()
75
+	org_name := c.GetString("org_name")
76
+	doctor := c.GetString("doctor")
77
+	fixmedins_code := c.GetString("fixmedins_code")
78
+	insuplc_admdvs := c.GetString("insuplc_admdvs")
79
+	mdtrtarea_admvs := c.GetString("mdtrtarea_admvs")
80
+	secret_key := c.GetString("secret_key")
81
+	url := c.GetString("url")
82
+	ak := c.GetString("ak")
83
+	cainfo := c.GetString("cainfo")
84
+	result, request := service.Jxyb3260(mdtrtarea_admvs, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, url, ak, secret_key, cainfo)
85
+	saveJsLog(result, request, "3260", "3260", org_name)
86
+	var dat2 map[string]interface{}
87
+	if err := json.Unmarshal([]byte(request), &dat2); err == nil {
88
+	} else {
89
+	}
90
+	var dat map[string]interface{}
91
+	if err := json.Unmarshal([]byte(result), &dat); err == nil {
92
+	} else {
93
+
94
+	}
95
+	c.ServeSuccessJSON(map[string]interface{}{
96
+		"pre":         dat,
97
+		"request_log": dat2,
98
+	})
99
+
76 100
 }
77 101
 func (c *JSybController) Get3261() {
78
-	service.Jxyb3261()
102
+	org_name := c.GetString("org_name")
103
+	doctor := c.GetString("doctor")
104
+	fixmedins_code := c.GetString("fixmedins_code")
105
+	insuplc_admdvs := c.GetString("insuplc_admdvs")
106
+	mdtrtarea_admvs := c.GetString("mdtrtarea_admvs")
107
+	secret_key := c.GetString("secret_key")
108
+	url := c.GetString("url")
109
+	ak := c.GetString("ak")
110
+	cainfo := c.GetString("cainfo")
111
+	month := c.GetString("month")
112
+	result, request := service.Jxyb3261(month, mdtrtarea_admvs, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, url, ak, secret_key, cainfo)
113
+	saveJsLog(result, request, "3261", "3261", org_name)
114
+	var dat2 map[string]interface{}
115
+	if err := json.Unmarshal([]byte(request), &dat2); err == nil {
116
+	} else {
117
+	}
118
+	var dat map[string]interface{}
119
+	if err := json.Unmarshal([]byte(result), &dat); err == nil {
120
+	} else {
79 121
 
122
+	}
123
+	c.ServeSuccessJSON(map[string]interface{}{
124
+		"pre":         dat,
125
+		"request_log": dat2,
126
+	})
80 127
 }
81 128
 func (c *JSybController) Get3262() {
82
-	service.Jxyb3262()
129
+	body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
130
+	var respJSON map[string]interface{}
131
+	if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
132
+		utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
133
+		return
134
+	}
135
+	userJSONBytes, _ := json.Marshal(respJSON["datas"])
136
+	var hp []models.FixMonRecDetailFileIn
137
+	if err := json.Unmarshal(userJSONBytes, &hp); err != nil {
138
+		utils.ErrorLog("解析失败:%v", err)
139
+		return
140
+	}
83 141
 
142
+	userJSONBytes2, _ := json.Marshal(respJSON["fund"])
143
+	var fund []models.Fund
144
+	if err := json.Unmarshal(userJSONBytes2, &fund); err != nil {
145
+		utils.ErrorLog("解析失败:%v", err)
146
+		return
147
+	}
148
+	org_name := respJSON["org_name"].(string)
149
+	doctor := respJSON["doctor"].(string)
150
+	fixmedins_code := respJSON["fixmedins_code"].(string)
151
+	insuplc_admdvs := respJSON["insuplc_admdvs"].(string)
152
+	mdtrtarea_admvs := respJSON["mdtrtarea_admvs"].(string)
153
+	secret_key := respJSON["secret_key"].(string)
154
+	url := respJSON["url"].(string)
155
+	ak := respJSON["ak"].(string)
156
+	cainfo := respJSON["cainfo"].(string)
157
+	upld_btch := respJSON["upld_btch"].(string)
158
+	fix_fill_dept := respJSON["fix_fill_dept"].(string)
159
+	fix_fill_psn_id := respJSON["fix_fill_psn_id"].(string)
160
+	fix_fill_psn := respJSON["fix_fill_psn"].(string)
161
+	fix_fill_date := respJSON["fix_fill_date"].(string)
162
+	stmt_loc := respJSON["stmt_loc"].(string)
163
+
164
+	result, request := service.Jxyb3262(org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, url, ak, secret_key, cainfo, upld_btch, fix_fill_dept, fix_fill_psn_id, fix_fill_psn, fix_fill_date, stmt_loc, hp, fund)
165
+	saveJsLog(result, request, "3262", "3262", org_name)
166
+	var dat2 map[string]interface{}
167
+	if err := json.Unmarshal([]byte(request), &dat2); err == nil {
168
+	} else {
169
+	}
170
+	var dat map[string]interface{}
171
+	if err := json.Unmarshal([]byte(result), &dat); err == nil {
172
+	} else {
173
+
174
+	}
175
+	c.ServeSuccessJSON(map[string]interface{}{
176
+		"pre":         dat,
177
+		"request_log": dat2,
178
+	})
84 179
 }
85 180
 func (c *JSybController) Get3263() {
86
-	service.Jxyb3263()
181
+	body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
182
+	var respJSON map[string]interface{}
183
+	if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
184
+		utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
185
+		return
186
+	}
187
+	org_name := respJSON["org_name"].(string)
188
+	doctor := respJSON["doctor"].(string)
189
+	fixmedins_code := respJSON["fixmedins_code"].(string)
190
+	insuplc_admdvs := respJSON["insuplc_admdvs"].(string)
191
+	mdtrtarea_admvs := respJSON["mdtrtarea_admvs"].(string)
192
+	secret_key := respJSON["secret_key"].(string)
193
+	url := respJSON["url"].(string)
194
+	ak := respJSON["ak"].(string)
195
+	cainfo := respJSON["cainfo"].(string)
196
+	upld_btch := respJSON["upld_btch"].(string)
197
+
198
+	stmt_loc := respJSON["stmt_loc"].(string)
199
+	setl_mon := respJSON["setl_mon"].(string)
200
+
201
+	result, request := service.Jxyb3263(setl_mon, stmt_loc, upld_btch, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, url, ak, secret_key, cainfo)
202
+	saveJsLog(result, request, "3263", "3263", org_name)
203
+	var dat2 map[string]interface{}
204
+	if err := json.Unmarshal([]byte(request), &dat2); err == nil {
205
+	} else {
206
+	}
207
+	var dat map[string]interface{}
208
+	if err := json.Unmarshal([]byte(result), &dat); err == nil {
209
+	} else {
210
+
211
+	}
212
+	c.ServeSuccessJSON(map[string]interface{}{
213
+		"pre":         dat,
214
+		"request_log": dat2,
215
+	})
87 216
 
88 217
 }
89 218
 func (c *JSybController) Get3264() {
90
-	service.Jxyb3264()
219
+	body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
220
+	var respJSON map[string]interface{}
221
+	if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
222
+		utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
223
+		return
224
+	}
225
+	org_name := respJSON["org_name"].(string)
226
+	doctor := respJSON["doctor"].(string)
227
+	fixmedins_code := respJSON["fixmedins_code"].(string)
228
+	insuplc_admdvs := respJSON["insuplc_admdvs"].(string)
229
+	mdtrtarea_admvs := respJSON["mdtrtarea_admvs"].(string)
230
+	secret_key := respJSON["secret_key"].(string)
231
+	url := respJSON["url"].(string)
232
+	ak := respJSON["ak"].(string)
233
+	cainfo := respJSON["cainfo"].(string)
234
+	upld_btch := respJSON["upld_btch"].(string)
235
+	stmt_loc := respJSON["stmt_loc"].(string)
236
+	setl_mon := respJSON["setl_mon"].(string)
237
+	result, request := service.Jxyb3264(setl_mon, stmt_loc, upld_btch, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, url, ak, secret_key, cainfo)
238
+	saveJsLog(result, request, "3264", "3264", org_name)
239
+	var dat2 map[string]interface{}
240
+	if err := json.Unmarshal([]byte(request), &dat2); err == nil {
241
+	} else {
242
+	}
243
+	var dat map[string]interface{}
244
+	if err := json.Unmarshal([]byte(result), &dat); err == nil {
245
+	} else {
246
+
247
+	}
248
+	c.ServeSuccessJSON(map[string]interface{}{
249
+		"pre":         dat,
250
+		"request_log": dat2,
251
+	})
91 252
 
92 253
 }
93 254
 func (c *JSybController) Get3265() {
94
-	service.Jxyb3265()
255
+	body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
256
+	var respJSON map[string]interface{}
257
+	if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
258
+		utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
259
+		return
260
+	}
261
+	org_name := respJSON["org_name"].(string)
262
+	doctor := respJSON["doctor"].(string)
263
+	fixmedins_code := respJSON["fixmedins_code"].(string)
264
+	insuplc_admdvs := respJSON["insuplc_admdvs"].(string)
265
+	mdtrtarea_admvs := respJSON["mdtrtarea_admvs"].(string)
266
+	secret_key := respJSON["secret_key"].(string)
267
+	url := respJSON["url"].(string)
268
+	ak := respJSON["ak"].(string)
269
+	cainfo := respJSON["cainfo"].(string)
270
+	upld_btch := respJSON["upld_btch"].(string)
271
+	stmt_loc := respJSON["stmt_loc"].(string)
272
+	setl_mon := respJSON["setl_mon"].(string)
273
+	fix_fill_dept := respJSON["fix_fill_dept"].(string)
274
+	fix_fill_psn_id := respJSON["fix_fill_psn_id"].(string)
275
+	fix_fill_psn := respJSON["fix_fill_psn"].(string)
276
+	fix_fill_date := respJSON["fix_fill_date"].(string)
277
+	result, request := service.Jxyb3265(setl_mon, fix_fill_dept, fix_fill_psn_id, fix_fill_psn, fix_fill_date, stmt_loc, upld_btch, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, url, ak, secret_key, cainfo)
278
+	saveJsLog(result, request, "3265", "3265", org_name)
279
+	var dat2 map[string]interface{}
280
+	if err := json.Unmarshal([]byte(request), &dat2); err == nil {
281
+	} else {
282
+	}
283
+	var dat map[string]interface{}
284
+	if err := json.Unmarshal([]byte(result), &dat); err == nil {
285
+	} else {
286
+
287
+	}
288
+	c.ServeSuccessJSON(map[string]interface{}{
289
+		"pre":         dat,
290
+		"request_log": dat2,
291
+	})
95 292
 
96 293
 }
97 294
 func (c *JSybController) Get3266() {
98
-	service.Jxyb3266()
295
+	body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
296
+	var respJSON map[string]interface{}
297
+	if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
298
+		utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
299
+		return
300
+	}
301
+	org_name := respJSON["org_name"].(string)
302
+	doctor := respJSON["doctor"].(string)
303
+	fixmedins_code := respJSON["fixmedins_code"].(string)
304
+	insuplc_admdvs := respJSON["insuplc_admdvs"].(string)
305
+	mdtrtarea_admvs := respJSON["mdtrtarea_admvs"].(string)
306
+	secret_key := respJSON["secret_key"].(string)
307
+	url := respJSON["url"].(string)
308
+	ak := respJSON["ak"].(string)
309
+	cainfo := respJSON["cainfo"].(string)
310
+	upld_btch := respJSON["upld_btch"].(string)
311
+	stmt_loc := respJSON["stmt_loc"].(string)
312
+	stmt_mon := respJSON["stmt_mon"].(string)
313
+	fix_fill_dept := respJSON["fix_fill_dept"].(string)
314
+	fix_fill_psn_id := respJSON["fix_fill_psn_id"].(string)
315
+	fix_fill_psn := respJSON["fix_fill_psn"].(string)
316
+	fix_fill_date := respJSON["fix_fill_date"].(string)
317
+	result, request := service.Jxyb3266(stmt_mon, fix_fill_dept, fix_fill_psn_id, fix_fill_psn, fix_fill_date, stmt_loc, upld_btch, mdtrtarea_admvs, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, url, ak, secret_key, cainfo)
318
+	saveJsLog(result, request, "3265", "3265", org_name)
319
+	var dat2 map[string]interface{}
320
+	if err := json.Unmarshal([]byte(request), &dat2); err == nil {
321
+	} else {
322
+	}
323
+	var dat map[string]interface{}
324
+	if err := json.Unmarshal([]byte(result), &dat); err == nil {
325
+	} else {
326
+
327
+	}
328
+	c.ServeSuccessJSON(map[string]interface{}{
329
+		"pre":         dat,
330
+		"request_log": dat2,
331
+	})
99 332
 
100 333
 }
101 334
 func (c *JSybController) Get3267() {
102
-	service.Jxyb3267()
335
+	body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
336
+	var respJSON map[string]interface{}
337
+	if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
338
+		utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
339
+		return
340
+	}
341
+	org_name := respJSON["org_name"].(string)
342
+	doctor := respJSON["doctor"].(string)
343
+	fixmedins_code := respJSON["fixmedins_code"].(string)
344
+	insuplc_admdvs := respJSON["insuplc_admdvs"].(string)
345
+	mdtrtarea_admvs := respJSON["mdtrtarea_admvs"].(string)
346
+	secret_key := respJSON["secret_key"].(string)
347
+	url := respJSON["url"].(string)
348
+	ak := respJSON["ak"].(string)
349
+	cainfo := respJSON["cainfo"].(string)
350
+	upld_btch := respJSON["upld_btch"].(string)
351
+	stmt_loc := respJSON["stmt_loc"].(string)
352
+	stmt_mon := respJSON["stmt_mon"].(string)
353
+	result, request := service.Jxyb3267(stmt_mon, stmt_loc, upld_btch, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, url, ak, secret_key, cainfo)
354
+	saveJsLog(result, request, "3267", "3267", org_name)
355
+	var dat2 map[string]interface{}
356
+	if err := json.Unmarshal([]byte(request), &dat2); err == nil {
357
+	} else {
358
+	}
359
+	var dat map[string]interface{}
360
+	if err := json.Unmarshal([]byte(result), &dat); err == nil {
361
+	} else {
362
+
363
+	}
364
+	c.ServeSuccessJSON(map[string]interface{}{
365
+		"pre":         dat,
366
+		"request_log": dat2,
367
+	})
103 368
 
104 369
 }
105 370
 func (c *JSybController) Get3268() {
106
-	service.Jxyb3268()
371
+
372
+	body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
373
+	var respJSON map[string]interface{}
374
+	if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
375
+		utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
376
+		return
377
+	}
378
+	userJSONBytes, _ := json.Marshal(respJSON["datas"])
379
+	var hp []models.FixMonRecDetailFileIn
380
+	if err := json.Unmarshal(userJSONBytes, &hp); err != nil {
381
+		utils.ErrorLog("解析失败:%v", err)
382
+		return
383
+	}
384
+
385
+	userJSONBytes2, _ := json.Marshal(respJSON["fund"])
386
+	var fund []models.Fund
387
+	if err := json.Unmarshal(userJSONBytes2, &fund); err != nil {
388
+		utils.ErrorLog("解析失败:%v", err)
389
+		return
390
+	}
391
+	org_name := respJSON["org_name"].(string)
392
+	doctor := respJSON["doctor"].(string)
393
+	fixmedins_code := respJSON["fixmedins_code"].(string)
394
+	insuplc_admdvs := respJSON["insuplc_admdvs"].(string)
395
+	mdtrtarea_admvs := respJSON["mdtrtarea_admvs"].(string)
396
+	secret_key := respJSON["secret_key"].(string)
397
+	url := respJSON["url"].(string)
398
+	ak := respJSON["ak"].(string)
399
+	cainfo := respJSON["cainfo"].(string)
400
+	upld_btch := respJSON["upld_btch"].(string)
401
+	fix_fill_dept := respJSON["fix_fill_dept"].(string)
402
+	fix_fill_psn_id := respJSON["fix_fill_psn_id"].(string)
403
+	fix_fill_psn := respJSON["fix_fill_psn"].(string)
404
+	fix_fill_date := respJSON["fix_fill_date"].(string)
405
+	stmt_loc := respJSON["stmt_loc"].(string)
406
+	result, request := service.Jxyb3268(org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, url, ak, secret_key, cainfo, upld_btch, fix_fill_dept, fix_fill_psn_id, fix_fill_psn, fix_fill_date, stmt_loc, hp, fund)
407
+	saveJsLog(result, request, "3268", "3268", org_name)
408
+	var dat2 map[string]interface{}
409
+	if err := json.Unmarshal([]byte(request), &dat2); err == nil {
410
+	} else {
411
+	}
412
+	var dat map[string]interface{}
413
+	if err := json.Unmarshal([]byte(result), &dat); err == nil {
414
+	} else {
415
+
416
+	}
417
+	c.ServeSuccessJSON(map[string]interface{}{
418
+		"pre":         dat,
419
+		"request_log": dat2,
420
+	})
107 421
 
108 422
 }
109 423
 func (c *JSybController) Get3269() {
110
-	service.Jxyb3269()
424
+	body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
425
+	var respJSON map[string]interface{}
426
+	if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
427
+		utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
428
+		return
429
+	}
430
+	org_name := respJSON["org_name"].(string)
431
+	doctor := respJSON["doctor"].(string)
432
+	fixmedins_code := respJSON["fixmedins_code"].(string)
433
+	insuplc_admdvs := respJSON["insuplc_admdvs"].(string)
434
+	mdtrtarea_admvs := respJSON["mdtrtarea_admvs"].(string)
435
+	secret_key := respJSON["secret_key"].(string)
436
+	url := respJSON["url"].(string)
437
+	ak := respJSON["ak"].(string)
438
+	cainfo := respJSON["cainfo"].(string)
439
+	stmt_loc := respJSON["stmt_loc"].(string)
440
+	stmt_mon := respJSON["setl_mon"].(string)
441
+
442
+	result, request := service.Jxyb3269(stmt_mon, stmt_loc, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, url, ak, secret_key, cainfo)
443
+	saveJsLog(result, request, "3269", "3269", org_name)
444
+	var dat2 map[string]interface{}
445
+	if err := json.Unmarshal([]byte(request), &dat2); err == nil {
446
+	} else {
447
+	}
448
+	var dat map[string]interface{}
449
+	if err := json.Unmarshal([]byte(result), &dat); err == nil {
450
+	} else {
451
+
452
+	}
453
+	c.ServeSuccessJSON(map[string]interface{}{
454
+		"pre":         dat,
455
+		"request_log": dat2,
456
+	})
111 457
 
112 458
 }
113 459
 func (c *JSybController) Get3270() {
114
-	service.Jxyb3270()
460
+	body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
461
+	var respJSON map[string]interface{}
462
+	if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
463
+		utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
464
+		return
465
+	}
466
+	org_name := respJSON["org_name"].(string)
467
+	doctor := respJSON["doctor"].(string)
468
+	fixmedins_code := respJSON["fixmedins_code"].(string)
469
+	insuplc_admdvs := respJSON["insuplc_admdvs"].(string)
470
+	mdtrtarea_admvs := respJSON["mdtrtarea_admvs"].(string)
471
+	secret_key := respJSON["secret_key"].(string)
472
+	url := respJSON["url"].(string)
473
+	ak := respJSON["ak"].(string)
474
+	cainfo := respJSON["cainfo"].(string)
475
+	stmt_loc := respJSON["stmt_loc"].(string)
476
+	stmt_mon := respJSON["setl_mon"].(string)
477
+
478
+	result, request := service.Jxyb3270(stmt_mon, stmt_loc, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, url, ak, secret_key, cainfo)
479
+	saveJsLog(result, request, "3270", "3270", org_name)
480
+	var dat2 map[string]interface{}
481
+	if err := json.Unmarshal([]byte(request), &dat2); err == nil {
482
+	} else {
483
+	}
484
+	var dat map[string]interface{}
485
+	if err := json.Unmarshal([]byte(result), &dat); err == nil {
486
+	} else {
115 487
 
488
+	}
489
+	c.ServeSuccessJSON(map[string]interface{}{
490
+		"pre":         dat,
491
+		"request_log": dat2,
492
+	})
116 493
 }
117 494
 
118 495
 func (c *JSybController) Get3271() {
119
-	service.Jxyb3271()
496
+	body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
497
+	var respJSON map[string]interface{}
498
+	if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
499
+		utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
500
+		return
501
+	}
502
+	org_name := respJSON["org_name"].(string)
503
+	doctor := respJSON["doctor"].(string)
504
+	fixmedins_code := respJSON["fixmedins_code"].(string)
505
+	insuplc_admdvs := respJSON["insuplc_admdvs"].(string)
506
+	mdtrtarea_admvs := respJSON["mdtrtarea_admvs"].(string)
507
+	secret_key := respJSON["secret_key"].(string)
508
+	url := respJSON["url"].(string)
509
+	ak := respJSON["ak"].(string)
510
+	cainfo := respJSON["cainfo"].(string)
511
+	stmt_loc := respJSON["stmt_loc"].(string)
512
+	fix_fill_dept := respJSON["fix_fill_dept"].(string)
513
+	fix_fill_psn_id := respJSON["fix_fill_psn_id"].(string)
514
+	fix_fill_psn := respJSON["fix_fill_psn"].(string)
515
+	fix_fill_date := respJSON["fix_fill_date"].(string)
516
+	result, request := service.Jxyb3271(fix_fill_dept, fix_fill_psn_id, fix_fill_psn, fix_fill_date, stmt_loc, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, url, ak, secret_key, cainfo)
517
+	saveJsLog(result, request, "3271", "3271", org_name)
518
+	var dat2 map[string]interface{}
519
+	if err := json.Unmarshal([]byte(request), &dat2); err == nil {
520
+	} else {
521
+	}
522
+	var dat map[string]interface{}
523
+	if err := json.Unmarshal([]byte(result), &dat); err == nil {
524
+	} else {
525
+
526
+	}
527
+	c.ServeSuccessJSON(map[string]interface{}{
528
+		"pre":         dat,
529
+		"request_log": dat2,
530
+	})
120 531
 
121 532
 }
122 533
 
123 534
 func (c *JSybController) Get3272() {
124
-	service.Jxyb3272()
535
+	body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
536
+	var respJSON map[string]interface{}
537
+	if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
538
+		utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
539
+		return
540
+	}
541
+	org_name := respJSON["org_name"].(string)
542
+	doctor := respJSON["doctor"].(string)
543
+	fixmedins_code := respJSON["fixmedins_code"].(string)
544
+	insuplc_admdvs := respJSON["insuplc_admdvs"].(string)
545
+	mdtrtarea_admvs := respJSON["mdtrtarea_admvs"].(string)
546
+	secret_key := respJSON["secret_key"].(string)
547
+	url := respJSON["url"].(string)
548
+	ak := respJSON["ak"].(string)
549
+	cainfo := respJSON["cainfo"].(string)
550
+	stmt_loc := respJSON["stmt_loc"].(string)
551
+	setl_mon := respJSON["setl_mon"].(string)
552
+	fix_fill_dept := respJSON["fix_fill_dept"].(string)
553
+	fix_fill_psn_id := respJSON["fix_fill_psn_id"].(string)
554
+	fix_fill_psn := respJSON["fix_fill_psn"].(string)
555
+	fix_fill_date := respJSON["fix_fill_date"].(string)
556
+	result, request := service.Jxyb3272(setl_mon, fix_fill_dept, fix_fill_psn_id, fix_fill_psn, fix_fill_date, stmt_loc, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, url, ak, secret_key, cainfo)
557
+	saveJsLog(result, request, "3272", "3272", org_name)
558
+	var dat2 map[string]interface{}
559
+	if err := json.Unmarshal([]byte(request), &dat2); err == nil {
560
+	} else {
561
+	}
562
+	var dat map[string]interface{}
563
+	if err := json.Unmarshal([]byte(result), &dat); err == nil {
564
+	} else {
565
+
566
+	}
567
+	c.ServeSuccessJSON(map[string]interface{}{
568
+		"pre":         dat,
569
+		"request_log": dat2,
570
+	})
125 571
 
126 572
 }
127 573
 
128 574
 func (c *JSybController) Get3273() {
129
-	service.Jxyb3273()
575
+	body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
576
+	var respJSON map[string]interface{}
577
+	if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
578
+		utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
579
+		return
580
+	}
581
+	org_name := respJSON["org_name"].(string)
582
+	doctor := respJSON["doctor"].(string)
583
+	fixmedins_code := respJSON["fixmedins_code"].(string)
584
+	insuplc_admdvs := respJSON["insuplc_admdvs"].(string)
585
+	mdtrtarea_admvs := respJSON["mdtrtarea_admvs"].(string)
586
+	secret_key := respJSON["secret_key"].(string)
587
+	url := respJSON["url"].(string)
588
+	ak := respJSON["ak"].(string)
589
+	cainfo := respJSON["cainfo"].(string)
590
+	stmt_loc := respJSON["stmt_loc"].(string)
591
+	stmt_mon := respJSON["stmt_mon"].(string)
592
+	result, request := service.Jxyb3273(stmt_mon, stmt_loc, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, url, ak, secret_key, cainfo)
593
+	saveJsLog(result, request, "3273", "3273", org_name)
594
+	var dat2 map[string]interface{}
595
+	if err := json.Unmarshal([]byte(request), &dat2); err == nil {
596
+	} else {
597
+	}
598
+	var dat map[string]interface{}
599
+	if err := json.Unmarshal([]byte(result), &dat); err == nil {
600
+	} else {
601
+
602
+	}
603
+	c.ServeSuccessJSON(map[string]interface{}{
604
+		"pre":         dat,
605
+		"request_log": dat2,
606
+	})
130 607
 
131 608
 }
132 609
 
133 610
 func (c *JSybController) Get3274() {
134
-	service.Jxyb3274()
611
+	body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
612
+	var respJSON map[string]interface{}
613
+	if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
614
+		utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
615
+		return
616
+	}
617
+	org_name := respJSON["org_name"].(string)
618
+	doctor := respJSON["doctor"].(string)
619
+	fixmedins_code := respJSON["fixmedins_code"].(string)
620
+	insuplc_admdvs := respJSON["insuplc_admdvs"].(string)
621
+	mdtrtarea_admvs := respJSON["mdtrtarea_admvs"].(string)
622
+	secret_key := respJSON["secret_key"].(string)
623
+	url := respJSON["url"].(string)
624
+	ak := respJSON["ak"].(string)
625
+	cainfo := respJSON["cainfo"].(string)
626
+	stmt_loc := respJSON["stmt_loc"].(string)
627
+	stmt_mon := respJSON["stmt_mon"].(string)
628
+	fix_fill_dept := respJSON["fix_fill_dept"].(string)
629
+	fix_fill_psn_id := respJSON["fix_fill_psn_id"].(string)
630
+	fix_fill_psn := respJSON["fix_fill_psn"].(string)
631
+	fix_fill_date := respJSON["fix_fill_date"].(string)
632
+	upld_btch := respJSON["upld_btch"].(string)
633
+
634
+	result, request := service.Jxyb3274(stmt_mon, fix_fill_dept, fix_fill_psn_id, fix_fill_psn, fix_fill_date, stmt_loc, upld_btch, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, url, ak, secret_key, cainfo)
635
+	saveJsLog(result, request, "3273", "3273", org_name)
636
+	var dat2 map[string]interface{}
637
+	if err := json.Unmarshal([]byte(request), &dat2); err == nil {
638
+	} else {
639
+	}
640
+	var dat map[string]interface{}
641
+	if err := json.Unmarshal([]byte(result), &dat); err == nil {
642
+	} else {
643
+
644
+	}
645
+	c.ServeSuccessJSON(map[string]interface{}{
646
+		"pre":         dat,
647
+		"request_log": dat2,
648
+	})
135 649
 
136 650
 }
137 651
 
138 652
 func (c *JSybController) Get3275() {
139
-	service.Jxyb3275()
653
+	body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
654
+	var respJSON map[string]interface{}
655
+	if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
656
+		utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
657
+		return
658
+	}
659
+	org_name := respJSON["org_name"].(string)
660
+	doctor := respJSON["doctor"].(string)
661
+	fixmedins_code := respJSON["fixmedins_code"].(string)
662
+	insuplc_admdvs := respJSON["insuplc_admdvs"].(string)
663
+	mdtrtarea_admvs := respJSON["mdtrtarea_admvs"].(string)
664
+	secret_key := respJSON["secret_key"].(string)
665
+	url := respJSON["url"].(string)
666
+	ak := respJSON["ak"].(string)
667
+	cainfo := respJSON["cainfo"].(string)
140 668
 
141
-}
142
-func (c *JSybController) Get3276() {
143
-	service.Jxyb3276()
669
+	result, request := service.Jxyb3275(org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, url, ak, secret_key, cainfo)
670
+	saveJsLog(result, request, "3275", "3275", org_name)
671
+	var dat2 map[string]interface{}
672
+	if err := json.Unmarshal([]byte(request), &dat2); err == nil {
673
+	} else {
674
+	}
675
+	var dat map[string]interface{}
676
+	if err := json.Unmarshal([]byte(result), &dat); err == nil {
677
+	} else {
144 678
 
679
+	}
680
+	c.ServeSuccessJSON(map[string]interface{}{
681
+		"pre":         dat,
682
+		"request_log": dat2,
683
+	})
145 684
 }
146
-func (c *JSybController) Get3277() {
147
-	service.Jxyb3277()
148
-}
685
+
686
+//func (c *JSybController) Get3276() {
687
+//	org_name := respJSON["org_name"].(string)
688
+//	doctor := respJSON["doctor"].(string)
689
+//	fixmedins_code := respJSON["fixmedins_code"].(string)
690
+//	insuplc_admdvs := respJSON["insuplc_admdvs"].(string)
691
+//	mdtrtarea_admvs := respJSON["mdtrtarea_admvs"].(string)
692
+//	secret_key := respJSON["secret_key"].(string)
693
+//	url := respJSON["url"].(string)
694
+//	ak := respJSON["ak"].(string)
695
+//	cainfo := respJSON["cainfo"].(string)
696
+//	upld_btch := respJSON["upld_btch"].(string)
697
+//	stmt_loc := respJSON["stmt_loc"].(string)
698
+//	stmt_mon := respJSON["stmt_mon"].(string)
699
+//	fix_fill_dept := respJSON["fix_fill_dept"].(string)
700
+//	fix_fill_psn_id := respJSON["fix_fill_psn_id"].(string)
701
+//	fix_fill_psn := respJSON["fix_fill_psn"].(string)
702
+//	fix_fill_date := respJSON["fix_fill_date"].(string)
703
+//	result, request := service.Jxyb3266(stmt_mon, fix_fill_dept, fix_fill_psn_id, fix_fill_psn, fix_fill_date, stmt_loc, upld_btch, mdtrtarea_admvs, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, url, ak, secret_key, cainfo)
704
+//	saveJsLog(result, request, "3265", "3265", org_name)
705
+//	var dat2 map[string]interface{}
706
+//	if err := json.Unmarshal([]byte(request), &dat2); err == nil {
707
+//	} else {
708
+//	}
709
+//	var dat map[string]interface{}
710
+//	if err := json.Unmarshal([]byte(result), &dat); err == nil {
711
+//	} else {
712
+//
713
+//	}
714
+//	c.ServeSuccessJSON(map[string]interface{}{
715
+//		"pre":         dat,
716
+//		"request_log": dat2,
717
+//	})
718
+//
719
+//}
720
+//func (c *JSybController) Get3277() {
721
+//	org_name := respJSON["org_name"].(string)
722
+//	doctor := respJSON["doctor"].(string)
723
+//	fixmedins_code := respJSON["fixmedins_code"].(string)
724
+//	insuplc_admdvs := respJSON["insuplc_admdvs"].(string)
725
+//	mdtrtarea_admvs := respJSON["mdtrtarea_admvs"].(string)
726
+//	secret_key := respJSON["secret_key"].(string)
727
+//	url := respJSON["url"].(string)
728
+//	ak := respJSON["ak"].(string)
729
+//	cainfo := respJSON["cainfo"].(string)
730
+//	upld_btch := respJSON["upld_btch"].(string)
731
+//	stmt_loc := respJSON["stmt_loc"].(string)
732
+//	stmt_mon := respJSON["stmt_mon"].(string)
733
+//	fix_fill_dept := respJSON["fix_fill_dept"].(string)
734
+//	fix_fill_psn_id := respJSON["fix_fill_psn_id"].(string)
735
+//	fix_fill_psn := respJSON["fix_fill_psn"].(string)
736
+//	fix_fill_date := respJSON["fix_fill_date"].(string)
737
+//	result, request := service.Jxyb3266(stmt_mon, fix_fill_dept, fix_fill_psn_id, fix_fill_psn, fix_fill_date, stmt_loc, upld_btch, mdtrtarea_admvs, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, url, ak, secret_key, cainfo)
738
+//	saveJsLog(result, request, "3265", "3265", org_name)
739
+//	var dat2 map[string]interface{}
740
+//	if err := json.Unmarshal([]byte(request), &dat2); err == nil {
741
+//	} else {
742
+//	}
743
+//	var dat map[string]interface{}
744
+//	if err := json.Unmarshal([]byte(result), &dat); err == nil {
745
+//	} else {
746
+//
747
+//	}
748
+//	c.ServeSuccessJSON(map[string]interface{}{
749
+//		"pre":         dat,
750
+//		"request_log": dat2,
751
+//	})
752
+//}
149 753
 
150 754
 func (c *JSybController) Get3501() {
151 755
 	body, _ := ioutil.ReadAll(c.Ctx.Request.Body)

File diff suppressed because it is too large
+ 1095 - 131
controllers/sg/his_api_controller.go


+ 2 - 4
main.go View File

@@ -46,7 +46,7 @@ func main() {
46 46
 	//GetBatchSettleList()
47 47
 
48 48
 	//深圳百霖
49
-	//GetblBatchSettleList()
49
+	GetblBatchSettleList()
50 50
 
51 51
 	//深圳百霖贝尔
52 52
 	//GetbrBatchSettleList()
@@ -80,7 +80,6 @@ func GetblBatchSettleList() {
80 80
 	for _, item := range orders {
81 81
 		order_id := item.ID
82 82
 		order, _ := service.GetHisOrderByIDTwo(order_id)
83
-		//roles, _ := service.GetDoctorListTwo(org_id)
84 83
 		his, _ := service.GetHisPatientByNumber(order.MdtrtId)
85 84
 		var patientPrescription models.HisPrescriptionInfo
86 85
 		patientPrescription, _ = service.FindLastPatientPrescriptionInfo(order.UserOrgId, order.PatientId, order.SettleAccountsDate)
@@ -97,8 +96,7 @@ func GetblBatchSettleList() {
97 96
 		}
98 97
 
99 98
 		sickConfig, _ := service.FindSickById(his.SickType)
100
-		service.Gdyb2203A(his.PsnNo, his.Number, doctor_info.UserName, department.Name, miConfig.OrgName, "14", doctor_info.DoctorNumber, miConfig.Code, his.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, sickConfig.ContentCode, sickConfig.ClassName, curRoles.UserName, configTwo, time.Unix(his.RecordDate, 0).Format("2006-01-02 15:04:05"))
101
-
99
+		service.Gdyb2203A(his.PsnNo, his.Number, doctor_info.UserName, department.Name, miConfig.OrgName, order.MedType, doctor_info.DoctorNumber, miConfig.Code, his.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, sickConfig.ContentCode, sickConfig.ClassName, curRoles.UserName, configTwo, time.Unix(his.RecordDate, 0).Format("2006-01-02 15:04:05"))
102 100
 		depart, _ := service.GetDepartMentDetail(curRoles.DepartmentId)
103 101
 		pre, _ := service.GetNewHisPrescriptionByNumber(order.Number)
104 102
 		doctor, _ := service.GetAdminUserInfoByID(org_id, pre.Creator)

+ 219 - 0
models/model32xx.go View File

@@ -0,0 +1,219 @@
1
+package models
2
+
3
+type JSResult3260 struct {
4
+	ErrMsg      string `json:"err_msg"`
5
+	InfRefmsgid string `json:"inf_refmsgid"`
6
+	Infcode     int64  `json:"infcode"`
7
+	Output      struct {
8
+		Data struct {
9
+			FixmedinsCode string `json:"fixmedins_code"`
10
+			FixmedinsName string `json:"fixmedins_name"`
11
+			FixBlngAdmdvs string `json:"fix_blng_admdvs"`
12
+			EnabFlag      string `json:"enab_flag"`
13
+		} `json:"data"`
14
+	} `json:"output"`
15
+	RefmsgTime  string      `json:"refmsg_time"`
16
+	RespondTime string      `json:"respond_time"`
17
+	Signtype    interface{} `json:"signtype"`
18
+	WarnInfo    interface{} `json:"warn_info"`
19
+}
20
+
21
+type JSResult3261 struct {
22
+	ErrMsg      string `json:"err_msg"`
23
+	InfRefmsgid string `json:"inf_refmsgid"`
24
+	Infcode     int64  `json:"infcode"`
25
+	Output      struct {
26
+		Data struct {
27
+			FixmedinsCode string `json:"fixmedins_code"`
28
+			FixmedinsName string `json:"fixmedins_name"`
29
+			FixBlngAdmdvs string `json:"fix_blng_admdvs"`
30
+			StmtStatus    string `json:"stmt_status"`
31
+		} `json:"data"`
32
+	} `json:"output"`
33
+	RefmsgTime  string      `json:"refmsg_time"`
34
+	RespondTime string      `json:"respond_time"`
35
+	Signtype    interface{} `json:"signtype"`
36
+	WarnInfo    interface{} `json:"warn_info"`
37
+}
38
+
39
+type FixMonRecDetailFileIn struct {
40
+	Insutype      string  `json:"insutype"`
41
+	PsnType       string  `json:"psn_type"`
42
+	MedType       string  `json:"med_type"`
43
+	FixBlngAdmdvs string  `json:"fix_blng_admdvs,omitempty"`
44
+	InsuAdmdvs    string  `json:"insu_admdvs,omitempty"`
45
+	PsnTime       int     `json:"psn_time"`
46
+	PsnCnt        int     `json:"psn_cnt"`
47
+	MedfeeSumAmt  float64 `json:"medfee_sumamt"`
48
+	InscpAmt      float64 `json:"inscp_amt"`
49
+	FundPaySumAmt float64 `json:"fund_pay_sumamt"`
50
+	FundKey       string  `json:"fund_key"`
51
+}
52
+
53
+type Fund struct {
54
+	FundKey       string  `json:"fund_key"`
55
+	FixBlngAdmdvs string  `json:"fix_blng_admdvs,omitempty"`
56
+	InsuAdmdvs    string  `json:"insu_admdvs,omitempty"`
57
+	FundCode      string  `json:"fund_code"`
58
+	FundName      string  `json:"fund_name,omitempty"`
59
+	FundAmt       float64 `json:"fund_amt"`
60
+	Memo          string  `json:"memo,omitempty"`
61
+}
62
+
63
+type JSResult3263 struct {
64
+	ErrMsg      string `json:"err_msg"`
65
+	InfRefmsgid string `json:"inf_refmsgid"`
66
+	Infcode     int64  `json:"infcode"`
67
+	Output      struct {
68
+		Data []struct {
69
+			SolidifyID    string  `json:"solidify_id"`
70
+			FixmedinsCode string  `json:"fixmedins_code"`
71
+			FixmedinsName string  `json:"fixmedins_name"`
72
+			FixBlngAdmdvs string  `json:"fix_blng_admdvs"`
73
+			SetlMon       string  `json:"setl_mon"`
74
+			Insutype      string  `json:"insutype"`
75
+			PsnType       string  `json:"psn_type,omitempty"`
76
+			MedType       string  `json:"med_type"`
77
+			InsuAdmdvs    string  `json:"insu_admdvs,omitempty"`
78
+			PsnTime       int     `json:"psn_time"`
79
+			PsnCnt        int     `json:"psn_cnt"`
80
+			MedfeeSumAmt  float64 `json:"medfee_sumamt"`
81
+			InscpAmt      float64 `json:"inscp_amt"`
82
+			FundCode      string  `json:"fund_code"`
83
+			FundName      string  `json:"fund_name,omitempty"`
84
+			FundAmt       float64 `json:"fund_amt"`
85
+		} `json:"data"`
86
+	} `json:"output"`
87
+	RefmsgTime  string      `json:"refmsg_time"`
88
+	RespondTime string      `json:"respond_time"`
89
+	Signtype    interface{} `json:"signtype"`
90
+	WarnInfo    interface{} `json:"warn_info"`
91
+}
92
+
93
+type JSResult3264 struct {
94
+	ErrMsg      string `json:"err_msg"`
95
+	InfRefmsgid string `json:"inf_refmsgid"`
96
+	Infcode     int64  `json:"infcode"`
97
+	Output      struct {
98
+		Data struct {
99
+			SolidifyID []string `json:"solidifyIdList,omitempty"`
100
+		} `json:"solidifyIdList"`
101
+	} `json:"output"`
102
+	RefmsgTime  string      `json:"refmsg_time"`
103
+	RespondTime string      `json:"respond_time"`
104
+	Signtype    interface{} `json:"signtype"`
105
+	WarnInfo    interface{} `json:"warn_info"`
106
+}
107
+
108
+type JSResult3266Data struct {
109
+	ClrOptins     string `json:"clr_optins"`
110
+	FixmedinsCode string `json:"fixmedins_code"`
111
+	FixmedinsName string `json:"fixmedins_name"`
112
+	FixBlngAdmdvs string `json:"fix_blng_admdvs"`
113
+	SetlMon       string `json:"setl_mon"`
114
+	StmtBegnDate  string `json:"stmt_begndate"`
115
+	StmtEndDate   string `json:"stmt_enddate"`
116
+	StmtStatus    string `json:"stmt_status"`
117
+	Memo          string `json:"memo,omitempty"`
118
+}
119
+
120
+type JSResult3266TotlLastStmtRsltDetail struct {
121
+	FixBlngAdmdvs string  `json:"fix_blng_admdvs"`
122
+	Insutype      string  `json:"insutype"`
123
+	PsnType       string  `json:"psn_type,omitempty"`
124
+	MedType       string  `json:"med_type"`
125
+	InsuAdmdvs    float64 `json:"insu_admdvs"`
126
+	HifpType      float64 `json:"hifp_type"`
127
+	FixAmt        float64 `json:"fix_amt"`
128
+	HicentAmt     float64 `json:"hicent_amt"`
129
+	StmtDiffAmt   float64 `json:"stmt_diff_amt"`
130
+	StmtRslt      string  `json:"stmt_rslt"`
131
+	StmtLoc       string  `json:"stmt_loc"`
132
+}
133
+
134
+type JSResult3267 struct {
135
+	ClrOptins     string `json:"clr_optins"`
136
+	FixmedinsCode string `json:"fixmedins_code"`
137
+	FixmedinsName string `json:"fixmedins_name"`
138
+	FixBlngAdmdvs string `json:"fix_blng_admdvs"`
139
+	SetlMon       string `json:"setl_mon"`
140
+	StmtBegnDate  string `json:"stmt_begndate"`
141
+	StmtEndDate   string `json:"stmt_enddate"`
142
+	StmtStatus    string `json:"stmt_status"`
143
+	Memo          string `json:"memo,omitempty"`
144
+}
145
+
146
+type TotlLastStmtRsltDetail struct {
147
+	FixBlngAdmdvs string  `json:"fix_blng_admdvs"`
148
+	Insutype      string  `json:"insutype"`
149
+	PsnType       string  `json:"psn_type,omitempty"`
150
+	MedType       string  `json:"med_type"`
151
+	InsuAdmdvs    float64 `json:"insu_admdvs"`
152
+	HifpType      float64 `json:"hifp_type"`
153
+	FixAmt        float64 `json:"fix_amt"`
154
+	HicentAmt     float64 `json:"hicent_amt"`
155
+	StmtDiffAmt   float64 `json:"stmt_diff_amt"`
156
+	StmtRslt      string  `json:"stmt_rslt"`
157
+	StmtLoc       string  `json:"stmt_loc"`
158
+}
159
+
160
+type FixDateRecDetailFileIn struct {
161
+	SetlDate      string  `json:"setl_date"`
162
+	InsuType      string  `json:"insutype"`
163
+	PsnType       string  `json:"psn_type"`
164
+	MedType       string  `json:"med_type"`
165
+	FixBlngAdmdvs string  `json:"fix_blng_admdvs"`
166
+	InsuAdmdvs    string  `json:"insu_admdvs"`
167
+	PsnTime       float64 `json:"psn_time"`
168
+	PsnCnt        float64 `json:"psn_cnt"`
169
+	MedfeeSumamt  float64 `json:"medfee_sumamt"`
170
+	InscpAmt      float64 `json:"inscp_amt"`
171
+	FundPaySumamt float64 `json:"fund_pay_sumamt"`
172
+	FundKey       string  `json:"fund_key"`
173
+}
174
+
175
+type JSResult3269 struct {
176
+	SolidifyID    string  `json:"solidify_id"`
177
+	FixmedinsCode string  `json:"fixmedins_code"`
178
+	FixmedinsName string  `json:"fixmedins_name"`
179
+	FixBlngAdmdvs string  `json:"fix_blng_admdvs"`
180
+	SetlMon       string  `json:"setl_mon"`
181
+	Insutype      string  `json:"insutype"`
182
+	PsnType       string  `json:"psn_type,omitempty"`
183
+	MedType       string  `json:"med_type"`
184
+	InsuAdmdvs    string  `json:"insu_admdvs,omitempty"`
185
+	PsnTime       int     `json:"psn_time"`
186
+	PsnCnt        int     `json:"psn_cnt"`
187
+	MedfeeSumAmt  float64 `json:"medfee_sumamt"`
188
+	InscpAmt      float64 `json:"inscp_amt"`
189
+	FundCode      string  `json:"fund_code"`
190
+	FundName      string  `json:"fund_name,omitempty"`
191
+	FundAmt       float64 `json:"fund_amt"`
192
+}
193
+
194
+type JSResultEmpty struct {
195
+	Cainfo      interface{} `json:"cainfo"`
196
+	ErrMsg      string      `json:"err_msg"`
197
+	InfRefmsgid string      `json:"inf_refmsgid"`
198
+	Infcode     int64       `json:"infcode"`
199
+	Output      struct {
200
+	} `json:"output"`
201
+	RefmsgTime  string      `json:"refmsg_time"`
202
+	RespondTime string      `json:"respond_time"`
203
+	Signtype    interface{} `json:"signtype"`
204
+	WarnMsg     interface{} `json:"warn_msg"`
205
+}
206
+
207
+type FundDetail struct {
208
+	FundKey    string `json:"fund_key"`
209
+	SetlDetail string `json:"setl_detail"`
210
+}
211
+
212
+type FundInfo struct {
213
+	CrtPaybLmtAmt   float64 `json:"crt_payb_lmt_amt"`
214
+	FundPayType     string  `json:"fund_pay_type"`
215
+	FundPayTypeName string  `json:"fund_pay_type_name"`
216
+	FundPayAmt      float64 `json:"fund_payamt"`
217
+	InscpScpAmt     float64 `json:"inscp_scp_amt"`
218
+	SetlProcInfo    string  `json:"setl_proc_info"`
219
+}

+ 13 - 1
service/his_service.go View File

@@ -1491,7 +1491,7 @@ func GetAllHisOrder10106(org_id int64) (his []*models.HisOrder, err error) {
1491 1491
 }
1492 1492
 
1493 1493
 func GetAllHisOrder10138() (his []*models.HisOrder, err error) {
1494
-	err = readDb.Model(&models.HisOrder{}).Where("user_org_id = 10138  AND status = 1  AND  order_status = 2 AND setl_id <> ''  AND med_type = '14' AND setl_time >= '2023-04-01 00:00:00'").Order("setl_time asc").Find(&his).Error
1494
+	err = readDb.Model(&models.HisOrder{}).Where("user_org_id = 10138 and mdtrt_id not like '%out%' AND status = 1  AND  order_status = 2 AND setl_id <> ''  AND setl_time >= '2023-06-01 00:00:00'").Order("setl_time asc").Find(&his).Error
1495 1495
 	fmt.Println(err)
1496 1496
 	return
1497 1497
 }
@@ -1586,3 +1586,15 @@ func GetHisPrescriptionForMedType(org_id int64, patient_id int64, record_date in
1586 1586
 		Find(&prescription).Error
1587 1587
 	return
1588 1588
 }
1589
+
1590
+func GetOrderByTimeTen(start_time int64, end_time int64, org_id int64) (orders []*models.FixMonRecDetailFileIn, err error) {
1591
+	err = readDb.Raw("SELECT CONCAT(insutype, '99', med_type, '555555') AS fund_key, insutype, `psn_type`, `med_type`, COUNT(DISTINCT `certno`) AS psn_cnt, count(*) as psn_time, sum(medfee_sumamt) as medfee_sumamt, sum(inscp_scp_amt) as inscp_scp_amt, sum(fund_pay_sumamt) as fund_pay_sumamt FROM his_order where user_org_id = ? and status = 1 and order_status = 2 and setl_time >= ? and setl_time <= ? GROUP BY fund_key", org_id, start_time, end_time).Scan(&orders).Error
1592
+	return
1593
+}
1594
+
1595
+func GetOrderDetailByTimeTen(start_time int64, end_time int64, org_id int64, fund_key string) (fund []models.FundDetail, err error) {
1596
+	err = readDb.Raw("SELECT CONCAT(insutype, '99', med_type, '555555') as fund_key,  `setl_detail`  FROM his_order where user_org_id = 10188 and status = 1 and order_status = 2 and setl_time >= '2023-04-01 00:00:00' and setl_time <= '2023-04-30 23:59:59'  and CONCAT(insutype, '99', med_type, '555555')  = ?", org_id, start_time, end_time, fund_key).Scan(&fund).Error
1597
+	return
1598
+}
1599
+
1600
+//

+ 170 - 169
service/jsyb_service.go View File

@@ -149,7 +149,7 @@ func Jsyb1101(certNo string, org_name string, doctor string, fixmedins_code stri
149 149
 	return HttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData)), inputLog
150 150
 }
151 151
 
152
-//人员基本信息版本2
152
+// 人员基本信息版本2
153 153
 func Jsyb1101A(certNo string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, secret_key string, id_card_type int64, card_sn string, certificates string, request_url string, access_key string, pBusiCardInfo string, id_card_no string, cainfo string) (string, string) {
154 154
 	timestamp := time.Now().Unix()
155 155
 	//生成输入报文
@@ -475,7 +475,7 @@ func Jsyb2203A(psnNo string, mdtrtId string, doctor string, department string, o
475 475
 	return HttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData)), requestLog
476 476
 }
477 477
 
478
-//  门诊费用明细信息上传
478
+// 门诊费用明细信息上传
479 479
 func Jsyb2204(psnNo string, mdtrtId string, hisPrescription []*models.HisPrescription, chrg_bchno string, org_name string, doctor string, dept string, fixmedins_code string, dept_code string, doctor_id string, insuplc_admdvs string, mdtrtarea_admvs string, secret_key string, balance_accounts_type string, diag_code string, request_url string, access_key string, new_doctor_name string, time_stamp_2203 string, cainfo string) (string, string) {
480 480
 	// 生成签名
481 481
 	//timestamp := time.Now().Unix()
@@ -679,7 +679,7 @@ func Jsyb2204(psnNo string, mdtrtId string, hisPrescription []*models.HisPrescri
679 679
 	return HttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData)), requestLog
680 680
 }
681 681
 
682
-//  门诊费用明细信息撤销
682
+// 门诊费用明细信息撤销
683 683
 func Jsyb2205(psnNo string, mdtrtId string, chrgBchno string, org_name string, doctor string, insuplc_admdvs string, mdtrtarea_admvs string, secret_key string, fixmedins_code string, request_url string, access_key string, cainfo string) (string, string) {
684 684
 
685 685
 	timestamp := time.Now().Unix()
@@ -712,7 +712,7 @@ func Jsyb2205(psnNo string, mdtrtId string, chrgBchno string, org_name string, d
712 712
 	return HttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData)), requestLog
713 713
 }
714 714
 
715
-//  门诊预结算
715
+// 门诊预结算
716 716
 func Jsyb2206(psnNo string, mdtrtId string, chrgBchno string, certNo string, insutype string, total string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, secret_key string, med_type string, id_card_type int64, fulamt_ownpay_amt float64, overlmt_selfpay float64, preselfpay_amt float64, inscp_scp_amt float64, certificates int64, request_url string, access_key string, verify_number string, cainfo string, mdtrt_grp_type string) (string, string) {
717 717
 
718 718
 	// 生成签名
@@ -785,7 +785,7 @@ func Jsyb2206(psnNo string, mdtrtId string, chrgBchno string, certNo string, ins
785 785
 
786 786
 }
787 787
 
788
-//  门诊结算
788
+// 门诊结算
789 789
 func Jsyb2207(psnNo string, mdtrtId string, chrgBchno string, certNo string, insutype string, total string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, secret_key string, med_type string, id_card_type int64, fulamt_ownpay_amt float64, overlmt_selfpay float64, preselfpay_amt float64, inscp_scp_amt float64, certificates int64, acct_used_flag string, request_url string, access_key string, verify_number string, cainfo string, mdtrt_grp_type string) (string, string) {
790 790
 	// 生成签名
791 791
 	timestamp := time.Now().Unix()
@@ -922,7 +922,7 @@ func Jsyb2207A(psnNo string, mdtrtId string, chrgBchno string, certNo string, in
922 922
 
923 923
 }
924 924
 
925
-//  门诊结算撤销
925
+// 门诊结算撤销
926 926
 func Jsyb2208(psnNo string, mdtrtId string, setlId string, org_name string, doctor string, secret_key string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, cainfo string) (string, string) {
927 927
 	timestamp := time.Now().Unix()
928 928
 	// 生成输入报文
@@ -974,7 +974,7 @@ func Jsyb5203(baseParams models.BaseParams, businessParams models.BusinessParams
974 974
 	return HttpRequest(baseParams.RequestUrl, baseParams.AccessKey, baseParams.SecretKey, timestamp, string(bytesData)), string(bytesData)
975 975
 }
976 976
 
977
-//CBS总线
977
+// CBS总线
978 978
 func HttpRequest(url string, ak string, sk string, timestamp int64, json string) string {
979 979
 	fmt.Println(url)
980 980
 	//step 1. 设置请求参数
@@ -1220,7 +1220,7 @@ func Jsyb9001(org_name string, doctor string, fixmedins_code string, insuplc_adm
1220 1220
 
1221 1221
 }
1222 1222
 
1223
-//获取本机ip
1223
+// 获取本机ip
1224 1224
 func GetLocalIpTwo() string {
1225 1225
 	addrs, err := net.InterfaceAddrs()
1226 1226
 	if err != nil {
@@ -1236,7 +1236,7 @@ func GetLocalIpTwo() string {
1236 1236
 	return ""
1237 1237
 }
1238 1238
 
1239
-//获取本机Mac
1239
+// 获取本机Mac
1240 1240
 func GetMacTwo() string {
1241 1241
 	interfaces, err := net.Interfaces()
1242 1242
 	if err != nil {
@@ -2003,7 +2003,7 @@ func Jsyb3507(struct3507 models.Struct3507) (string, string) {
2003 2003
 
2004 2004
 }
2005 2005
 
2006
-//对账权限查询
2006
+// 对账权限查询
2007 2007
 func Jxyb3260(setl_optins string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
2008 2008
 	// 生成签名
2009 2009
 	timestamp := time.Now().Unix()
@@ -2028,7 +2028,7 @@ func Jxyb3260(setl_optins string, org_name string, doctor string, fixmedins_code
2028 2028
 	return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3260"), string(bytesData)
2029 2029
 }
2030 2030
 
2031
-//月度对账状态查询
2031
+// 月度对账状态查询
2032 2032
 func Jxyb3261(stmt_mon string, setl_optins string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
2033 2033
 	// 生成签名
2034 2034
 	timestamp := time.Now().Unix()
@@ -2053,7 +2053,7 @@ func Jxyb3261(stmt_mon string, setl_optins string, org_name string, doctor strin
2053 2053
 	request_url = request_url + "3261"
2054 2054
 	return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3261"), string(bytesData)
2055 2055
 }
2056
-func Jxyb3262(stmt_mon string, setl_optins string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
2056
+func Jxyb3262(org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string, upld_btch string, fix_fill_dept string, fix_fill_psn_id string, fix_fill_psn string, fix_fill_date string, stmt_loc string, hp []models.FixMonRecDetailFileIn, funds []models.Fund) (string, string) {
2057 2057
 	// 生成签名
2058 2058
 	timestamp := time.Now().Unix()
2059 2059
 	// 生成输入报文
@@ -2061,50 +2061,49 @@ func Jxyb3262(stmt_mon string, setl_optins string, org_name string, doctor strin
2061 2061
 	input := make(map[string]interface{})
2062 2062
 	inputData := make(map[string]interface{})
2063 2063
 
2064
-	fixMonRecDetailFileIn := make(map[string]interface{})
2065
-	//fixMonRecDetailFileIns := []make(map[string]interface{})
2066 2064
 	fixMonRecDetailFileIns := make([]map[string]interface{}, 0)
2067
-
2068
-	fund := make(map[string]interface{})
2069 2065
 	fundList := make([]map[string]interface{}, 0)
2070
-
2071 2066
 	inputMessage["infno"] = "3262" // 交易编码
2072 2067
 	inputData["fixmedins_code"] = fixmedins_code
2073 2068
 	inputData["fixmedins_name"] = org_name
2074
-	inputData["fix_fill_dept"] = ""
2075
-	inputData["fix_fill_psn_id"] = ""
2076
-	inputData["fix_fill_psn"] = ""
2077
-	inputData["fix_fill_date"] = ""
2078
-	inputData["stmt_loc"] = ""
2079
-	inputData["upld_btch"] = ""
2080
-
2081
-	fixMonRecDetailFileIn["insutype"] = ""
2082
-	fixMonRecDetailFileIn["psn_type"] = ""
2083
-	fixMonRecDetailFileIn["med_type"] = ""
2084
-	fixMonRecDetailFileIn["fix_blng_admdvs"] = ""
2085
-	fixMonRecDetailFileIn["insu_admdvs"] = ""
2086
-	fixMonRecDetailFileIn["psn_time"] = ""
2087
-	fixMonRecDetailFileIn["psn_cnt"] = ""
2088
-	fixMonRecDetailFileIn["medfee_sumamt"] = ""
2089
-	fixMonRecDetailFileIn["inscp_amt"] = ""
2090
-	fixMonRecDetailFileIn["fund_pay_sumamt"] = ""
2091
-	fixMonRecDetailFileIn["fund_key"] = ""
2092
-	fixMonRecDetailFileIns = append(fixMonRecDetailFileIns, fixMonRecDetailFileIn)
2093
-
2094
-	fund["fund_key"] = ""
2095
-	fund["fix_blng_admdvs"] = ""
2096
-	fund["insu_admdvs"] = ""
2097
-	fund["fix_blng_admdvs"] = ""
2098
-	fund["insu_admdvs"] = ""
2099
-	fund["fund_code"] = ""
2100
-	fund["fund_name"] = ""
2101
-	fund["fund_amt"] = ""
2102
-	fund["memo"] = ""
2103
-	fundList = append(fundList, fund)
2069
+	inputData["fix_fill_dept"] = fix_fill_dept
2070
+	inputData["fix_fill_psn_id"] = fix_fill_psn_id
2071
+	inputData["fix_fill_psn"] = fix_fill_psn
2072
+	inputData["fix_fill_date"] = fix_fill_date
2073
+	inputData["stmt_loc"] = stmt_loc
2074
+	inputData["upld_btch"] = upld_btch
2075
+
2076
+	for _, item := range hp {
2077
+		fixMonRecDetailFileIn := make(map[string]interface{})
2078
+		fixMonRecDetailFileIn["insutype"] = item.Insutype
2079
+		fixMonRecDetailFileIn["psn_type"] = item.PsnType
2080
+		fixMonRecDetailFileIn["med_type"] = item.MedType
2081
+		fixMonRecDetailFileIn["fix_blng_admdvs"] = item.FixBlngAdmdvs
2082
+		fixMonRecDetailFileIn["insu_admdvs"] = item.InsuAdmdvs
2083
+		fixMonRecDetailFileIn["psn_time"] = item.PsnTime
2084
+		fixMonRecDetailFileIn["psn_cnt"] = item.PsnCnt
2085
+		fixMonRecDetailFileIn["medfee_sumamt"] = item.MedfeeSumAmt
2086
+		fixMonRecDetailFileIn["inscp_amt"] = item.InscpAmt
2087
+		fixMonRecDetailFileIn["fund_pay_sumamt"] = item.FundPaySumAmt
2088
+		fixMonRecDetailFileIn["fund_key"] = item.FundKey
2089
+		fixMonRecDetailFileIns = append(fixMonRecDetailFileIns, fixMonRecDetailFileIn)
2090
+	}
2091
+	for _, item := range funds {
2092
+		fund := make(map[string]interface{})
2093
+		fund["fund_key"] = item.FundKey
2094
+		fund["fix_blng_admdvs"] = item.FixBlngAdmdvs
2095
+		fund["insu_admdvs"] = item.InsuAdmdvs
2096
+		fund["fix_blng_admdvs"] = item.FixBlngAdmdvs
2097
+		fund["insu_admdvs"] = item.InsuAdmdvs
2098
+		fund["fund_code"] = item.FundCode
2099
+		fund["fund_name"] = item.FundName
2100
+		fund["fund_amt"] = item.FundAmt
2101
+		fund["memo"] = ""
2102
+		fundList = append(fundList, fund)
2103
+	}
2104 2104
 
2105 2105
 	inputData["fixMonRecDetailFileInList"] = fixMonRecDetailFileIns
2106 2106
 	inputData["fundList"] = fundList
2107
-
2108 2107
 	input["data"] = inputData
2109 2108
 	inputMessage["input"] = input //交易输入
2110 2109
 	bytesData, err := json.Marshal(inputMessage)
@@ -2114,9 +2113,9 @@ func Jxyb3262(stmt_mon string, setl_optins string, org_name string, doctor strin
2114 2113
 		return err.Error(), ""
2115 2114
 	}
2116 2115
 	request_url = request_url + "3262"
2117
-	return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3261"), string(bytesData)
2116
+	return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3262"), string(bytesData)
2118 2117
 }
2119
-func Jxyb3263(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
2118
+func Jxyb3263(stmt_mon string, stmt_loc string, upld_btch string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
2120 2119
 	// 生成签名
2121 2120
 	timestamp := time.Now().Unix()
2122 2121
 	// 生成输入报文
@@ -2126,9 +2125,9 @@ func Jxyb3263(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
2126 2125
 	inputMessage["infno"] = "3263"               // 交易编码
2127 2126
 	inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
2128 2127
 	inputData["fixmedins_name"] = org_name       //对帐结束时间
2129
-	inputData["stmt_mon"] = ""                   //医疗费总额
2130
-	inputData["stmt_loc"] = ""                   //医疗费总额
2131
-	inputData["upld_btch"] = ""                  //医疗费总额
2128
+	inputData["stmt_mon"] = stmt_mon             //医疗费总额
2129
+	inputData["stmt_loc"] = stmt_loc             //医疗费总额
2130
+	inputData["upld_btch"] = upld_btch           //医疗费总额
2132 2131
 
2133 2132
 	input["data"] = inputData
2134 2133
 	inputMessage["input"] = input //交易输入
@@ -2141,7 +2140,7 @@ func Jxyb3263(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
2141 2140
 	request_url = request_url + "3263"
2142 2141
 	return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3263"), string(bytesData)
2143 2142
 }
2144
-func Jxyb3264(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
2143
+func Jxyb3264(stmt_mon string, stmt_loc string, upld_btch string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
2145 2144
 	// 生成签名
2146 2145
 	timestamp := time.Now().Unix()
2147 2146
 	// 生成输入报文
@@ -2151,9 +2150,9 @@ func Jxyb3264(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
2151 2150
 	inputMessage["infno"] = "3264"               // 交易编码
2152 2151
 	inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
2153 2152
 	inputData["fixmedins_name"] = org_name       //对帐结束时间
2154
-	inputData["stmt_mon"] = ""                   //医疗费总额
2155
-	inputData["stmt_loc"] = ""                   //医疗费总额
2156
-	inputData["upld_btch"] = ""                  //医疗费总额
2153
+	inputData["stmt_mon"] = stmt_mon             //医疗费总额
2154
+	inputData["stmt_loc"] = stmt_loc             //医疗费总额
2155
+	inputData["upld_btch"] = upld_btch           //医疗费总额
2157 2156
 
2158 2157
 	input["data"] = inputData
2159 2158
 	inputMessage["input"] = input //交易输入
@@ -2166,7 +2165,7 @@ func Jxyb3264(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
2166 2165
 	request_url = request_url + "3264"
2167 2166
 	return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3264"), string(bytesData)
2168 2167
 }
2169
-func Jxyb3265(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
2168
+func Jxyb3265(stmt_mon string, fix_fill_dept string, fix_fill_psn_id string, fix_fill_psn string, fix_fill_date string, stmt_loc string, upld_btch string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
2170 2169
 	// 生成签名
2171 2170
 	timestamp := time.Now().Unix()
2172 2171
 	// 生成输入报文
@@ -2174,18 +2173,18 @@ func Jxyb3265(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
2174 2173
 	input := make(map[string]interface{})
2175 2174
 	inputData := make(map[string]interface{})
2176 2175
 
2177
-	solidifyId := make(map[string]interface{})
2176
+	//solidifyId := make(map[string]interface{})
2178 2177
 
2179
-	inputMessage["infno"] = "3265"               // 交易编码
2180
-	inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
2181
-	inputData["fixmedins_name"] = org_name       //对帐结束时间
2182
-	inputData["stmt_mon"] = ""                   //医疗费总额
2183
-	inputData["fix_fill_dept"] = ""              //对帐结束时间
2184
-	inputData["fix_fill_psn_id"] = ""            //对帐结束时间
2185
-	inputData["fix_fill_psn"] = ""               //对帐结束时间
2186
-	inputData["fix_fill_date"] = ""              //对帐结束时间
2187
-	inputData["stmt_loc"] = ""                   //医疗费总额
2188
-	inputData["upld_btch"] = ""                  //医疗费总额
2178
+	inputMessage["infno"] = "3265"                 // 交易编码
2179
+	inputData["fixmedins_code"] = fixmedins_code   // 对帐开始时间
2180
+	inputData["fixmedins_name"] = org_name         //对帐结束时间
2181
+	inputData["stmt_mon"] = stmt_mon               //医疗费总额
2182
+	inputData["fix_fill_dept"] = fix_fill_dept     //对帐结束时间
2183
+	inputData["fix_fill_psn_id"] = fix_fill_psn_id //对帐结束时间
2184
+	inputData["fix_fill_psn"] = fix_fill_psn       //对帐结束时间
2185
+	inputData["fix_fill_date"] = fix_fill_date     //对帐结束时间
2186
+	inputData["stmt_loc"] = stmt_loc               //医疗费总额
2187
+	inputData["upld_btch"] = upld_btch             //医疗费总额
2189 2188
 
2190 2189
 	inputData["solidifyIdList"] = "" //医疗费总额
2191 2190
 
@@ -2198,9 +2197,9 @@ func Jxyb3265(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
2198 2197
 		return err.Error(), ""
2199 2198
 	}
2200 2199
 	request_url = request_url + "3265"
2201
-	return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3266"), string(bytesData)
2200
+	return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3265"), string(bytesData)
2202 2201
 }
2203
-func Jxyb3266(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
2202
+func Jxyb3266(stmt_mon string, fix_fill_dept string, fix_fill_psn_id string, fix_fill_psn string, fix_fill_date string, stmt_loc string, upld_btch string, fix_blng_admdvs string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
2204 2203
 	// 生成签名
2205 2204
 	timestamp := time.Now().Unix()
2206 2205
 	// 生成输入报文
@@ -2211,14 +2210,14 @@ func Jxyb3266(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
2211 2210
 	inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
2212 2211
 	inputData["fixmedins_name"] = org_name       //对帐结束时间
2213 2212
 
2214
-	inputData["fix_blng_admdvs"] = setl_optins //对帐结束时间
2215
-	inputData["stmt_mon"] = ""                 //医疗费总额
2216
-	inputData["fix_fill_dept"] = setl_optins   //对帐结束时间
2217
-	inputData["fix_fill_psn_id"] = setl_optins //对帐结束时间
2218
-	inputData["fix_fill_psn"] = setl_optins    //对帐结束时间
2219
-	inputData["fix_fill_date"] = setl_optins   //对帐结束时间
2220
-	inputData["stmt_loc"] = ""                 //医疗费总额
2221
-	inputData["upld_btch"] = ""                //医疗费总额
2213
+	inputData["fix_blng_admdvs"] = fix_blng_admdvs //对帐结束时间
2214
+	inputData["stmt_mon"] = stmt_mon               //医疗费总额
2215
+	inputData["fix_fill_dept"] = fix_fill_dept     //对帐结束时间
2216
+	inputData["fix_fill_psn_id"] = fix_fill_psn_id //对帐结束时间
2217
+	inputData["fix_fill_psn"] = fix_fill_psn       //对帐结束时间
2218
+	inputData["fix_fill_date"] = fix_fill_date     //对帐结束时间
2219
+	inputData["stmt_loc"] = stmt_loc               //医疗费总额
2220
+	inputData["upld_btch"] = upld_btch             //医疗费总额
2222 2221
 
2223 2222
 	input["data"] = inputData
2224 2223
 	inputMessage["input"] = input //交易输入
@@ -2231,7 +2230,7 @@ func Jxyb3266(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
2231 2230
 	request_url = request_url + "3266"
2232 2231
 	return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3266"), string(bytesData)
2233 2232
 }
2234
-func Jxyb3267(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
2233
+func Jxyb3267(stmt_mon string, stmt_loc string, upld_btch string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
2235 2234
 	// 生成签名
2236 2235
 	timestamp := time.Now().Unix()
2237 2236
 	// 生成输入报文
@@ -2241,9 +2240,9 @@ func Jxyb3267(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
2241 2240
 	inputMessage["infno"] = "3267"               // 交易编码
2242 2241
 	inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
2243 2242
 	inputData["fixmedins_name"] = org_name       //对帐结束时间
2244
-	inputData["stmt_mon"] = ""                   //医疗费总额
2245
-	inputData["stmt_loc"] = ""                   //医疗费总额
2246
-	inputData["upld_btch"] = ""                  //医疗费总额
2243
+	inputData["stmt_mon"] = stmt_mon             //医疗费总额
2244
+	inputData["stmt_loc"] = stmt_loc             //医疗费总额
2245
+	inputData["upld_btch"] = upld_btch           //医疗费总额
2247 2246
 
2248 2247
 	input["data"] = inputData
2249 2248
 	inputMessage["input"] = input //交易输入
@@ -2256,7 +2255,7 @@ func Jxyb3267(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
2256 2255
 	request_url = request_url + "3267"
2257 2256
 	return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3267"), string(bytesData)
2258 2257
 }
2259
-func Jxyb3268(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
2258
+func Jxyb3268(org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string, upld_btch string, fix_fill_dept string, fix_fill_psn_id string, fix_fill_psn string, fix_fill_date string, stmt_loc string, hp []models.FixMonRecDetailFileIn, funds []models.Fund) (string, string) {
2260 2259
 	// 生成签名
2261 2260
 	timestamp := time.Now().Unix()
2262 2261
 	// 生成输入报文
@@ -2264,48 +2263,50 @@ func Jxyb3268(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
2264 2263
 	input := make(map[string]interface{})
2265 2264
 	inputData := make(map[string]interface{})
2266 2265
 
2267
-	fixMonRecDetailFileIn := make(map[string]interface{})
2268
-	//fixMonRecDetailFileIns := []make(map[string]interface{})
2269 2266
 	fixMonRecDetailFileIns := make([]map[string]interface{}, 0)
2270
-
2271
-	fund := make(map[string]interface{})
2272 2267
 	fundList := make([]map[string]interface{}, 0)
2273 2268
 
2274 2269
 	inputMessage["infno"] = "3268"               // 交易编码
2275 2270
 	inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
2276 2271
 	inputData["fixmedins_name"] = org_name       //对帐结束时间
2277 2272
 
2278
-	inputData["setl_mon"] = ""        //对帐结束时间
2279
-	inputData["fix_fill_dept"] = ""   //对帐结束时间
2280
-	inputData["fix_fill_psn_id"] = "" //对帐结束时间
2281
-	inputData["fix_fill_psn"] = ""    //对帐结束时间
2282
-	inputData["fix_fill_date"] = ""   //对帐结束时间
2283
-	inputData["stmt_loc"] = ""        //对帐结束时间
2284
-
2285
-	fixMonRecDetailFileIn["setl_date"] = ""
2286
-	fixMonRecDetailFileIn["insutype"] = ""
2287
-	fixMonRecDetailFileIn["psn_type"] = ""
2288
-	fixMonRecDetailFileIn["med_type"] = ""
2289
-	fixMonRecDetailFileIn["fix_blng_admdvs"] = ""
2290
-	fixMonRecDetailFileIn["insu_admdvs"] = ""
2291
-	fixMonRecDetailFileIn["psn_time"] = ""
2292
-	fixMonRecDetailFileIn["psn_cnt"] = ""
2293
-	fixMonRecDetailFileIn["medfee_sumamt"] = ""
2294
-	fixMonRecDetailFileIn["inscp_amt"] = ""
2295
-	fixMonRecDetailFileIn["fund_pay_sumamt"] = ""
2296
-	fixMonRecDetailFileIn["fund_key"] = ""
2297
-	fixMonRecDetailFileIns = append(fixMonRecDetailFileIns, fixMonRecDetailFileIn)
2298
-
2299
-	fund["fund_key"] = ""
2300
-	fund["fix_blng_admdvs"] = ""
2301
-	fund["insu_admdvs"] = ""
2302
-	fund["fix_blng_admdvs"] = ""
2303
-	fund["insu_admdvs"] = ""
2304
-	fund["fund_code"] = ""
2305
-	fund["fund_name"] = ""
2306
-	fund["fund_amt"] = ""
2307
-	fund["memo"] = ""
2308
-	fundList = append(fundList, fund)
2273
+	inputData["setl_mon"] = "" //对帐结束时间
2274
+	inputData["fix_fill_dept"] = fix_fill_dept
2275
+	inputData["fix_fill_psn_id"] = fix_fill_psn_id
2276
+	inputData["fix_fill_psn"] = fix_fill_psn
2277
+	inputData["fix_fill_date"] = fix_fill_date
2278
+	inputData["stmt_loc"] = stmt_loc
2279
+
2280
+	for _, item := range hp {
2281
+		fixMonRecDetailFileIn := make(map[string]interface{})
2282
+		fixMonRecDetailFileIn["setl_date"] = ""
2283
+		fixMonRecDetailFileIn["insutype"] = item.Insutype
2284
+		fixMonRecDetailFileIn["psn_type"] = item.PsnType
2285
+		fixMonRecDetailFileIn["med_type"] = item.MedType
2286
+		fixMonRecDetailFileIn["fix_blng_admdvs"] = item.FixBlngAdmdvs
2287
+		fixMonRecDetailFileIn["insu_admdvs"] = item.InsuAdmdvs
2288
+		fixMonRecDetailFileIn["psn_time"] = item.PsnTime
2289
+		fixMonRecDetailFileIn["psn_cnt"] = item.PsnCnt
2290
+		fixMonRecDetailFileIn["medfee_sumamt"] = item.MedfeeSumAmt
2291
+		fixMonRecDetailFileIn["inscp_amt"] = item.InscpAmt
2292
+		fixMonRecDetailFileIn["fund_pay_sumamt"] = item.FundPaySumAmt
2293
+		fixMonRecDetailFileIn["fund_key"] = item.FundKey
2294
+		fixMonRecDetailFileIns = append(fixMonRecDetailFileIns, fixMonRecDetailFileIn)
2295
+	}
2296
+
2297
+	for _, item := range funds {
2298
+		fund := make(map[string]interface{})
2299
+		fund["fund_key"] = item.FundKey
2300
+		fund["fix_blng_admdvs"] = item.FixBlngAdmdvs
2301
+		fund["insu_admdvs"] = item.InsuAdmdvs
2302
+		fund["fix_blng_admdvs"] = item.FixBlngAdmdvs
2303
+		fund["insu_admdvs"] = item.InsuAdmdvs
2304
+		fund["fund_code"] = item.FundCode
2305
+		fund["fund_name"] = item.FundName
2306
+		fund["fund_amt"] = item.FundAmt
2307
+		fund["memo"] = ""
2308
+		fundList = append(fundList, fund)
2309
+	}
2309 2310
 
2310 2311
 	inputData["fixDateRecDetailFileInList"] = fixMonRecDetailFileIns
2311 2312
 	inputData["fundList"] = fundList
@@ -2319,9 +2320,9 @@ func Jxyb3268(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
2319 2320
 		return err.Error(), ""
2320 2321
 	}
2321 2322
 	request_url = request_url + "3268"
2322
-	return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3267"), string(bytesData)
2323
+	return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3268"), string(bytesData)
2323 2324
 }
2324
-func Jxyb3269(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
2325
+func Jxyb3269(stmt_mon string, stmt_loc string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
2325 2326
 	// 生成签名
2326 2327
 	timestamp := time.Now().Unix()
2327 2328
 	// 生成输入报文
@@ -2331,8 +2332,8 @@ func Jxyb3269(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
2331 2332
 	inputMessage["infno"] = "3269"               // 交易编码
2332 2333
 	inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
2333 2334
 	inputData["fixmedins_name"] = org_name       //对帐结束时间
2334
-	inputData["stmt_mon"] = ""                   //医疗费总额
2335
-	inputData["stmt_loc"] = ""                   //医疗费总额
2335
+	inputData["stmt_mon"] = stmt_mon             //医疗费总额
2336
+	inputData["stmt_loc"] = stmt_loc             //医疗费总额
2336 2337
 
2337 2338
 	input["data"] = inputData
2338 2339
 	inputMessage["input"] = input //交易输入
@@ -2343,20 +2344,20 @@ func Jxyb3269(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
2343 2344
 		return err.Error(), ""
2344 2345
 	}
2345 2346
 	request_url = request_url + "3269"
2346
-	return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3267"), string(bytesData)
2347
+	return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3269"), string(bytesData)
2347 2348
 }
2348
-func Jxyb3270(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
2349
+func Jxyb3270(stmt_mon string, stmt_loc string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
2349 2350
 	// 生成签名
2350 2351
 	timestamp := time.Now().Unix()
2351 2352
 	// 生成输入报文
2352 2353
 	inputMessage := SetJXInputMessage(timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, cainfo)
2353 2354
 	input := make(map[string]interface{})
2354 2355
 	inputData := make(map[string]interface{})
2355
-	inputMessage["infno"] = "3267"               // 交易编码
2356
+	inputMessage["infno"] = "3270"               // 交易编码
2356 2357
 	inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
2357 2358
 	inputData["fixmedins_name"] = org_name       //对帐结束时间
2358
-	inputData["stmt_mon"] = ""                   //医疗费总额
2359
-	inputData["stmt_loc"] = ""                   //医疗费总额
2359
+	inputData["stmt_mon"] = stmt_mon             //医疗费总额
2360
+	inputData["stmt_loc"] = stmt_loc             //医疗费总额
2360 2361
 
2361 2362
 	input["data"] = inputData
2362 2363
 	inputMessage["input"] = input //交易输入
@@ -2367,9 +2368,9 @@ func Jxyb3270(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
2367 2368
 		return err.Error(), ""
2368 2369
 	}
2369 2370
 	request_url = request_url + "3270"
2370
-	return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3267"), string(bytesData)
2371
+	return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3270"), string(bytesData)
2371 2372
 }
2372
-func Jxyb3271(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
2373
+func Jxyb3271(fix_fill_dept string, fix_fill_psn_id string, fix_fill_psn string, fix_fill_date string, stmt_loc string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
2373 2374
 	// 生成签名
2374 2375
 	timestamp := time.Now().Unix()
2375 2376
 	// 生成输入报文
@@ -2380,11 +2381,11 @@ func Jxyb3271(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
2380 2381
 	inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
2381 2382
 	inputData["fixmedins_name"] = org_name       //对帐结束时间
2382 2383
 
2383
-	inputData["fix_fill_dept"] = ""   //对帐结束时间
2384
-	inputData["fix_fill_psn_id"] = "" //对帐结束时间
2385
-	inputData["fix_fill_psn"] = ""    //对帐结束时间
2386
-	inputData["fix_fill_date"] = ""   //对帐结束时间
2387
-	inputData["stmt_loc"] = ""        //医疗费总额
2384
+	inputData["fix_fill_dept"] = fix_fill_dept     //对帐结束时间
2385
+	inputData["fix_fill_psn_id"] = fix_fill_psn_id //对帐结束时间
2386
+	inputData["fix_fill_psn"] = fix_fill_psn       //对帐结束时间
2387
+	inputData["fix_fill_date"] = fix_fill_date     //对帐结束时间
2388
+	inputData["stmt_loc"] = stmt_loc               //医疗费总额
2388 2389
 
2389 2390
 	input["data"] = inputData
2390 2391
 	inputMessage["input"] = input //交易输入
@@ -2395,25 +2396,25 @@ func Jxyb3271(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
2395 2396
 		return err.Error(), ""
2396 2397
 	}
2397 2398
 	request_url = request_url + "3271"
2398
-	return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3267"), string(bytesData)
2399
+	return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3271"), string(bytesData)
2399 2400
 }
2400
-func Jxyb3272(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
2401
+func Jxyb3272(setl_mon string, fix_fill_dept string, fix_fill_psn_id string, fix_fill_psn string, fix_fill_date string, stmt_loc string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
2401 2402
 	// 生成签名
2402 2403
 	timestamp := time.Now().Unix()
2403 2404
 	// 生成输入报文
2404 2405
 	inputMessage := SetJXInputMessage(timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, cainfo)
2405 2406
 	input := make(map[string]interface{})
2406 2407
 	inputData := make(map[string]interface{})
2407
-	inputMessage["infno"] = "3272"               // 交易编码
2408
-	inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
2409
-	inputData["fixmedins_name"] = org_name       //对帐结束时间
2410
-	inputData["fix_blng_admdvs"] = org_name      //对帐结束时间
2411
-	inputData["setl_mon"] = org_name             //对帐结束时间
2412
-	inputData["fix_fill_dept"] = org_name        //对帐结束时间
2413
-	inputData["fix_fill_psn_id"] = org_name      //对帐结束时间
2414
-	inputData["fix_fill_psn"] = org_name         //
2415
-	inputData["fix_fill_date"] = org_name        //对帐结束时间
2416
-	inputData["stmt_loc"] = org_name             //对帐结束时间
2408
+	inputMessage["infno"] = "3272"                 // 交易编码
2409
+	inputData["fixmedins_code"] = fixmedins_code   // 对帐开始时间
2410
+	inputData["fixmedins_name"] = org_name         //对帐结束时间
2411
+	inputData["fix_blng_admdvs"] = mdtrtarea_admvs //对帐结束时间
2412
+	inputData["setl_mon"] = setl_mon               //对帐结束时间
2413
+	inputData["fix_fill_dept"] = fix_fill_dept     //对帐结束时间
2414
+	inputData["fix_fill_psn_id"] = fix_fill_psn_id //对帐结束时间
2415
+	inputData["fix_fill_psn"] = fix_fill_psn       //
2416
+	inputData["fix_fill_date"] = fix_fill_date     //对帐结束时间
2417
+	inputData["stmt_loc"] = stmt_loc               //对帐结束时间
2417 2418
 
2418 2419
 	input["data"] = inputData
2419 2420
 	inputMessage["input"] = input //交易输入
@@ -2424,9 +2425,9 @@ func Jxyb3272(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
2424 2425
 		return err.Error(), ""
2425 2426
 	}
2426 2427
 	request_url = request_url + "3272"
2427
-	return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3267"), string(bytesData)
2428
+	return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3272"), string(bytesData)
2428 2429
 }
2429
-func Jxyb3273(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
2430
+func Jxyb3273(stmt_mon string, stmt_loc string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
2430 2431
 	// 生成签名
2431 2432
 	timestamp := time.Now().Unix()
2432 2433
 	// 生成输入报文
@@ -2436,8 +2437,8 @@ func Jxyb3273(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
2436 2437
 	inputMessage["infno"] = "3273"               // 交易编码
2437 2438
 	inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
2438 2439
 	inputData["fixmedins_name"] = org_name       //对帐结束时间
2439
-	inputData["stmt_mon"] = ""                   //医疗费总额
2440
-	inputData["stmt_loc"] = ""                   //医疗费总额
2440
+	inputData["stmt_mon"] = stmt_mon             //医疗费总额
2441
+	inputData["stmt_loc"] = stmt_loc             //医疗费总额
2441 2442
 
2442 2443
 	input["data"] = inputData
2443 2444
 	inputMessage["input"] = input //交易输入
@@ -2448,9 +2449,9 @@ func Jxyb3273(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
2448 2449
 		return err.Error(), ""
2449 2450
 	}
2450 2451
 	request_url = request_url + "3273"
2451
-	return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3267"), string(bytesData)
2452
+	return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3273"), string(bytesData)
2452 2453
 }
2453
-func Jxyb3274(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
2454
+func Jxyb3274(setl_mon string, fix_fill_dept string, fix_fill_psn_id string, fix_fill_psn string, fix_fill_date string, stmt_loc string, upld_btch string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
2454 2455
 	// 生成签名
2455 2456
 	timestamp := time.Now().Unix()
2456 2457
 	// 生成输入报文
@@ -2461,13 +2462,13 @@ func Jxyb3274(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
2461 2462
 	inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
2462 2463
 	inputData["fixmedins_name"] = org_name       //对帐结束时间
2463 2464
 
2464
-	inputData["fix_blng_admdvs"] = "" //对帐结束时间
2465
-	inputData["setl_mon"] = ""        //对帐结束时间
2466
-	inputData["fix_fill_dept"] = ""   //对帐结束时间
2467
-	inputData["fix_fill_psn_id"] = "" //对帐结束时间
2468
-	inputData["fix_fill_psn"] = ""    //
2469
-	inputData["fix_fill_date"] = ""   //对帐结束时间
2470
-	inputData["stmt_loc"] = ""        //对帐结束时间
2465
+	inputData["fix_blng_admdvs"] = mdtrtarea_admvs //对帐结束时间
2466
+	inputData["setl_mon"] = setl_mon               //对帐结束时间
2467
+	inputData["fix_fill_dept"] = fix_fill_dept     //对帐结束时间
2468
+	inputData["fix_fill_psn_id"] = fix_fill_psn_id //对帐结束时间
2469
+	inputData["fix_fill_psn"] = fix_fill_psn       //
2470
+	inputData["fix_fill_date"] = fix_fill_date     //对帐结束时间
2471
+	inputData["stmt_loc"] = stmt_loc               //对帐结束时间
2471 2472
 
2472 2473
 	input["data"] = inputData
2473 2474
 	inputMessage["input"] = input //交易输入
@@ -2478,9 +2479,9 @@ func Jxyb3274(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
2478 2479
 		return err.Error(), ""
2479 2480
 	}
2480 2481
 	request_url = request_url + "3274"
2481
-	return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3267"), string(bytesData)
2482
+	return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3274"), string(bytesData)
2482 2483
 }
2483
-func Jxyb3275(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
2484
+func Jxyb3275(org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
2484 2485
 	// 生成签名
2485 2486
 	timestamp := time.Now().Unix()
2486 2487
 	// 生成输入报文
@@ -2524,15 +2525,15 @@ func Jxyb3275(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
2524 2525
 	request_url = request_url + "3275"
2525 2526
 	return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3267"), string(bytesData)
2526 2527
 }
2527
-func Jxyb3276(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
2528
+func Jxyb3276(upld_btch_no, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
2528 2529
 	// 生成签名
2529 2530
 	timestamp := time.Now().Unix()
2530 2531
 	// 生成输入报文
2531 2532
 	inputMessage := SetJXInputMessage(timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, cainfo)
2532 2533
 	input := make(map[string]interface{})
2533 2534
 	inputData := make(map[string]interface{})
2534
-	inputMessage["infno"] = "3276" // 交易编码
2535
-	inputData["upld_btch_no"] = "" //医疗费总额
2535
+	inputMessage["infno"] = "3276"           // 交易编码
2536
+	inputData["upld_btch_no"] = upld_btch_no //医疗费总额
2536 2537
 	input["data"] = inputData
2537 2538
 	inputMessage["input"] = input //交易输入
2538 2539
 	bytesData, err := json.Marshal(inputMessage)
@@ -2542,9 +2543,9 @@ func Jxyb3276(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
2542 2543
 		return err.Error(), ""
2543 2544
 	}
2544 2545
 	request_url = request_url + "3276"
2545
-	return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3267"), string(bytesData)
2546
+	return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3276"), string(bytesData)
2546 2547
 }
2547
-func Jxyb3277(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
2548
+func Jxyb3277(stmt_mon string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
2548 2549
 	// 生成签名
2549 2550
 	timestamp := time.Now().Unix()
2550 2551
 	// 生成输入报文
@@ -2554,7 +2555,7 @@ func Jxyb3277(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
2554 2555
 	inputMessage["infno"] = "3277"               // 交易编码
2555 2556
 	inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
2556 2557
 	inputData["fixmedins_name"] = org_name       //对帐结束时间
2557
-	inputData["stmt_mon"] = ""                   //医疗费总额
2558
+	inputData["stmt_mon"] = stmt_mon             //医疗费总额
2558 2559
 	input["data"] = inputData
2559 2560
 	inputMessage["input"] = input //交易输入
2560 2561
 	bytesData, err := json.Marshal(inputMessage)
@@ -2564,5 +2565,5 @@ func Jxyb3277(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float6
2564 2565
 		return err.Error(), ""
2565 2566
 	}
2566 2567
 	request_url = request_url + "3277"
2567
-	return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3267"), string(bytesData)
2568
+	return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3277"), string(bytesData)
2568 2569
 }