Просмотр исходного кода

Merge branch 'master' of http://git.shengws.com/csx/gdyb

csx 2 лет назад
Родитель
Сommit
90ba610884
1 измененных файлов: 40 добавлений и 31 удалений
  1. 40 31
      service/jsyb_service.go

+ 40 - 31
service/jsyb_service.go Просмотреть файл

@@ -661,28 +661,32 @@ func Jsyb2205(psnNo string, mdtrtId string, chrgBchno string, org_name string, d
661 661
 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) (string, string) {
662 662
 
663 663
 	// 生成签名
664
-	timestamp := time.Now().Unix()
664
+	timestamp := time.Now().Unix() //		inputData["mdtrt_cert_type"] = "03" // 就诊凭证类型
665
+	//		inputData["mdtrt_cert_no"] = certNo
665 666
 	// 生成输入报文
666 667
 	inputMessage := SetJSInputMessage(timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, cainfo)
667 668
 	input := make(map[string]interface{})
668 669
 	inputData := make(map[string]interface{})
669 670
 	inputMessage["infno"] = "2206" // 交易编码
670 671
 	inputData["psn_no"] = psnNo    // 人员编号 (来自1101接口返回)
671
-	if certificates == 3 {
672
-		inputData["mdtrt_cert_type"] = "99" // 就诊凭证类型
673
-		inputData["mdtrt_cert_no"] = certNo // 就诊凭证编号
674
-	} else {
675
-		if id_card_type == 1 {
676
-			inputData["mdtrt_cert_type"] = "03" // 就诊凭证类型
677
-			inputData["mdtrt_cert_no"] = certNo // 就诊凭证编号
678
-		} else if id_card_type == 4 {
679
-			inputData["mdtrt_cert_type"] = "01"        // 就诊凭证类型
680
-			inputData["mdtrt_cert_no"] = verify_number // 就诊凭证编号
681
-		} else {
682
-			inputData["mdtrt_cert_type"] = "02" // 就诊凭证类型
683
-			inputData["mdtrt_cert_no"] = certNo // 就诊凭证编号
684
-		}
685
-	}
672
+	//if certificates == 3 {
673
+	//	inputData["mdtrt_cert_type"] = "99" // 就诊凭证类型
674
+	//	inputData["mdtrt_cert_no"] = certNo // 就诊凭证编号
675
+	//} else {
676
+	//	if id_card_type == 1 {
677
+	inputData["mdtrt_cert_type"] = "04"                                                                                                                                                                        // 就诊凭证类型
678
+	inputData["mdtrt_cert_no"] = "320822197705194836|Y9gJ7nijh+DzGkn2W8El9YxSR0x1/zb2+tcA4a5fsVC4RLNACwi93U4Q9xEJVKKnN6LCbomuiCuxDOI+Skz/wsjlScPKIzyXxBcKl9ZrZjCrr+cRTRRKRdz6JqhoexGR/Cxnipr62JOW2fmrI1X2XA==" // 就诊凭证编号
679
+
680
+	//inputData["mdtrt_cert_type"] = "04" // 就诊凭证类型
681
+	//inputData["mdtrt_cert_no"] = "320822197705194836|"     // 就诊凭证编号
682
+	//	} else if id_card_type == 4 {
683
+	//		inputData["mdtrt_cert_type"] = "01"        // 就诊凭证类型
684
+	//		inputData["mdtrt_cert_no"] = verify_number // 就诊凭证编号
685
+	//	} else {
686
+	//		inputData["mdtrt_cert_type"] = "02" // 就诊凭证类型
687
+	//		inputData["mdtrt_cert_no"] = certNo // 就诊凭证编号
688
+	//	}
689
+	//}
686 690
 	if insuplc_admdvs == "421300" {
687 691
 		if med_type == "11" || med_type == "1112" || med_type == "1111" {
688 692
 			inputData["med_type"] = "110104" // 医疗类别 11 普通门诊  12 门诊挂号
@@ -731,21 +735,26 @@ func Jsyb2207(psnNo string, mdtrtId string, chrgBchno string, certNo string, ins
731 735
 	inputData := make(map[string]interface{})
732 736
 	inputMessage["infno"] = "2207" // 交易编码
733 737
 	inputData["psn_no"] = psnNo    // 人员编号 (来自1101接口返回)
734
-	if certificates == 3 {
735
-		inputData["mdtrt_cert_type"] = "99"                       // 就诊凭证类型
736
-		inputData["mdtrt_cert_no"] = certNo + "|" + verify_number // 就诊凭证编号
737
-	} else {
738
-		if id_card_type == 1 {
739
-			inputData["mdtrt_cert_type"] = "03"                       // 就诊凭证类型
740
-			inputData["mdtrt_cert_no"] = certNo + "|" + verify_number // 就诊凭证编号
741
-		} else if id_card_type == 4 {
742
-			inputData["mdtrt_cert_type"] = "01"        // 就诊凭证类型
743
-			inputData["mdtrt_cert_no"] = verify_number // 就诊凭证编号
744
-		} else {
745
-			inputData["mdtrt_cert_type"] = "02"                       // 就诊凭证类型
746
-			inputData["mdtrt_cert_no"] = certNo + "|" + verify_number // 就诊凭证编号
747
-		}
748
-	}
738
+
739
+	inputData["mdtrt_cert_type"] = "04"                                                                                                                                                                        // 就诊凭证类型
740
+	inputData["mdtrt_cert_no"] = "320822197705194836|Y9gJ7nijh+DzGkn2W8El9YxSR0x1/zb2+tcA4a5fsVC4RLNACwi93U4Q9xEJVKKnN6LCbomuiCuxDOI+Skz/wsjlScPKIzyXxBcKl9ZrZjCrr+cRTRRKRdz6JqhoexGR/Cxnipr62JOW2fmrI1X2XA==" // 就诊凭证编号
741
+
742
+	//if certificates == 3 {
743
+	//	inputData["mdtrt_cert_type"] = "99"                       // 就诊凭证类型
744
+	//	inputData["mdtrt_cert_no"] = certNo + "|" + verify_number // 就诊凭证编号
745
+	//} else
746
+	//{
747
+	//	if id_card_type == 1 {
748
+	//		inputData["mdtrt_cert_type"] = "03"                       // 就诊凭证类型
749
+	//		inputData["mdtrt_cert_no"] = certNo + "|" + verify_number // 就诊凭证编号
750
+	//	} else if id_card_type == 4 {
751
+	//		inputData["mdtrt_cert_type"] = "01"        // 就诊凭证类型
752
+	//		inputData["mdtrt_cert_no"] = verify_number // 就诊凭证编号
753
+	//	} else {
754
+	//		inputData["mdtrt_cert_type"] = "02"                       // 就诊凭证类型
755
+	//		inputData["mdtrt_cert_no"] = certNo + "|" + verify_number // 就诊凭证编号
756
+	//	}
757
+	//}
749 758
 	if med_type == "1111" || med_type == "1112" {
750 759
 		med_type = "11"
751 760
 	}