test_user 3 주 전
부모
커밋
2856996fec
4개의 변경된 파일1078개의 추가작업 그리고 1035개의 파일을 삭제
  1. 835 825
      controllers/sg/his_api_controller.go
  2. 208 206
      service/ah_dianzichufang.go
  3. 4 4
      service/db.go
  4. 31 0
      service/jx_service.go

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 835 - 825
controllers/sg/his_api_controller.go


+ 208 - 206
service/ah_dianzichufang.go 파일 보기

@@ -7,8 +7,10 @@ import (
7 7
 	"gdyb/models"
8 8
 	"io/ioutil"
9 9
 	"net/http"
10
-	"strconv"
10
+	//"strconv"
11 11
 	"time"
12
+
13
+
12 14
 )
13 15
 
14 16
 func GetAHCFYLJG001(org_name string, opera string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, url string, cFYLJG001 models.CFYLJG001, isu string, cainfo string) (string, string) {
@@ -392,140 +394,10 @@ func GetAHCFYLJG004(org_name string, doctor string, fixmedins_code string, insup
392 394
 	}
393 395
 
394 396
 	request.Header.Set("Content-Type", "application/json;charset=UTF-8")
395
-	request.Header.Set("x-tif-paasid", gdyb_paasid)
396
-	request.Header.Set("x-tif-signature", signature)
397
-	request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
398
-	request.Header.Set("x-tif-nonce", nonce)
399
-
400
-	client := http.Client{}
401
-	resp, err := client.Do(request)
402
-	if err != nil {
403
-		fmt.Println(err.Error())
404
-		return err.Error(), ""
405
-	}
406
-	respBytes, err := ioutil.ReadAll(resp.Body)
407
-	if err != nil {
408
-		fmt.Println(err.Error())
409
-		return err.Error(), ""
410
-	}
411
-	fmt.Println(string(respBytes))
412
-	str := string(respBytes)
413
-	return str, inputLog
414
-
415
-}
416
-
417
-func GetAHCFYLJG005(org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, secret_key string, cFYLJG005 models.CFYLJG005, cainfo string) (string, string) {
418
-	//生成签名
419
-	nonce := GetRandomString(32)
420
-	timestamp := time.Now().Unix()
421
-	signature := setSignature(timestamp, nonce, secret_key)
422
-	//生成输入报文
423
-	inputMessage := SetInputMessage(nonce, timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs)
424
-
425
-	inputData := make(map[string]interface{})
426
-
427
-	inputData2 := make(map[string]interface{})
428
-	//inputDatas := make([]map[string]interface{}, 0)
429
-	inputMessage["infno"] = "7105"
430
-	inputData["fixmedinsCode"] = fixmedins_code
431
-	inputData["hiRxno"] = cFYLJG005.HiRxno
432
-	inputData["mdtrtId"] = cFYLJG005.MdtrtID
433
-	inputData["psnName"] = cFYLJG005.PsnName
434
-	inputData["psnCertType"] = cFYLJG005.PsnCertType
435
-	inputData["certno"] = cFYLJG005.Certno
436
-	inputData2["data"] = inputData
437
-	inputMessage["input"] = inputData2
438
-	argInputMessage := make(map[string]interface{})
439
-	argInputMessage["arg0"] = inputMessage
440
-	var inputLog string
441
-	bytesData, err := json.Marshal(inputMessage)
442
-	inputLog = string(bytesData)
443
-	fmt.Println(string(bytesData))
444
-	if err != nil {
445
-		fmt.Println(err.Error())
446
-		return err.Error(), ""
447
-	}
448
-	reader := bytes.NewReader(bytesData)
449
-
450
-	var url string
451
-
452
-	url = url + "7105"
453
-
454
-	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/1101"
455
-	request, err := http.NewRequest("POST", url, reader)
456
-	if err != nil {
457
-		fmt.Println(err.Error())
458
-		return err.Error(), ""
459
-	}
460
-
461
-	request.Header.Set("Content-Type", "application/json;charset=UTF-8")
462
-	client := http.Client{}
463
-	resp, err := client.Do(request)
464
-	if err != nil {
465
-		fmt.Println(err.Error())
466
-		return err.Error(), ""
467
-	}
468
-	respBytes, err := ioutil.ReadAll(resp.Body)
469
-	if err != nil {
470
-		fmt.Println(err.Error())
471
-		return err.Error(), ""
472
-	}
473
-	fmt.Println(string(respBytes))
474
-	str := string(respBytes)
475
-	return str, inputLog
476
-
477
-}
478
-func GetAHCFYLJG006(org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, secret_key string, cFYLJG006 models.CFYLJG006) (string, string) {
479
-	//生成签名
480
-	nonce := GetRandomString(32)
481
-	timestamp := time.Now().Unix()
482
-	signature := setSignature(timestamp, nonce, secret_key)
483
-	//生成输入报文
484
-	inputMessage := SetInputMessage(nonce, timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs)
485
-	inputData := make(map[string]interface{})
486
-	//inputDatas := make([]map[string]interface{}, 0)
487
-	inputData2 := make(map[string]interface{})
488
-
489
-	inputMessage["infno"] = "CFYLJG006"
490
-	inputData["fixmedinsCode"] = fixmedins_code
491
-	inputData["hiRxno"] = cFYLJG006.HiRxno
492
-	inputData["mdtrtId"] = cFYLJG006.MdtrtID
493
-	inputData["psnName"] = cFYLJG006.PsnName
494
-	inputData["psnCertType"] = cFYLJG006.PsnCertType
495
-	inputData["certno"] = cFYLJG006.Certno
496
-	inputData2["data"] = inputData
497
-	inputMessage["input"] = inputData2
498
-	var inputLog string
499
-	bytesData, err := json.Marshal(inputMessage)
500
-	inputLog = string(bytesData)
501
-	fmt.Println(string(bytesData))
502
-	if err != nil {
503
-		fmt.Println(err.Error())
504
-		return err.Error(), ""
505
-	}
506
-	reader := bytes.NewReader(bytesData)
507
-	gdyb_url := beego.AppConfig.String("gdyb_url")
508
-	gdyb_paasid := beego.AppConfig.String("gdyb_paasid")
509
-
510
-	var url string
511
-	if fixmedins_code == "H15049901371" {
512
-		url = gdyb_url
513
-	} else {
514
-		url = gdyb_url + "CFYLJG006"
515
-	}
516
-
517
-	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/1101"
518
-	request, err := http.NewRequest("POST", url, reader)
519
-	if err != nil {
520
-		fmt.Println(err.Error())
521
-		return err.Error(), ""
522
-	}
523
-
524
-	request.Header.Set("Content-Type", "application/json;charset=UTF-8")
525
-	request.Header.Set("x-tif-paasid", gdyb_paasid)
526
-	request.Header.Set("x-tif-signature", signature)
527
-	request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
528
-	request.Header.Set("x-tif-nonce", nonce)
397
+	//request.Header.Set("x-tif-paasid", gdyb_paasid)
398
+	//request.Header.Set("x-tif-signature", signature)
399
+	//request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
400
+	//request.Header.Set("x-tif-nonce", nonce)
529 401
 
530 402
 	client := http.Client{}
531 403
 	resp, err := client.Do(request)
@@ -543,78 +415,208 @@ func GetAHCFYLJG006(org_name string, doctor string, fixmedins_code string, insup
543 415
 	return str, inputLog
544 416
 
545 417
 }
546
-func GetAHCFYLJG007(org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, secret_key string, cFYLJG007 models.CFYLJG007) (string, string) {
547
-	//生成签名
548
-	nonce := GetRandomString(32)
549
-	timestamp := time.Now().Unix()
550
-	signature := setSignature(timestamp, nonce, secret_key)
551
-	//生成输入报文
552
-	inputMessage := SetInputMessage(nonce, timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs)
553
-	inputData := make(map[string]interface{})
554
-	inputData2 := make(map[string]interface{})
555
-
556
-	//inputDatas := make([]map[string]interface{}, 0)
557
-
558
-	inputMessage["infno"] = "CFYLJG007"
559
-
560
-	inputData["fixmedinsCode"] = fixmedins_code
561
-	inputData["hiRxno"] = cFYLJG007.HiRxno
562
-	inputData["mdtrtId"] = cFYLJG007.MdtrtID
563
-	inputData["psnCertType"] = cFYLJG007.PsnCertType
564
-	inputData["certno"] = cFYLJG007.Certno
565
-	inputData["psnName"] = cFYLJG007.PsnName
566
-
567
-	inputData2["data"] = inputData
568 418
 
569
-	inputMessage["input"] = inputData2
570
-	var inputLog string
571
-	bytesData, err := json.Marshal(inputMessage)
572
-	inputLog = string(bytesData)
573
-	fmt.Println(string(bytesData))
574
-	if err != nil {
575
-		fmt.Println(err.Error())
576
-		return err.Error(), ""
577
-	}
578
-	reader := bytes.NewReader(bytesData)
579
-	gdyb_url := beego.AppConfig.String("gdyb_url")
580
-	gdyb_paasid := beego.AppConfig.String("gdyb_paasid")
581
-
582
-	var url string
583
-	if fixmedins_code == "H15049901371" {
584
-		url = gdyb_url
585
-	} else {
586
-		url = gdyb_url + "CFYLJG007"
587
-	}
588
-
589
-	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/1101"
590
-	request, err := http.NewRequest("POST", url, reader)
591
-	if err != nil {
592
-		fmt.Println(err.Error())
593
-		return err.Error(), ""
594
-	}
595
-
596
-	request.Header.Set("Content-Type", "application/json;charset=UTF-8")
597
-	request.Header.Set("x-tif-paasid", gdyb_paasid)
598
-	request.Header.Set("x-tif-signature", signature)
599
-	request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
600
-	request.Header.Set("x-tif-nonce", nonce)
601
-
602
-	client := http.Client{}
603
-	resp, err := client.Do(request)
604
-	if err != nil {
605
-		fmt.Println(err.Error())
606
-		return err.Error(), ""
607
-	}
608
-	respBytes, err := ioutil.ReadAll(resp.Body)
609
-	if err != nil {
610
-		fmt.Println(err.Error())
611
-		return err.Error(), ""
612
-	}
613
-	fmt.Println(string(respBytes))
614
-	str := string(respBytes)
615
-	return str, inputLog
616
-
617
-}
419
+//func GetAHCFYLJG005(org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, secret_key string, cFYLJG005 models.CFYLJG005, cainfo string) (string, string) {
420
+//	//生成签名
421
+//	nonce := GetRandomString(32)
422
+//	timestamp := time.Now().Unix()
423
+//	//signature := setSignature(timestamp, nonce, secret_key)
424
+//	//生成输入报文
425
+//	inputMessage := SetInputMessage(nonce, timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs)
426
+//
427
+//	inputData := make(map[string]interface{})
428
+//
429
+//	inputData2 := make(map[string]interface{})
430
+//	//inputDatas := make([]map[string]interface{}, 0)
431
+//	inputMessage["infno"] = "7105"
432
+//	inputData["fixmedinsCode"] = fixmedins_code
433
+//	inputData["hiRxno"] = cFYLJG005.HiRxno
434
+//	inputData["mdtrtId"] = cFYLJG005.MdtrtID
435
+//	inputData["psnName"] = cFYLJG005.PsnName
436
+//	inputData["psnCertType"] = cFYLJG005.PsnCertType
437
+//	inputData["certno"] = cFYLJG005.Certno
438
+//	inputData2["data"] = inputData
439
+//	inputMessage["input"] = inputData2
440
+//	argInputMessage := make(map[string]interface{})
441
+//	argInputMessage["arg0"] = inputMessage
442
+//	var inputLog string
443
+//	bytesData, err := json.Marshal(inputMessage)
444
+//	inputLog = string(bytesData)
445
+//	fmt.Println(string(bytesData))
446
+//	if err != nil {
447
+//		fmt.Println(err.Error())
448
+//		return err.Error(), ""
449
+//	}
450
+//	reader := bytes.NewReader(bytesData)
451
+//
452
+//	var url string
453
+//
454
+//	url = url + "7105"
455
+//
456
+//	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/1101"
457
+//	request, err := http.NewRequest("POST", url, reader)
458
+//	if err != nil {
459
+//		fmt.Println(err.Error())
460
+//		return err.Error(), ""
461
+//	}
462
+//
463
+//	request.Header.Set("Content-Type", "application/json;charset=UTF-8")
464
+//	client := http.Client{}
465
+//	resp, err := client.Do(request)
466
+//	if err != nil {
467
+//		fmt.Println(err.Error())
468
+//		return err.Error(), ""
469
+//	}
470
+//	respBytes, err := ioutil.ReadAll(resp.Body)
471
+//	if err != nil {
472
+//		fmt.Println(err.Error())
473
+//		return err.Error(), ""
474
+//	}
475
+//	fmt.Println(string(respBytes))
476
+//	str := string(respBytes)
477
+//	return str, inputLog
478
+//
479
+//}
480
+//func GetAHCFYLJG006(org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, secret_key string, cFYLJG006 models.CFYLJG006) (string, string) {
481
+//	//生成签名
482
+//	nonce := GetRandomString(32)
483
+//	timestamp := time.Now().Unix()
484
+//	signature := setSignature(timestamp, nonce, secret_key)
485
+//	//生成输入报文
486
+//	inputMessage := SetInputMessage(nonce, timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs)
487
+//	inputData := make(map[string]interface{})
488
+//	//inputDatas := make([]map[string]interface{}, 0)
489
+//	inputData2 := make(map[string]interface{})
490
+//
491
+//	inputMessage["infno"] = "CFYLJG006"
492
+//	inputData["fixmedinsCode"] = fixmedins_code
493
+//	inputData["hiRxno"] = cFYLJG006.HiRxno
494
+//	inputData["mdtrtId"] = cFYLJG006.MdtrtID
495
+//	inputData["psnName"] = cFYLJG006.PsnName
496
+//	inputData["psnCertType"] = cFYLJG006.PsnCertType
497
+//	inputData["certno"] = cFYLJG006.Certno
498
+//	inputData2["data"] = inputData
499
+//	inputMessage["input"] = inputData2
500
+//	var inputLog string
501
+//	bytesData, err := json.Marshal(inputMessage)
502
+//	inputLog = string(bytesData)
503
+//	fmt.Println(string(bytesData))
504
+//	if err != nil {
505
+//		fmt.Println(err.Error())
506
+//		return err.Error(), ""
507
+//	}
508
+//	reader := bytes.NewReader(bytesData)
509
+//	gdyb_url := beego.AppConfig.String("gdyb_url")
510
+//	gdyb_paasid := beego.AppConfig.String("gdyb_paasid")
511
+//
512
+//	var url string
513
+//	if fixmedins_code == "H15049901371" {
514
+//		url = gdyb_url
515
+//	} else {
516
+//		url = gdyb_url + "CFYLJG006"
517
+//	}
518
+//
519
+//	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/1101"
520
+//	request, err := http.NewRequest("POST", url, reader)
521
+//	if err != nil {
522
+//		fmt.Println(err.Error())
523
+//		return err.Error(), ""
524
+//	}
525
+//
526
+//	request.Header.Set("Content-Type", "application/json;charset=UTF-8")
527
+//	request.Header.Set("x-tif-paasid", gdyb_paasid)
528
+//	request.Header.Set("x-tif-signature", signature)
529
+//	request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
530
+//	request.Header.Set("x-tif-nonce", nonce)
531
+//
532
+//	client := http.Client{}
533
+//	resp, err := client.Do(request)
534
+//	if err != nil {
535
+//		fmt.Println(err.Error())
536
+//		return err.Error(), ""
537
+//	}
538
+//	respBytes, err := ioutil.ReadAll(resp.Body)
539
+//	if err != nil {
540
+//		fmt.Println(err.Error())
541
+//		return err.Error(), ""
542
+//	}
543
+//	fmt.Println(string(respBytes))
544
+//	str := string(respBytes)
545
+//	return str, inputLog
546
+//
547
+//}
548
+//func GetAHCFYLJG007(org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, secret_key string, cFYLJG007 models.CFYLJG007) (string, string) {
549
+//	//生成签名
550
+//	nonce := GetRandomString(32)
551
+//	timestamp := time.Now().Unix()
552
+//	signature := setSignature(timestamp, nonce, secret_key)
553
+//	//生成输入报文
554
+//	inputMessage := SetInputMessage(nonce, timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs)
555
+//	inputData := make(map[string]interface{})
556
+//	inputData2 := make(map[string]interface{})
557
+//
558
+//	//inputDatas := make([]map[string]interface{}, 0)
559
+//
560
+//	inputMessage["infno"] = "CFYLJG007"
561
+//
562
+//	inputData["fixmedinsCode"] = fixmedins_code
563
+//	inputData["hiRxno"] = cFYLJG007.HiRxno
564
+//	inputData["mdtrtId"] = cFYLJG007.MdtrtID
565
+//	inputData["psnCertType"] = cFYLJG007.PsnCertType
566
+//	inputData["certno"] = cFYLJG007.Certno
567
+//	inputData["psnName"] = cFYLJG007.PsnName
568
+//
569
+//	inputData2["data"] = inputData
570
+//
571
+//	inputMessage["input"] = inputData2
572
+//	var inputLog string
573
+//	bytesData, err := json.Marshal(inputMessage)
574
+//	inputLog = string(bytesData)
575
+//	fmt.Println(string(bytesData))
576
+//	if err != nil {
577
+//		fmt.Println(err.Error())
578
+//		return err.Error(), ""
579
+//	}
580
+//	reader := bytes.NewReader(bytesData)
581
+//	gdyb_url := beego.AppConfig.String("gdyb_url")
582
+//	gdyb_paasid := beego.AppConfig.String("gdyb_paasid")
583
+//
584
+//	var url string
585
+//	if fixmedins_code == "H15049901371" {
586
+//		url = gdyb_url
587
+//	} else {
588
+//		url = gdyb_url + "CFYLJG007"
589
+//	}
590
+//
591
+//	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/1101"
592
+//	request, err := http.NewRequest("POST", url, reader)
593
+//	if err != nil {
594
+//		fmt.Println(err.Error())
595
+//		return err.Error(), ""
596
+//	}
597
+//
598
+//	request.Header.Set("Content-Type", "application/json;charset=UTF-8")
599
+//	request.Header.Set("x-tif-paasid", gdyb_paasid)
600
+//	request.Header.Set("x-tif-signature", signature)
601
+//	request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
602
+//	request.Header.Set("x-tif-nonce", nonce)
603
+//
604
+//	client := http.Client{}
605
+//	resp, err := client.Do(request)
606
+//	if err != nil {
607
+//		fmt.Println(err.Error())
608
+//		return err.Error(), ""
609
+//	}
610
+//	respBytes, err := ioutil.ReadAll(resp.Body)
611
+//	if err != nil {
612
+//		fmt.Println(err.Error())
613
+//		return err.Error(), ""
614
+//	}
615
+//	fmt.Println(string(respBytes))
616
+//	str := string(respBytes)
617
+//	return str, inputLog
618
+//
619
+//}
618 620
 
619 621
 //func GetAHCFYLJG008(org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, secret_key string, cFYLJG008 models.CFYLJG008) (string, string) {
620 622
 //	//生成签名

+ 4 - 4
service/db.go 파일 보기

@@ -76,7 +76,7 @@ func ConnectDB() {
76 76
 
77 77
 	readDb, err = gorm.Open("mysql", rdsn)
78 78
 	if err != nil {
79
-		//beego.Error(err)
79
+		beego.Error(err)
80 80
 	}
81 81
 	readDb.DB().SetMaxIdleConns(10)
82 82
 	readDb.DB().SetMaxOpenConns(100)
@@ -84,7 +84,7 @@ func ConnectDB() {
84 84
 
85 85
 	writeDb, err = gorm.Open("mysql", wdsn)
86 86
 	if err != nil {
87
-		//beego.Error(err)
87
+		beego.Error(err)
88 88
 	}
89 89
 	writeDb.DB().SetMaxIdleConns(10)
90 90
 	writeDb.DB().SetMaxOpenConns(100)
@@ -94,7 +94,7 @@ func ConnectDB() {
94 94
 
95 95
 	readUserDb, err = gorm.Open("mysql", rudsn)
96 96
 	if err != nil {
97
-		//beego.Error(err)
97
+		beego.Error(err)
98 98
 	}
99 99
 	readUserDb.DB().SetMaxIdleConns(10)
100 100
 	readUserDb.DB().SetMaxOpenConns(100)
@@ -102,7 +102,7 @@ func ConnectDB() {
102 102
 
103 103
 	writeUserDb, err = gorm.Open("mysql", wudsn)
104 104
 	if err != nil {
105
-		//beego.Error(err)
105
+		beego.Error(err)
106 106
 	}
107 107
 	writeUserDb.DB().SetMaxIdleConns(10)
108 108
 	writeUserDb.DB().SetMaxOpenConns(100)

+ 31 - 0
service/jx_service.go 파일 보기

@@ -2089,6 +2089,37 @@ func Jxyb3201(fixmedins_setl_cnt int64,  stmt_begndate string, stmt_enddate stri
2089 2089
 	return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3201"), string(bytesData)
2090 2090
 }
2091 2091
 
2092
+func Jxyb32012(fixmedins_setl_cnt int64,  stmt_begndate string, stmt_enddate 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,medfee_sumamt string,fund_pay_sumamt string,acct_pay string) (string, string) {
2093
+	// 生成签名
2094
+	timestamp := time.Now().Unix()
2095
+	// 生成输入报文
2096
+	inputMessage := SetJXInputMessage(timestamp, org_name, doctor, fixmedins_code, "361025", "361025", "")
2097
+	input := make(map[string]interface{})
2098
+	inputData := make(map[string]interface{})
2099
+	inputMessage["infno"] = "3201"                       // 交易编码
2100
+	inputData["insutype"] = insutype                     // 险种
2101
+	inputData["clr_type"] = clr_type                     // 就诊 ID(来自2201接口返回)
2102
+	inputData["setl_optins"] = "361025"               // 结算经办机构
2103
+	inputData["stmt_begndate"] = stmt_begndate           // 对帐开始时间
2104
+	inputData["stmt_enddate"] = stmt_enddate             //对帐结束时间
2105
+	inputData["medfee_sumamt"] = medfee_sumamt           //医疗费总额
2106
+	inputData["fund_pay_sumamt"] = fund_pay_sumamt       //基金支付总额
2107
+	inputData["acct_pay"] = acct_pay                     //个人账户支付金额
2108
+	inputData["fixmedins_setl_cnt"] = fixmedins_setl_cnt //定点医药机构结算笔数
2109
+	inputData["refd_setl_flag"] = 0                  //
2110
+
2111
+	input["data"] = inputData
2112
+	inputMessage["input"] = input //交易输入
2113
+	bytesData, err := json.Marshal(inputMessage)
2114
+	fmt.Println(string(bytesData))
2115
+	if err != nil {
2116
+		fmt.Println(err.Error())
2117
+		return err.Error(), ""
2118
+	}
2119
+	request_url = request_url + "3201"
2120
+	return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3201"), string(bytesData)
2121
+}
2122
+
2092 2123
 func Jxyb9001(org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, secret_key string, admin_user_id int64, request_url string, cainfo string, access_key string) (string, string) {
2093 2124
 
2094 2125
 	// 生成签名