csx vor 4 Jahren
Ursprung
Commit
6f8b010a05
2 geänderte Dateien mit 18 neuen und 18 gelöschten Zeilen
  1. 1 1
      controllers/his_api_controller.go
  2. 17 17
      service/gdyb_service.go

+ 1 - 1
controllers/his_api_controller.go Datei anzeigen

@@ -716,7 +716,7 @@ func (c *HisApiController) GetRegisterInfo() {
716 716
 	config, _ := service.GetMedicalInsuranceConfig(adminInfo.CurrentOrgId)
717 717
 
718 718
 	if config.IsOpen == 1 {
719
-		api := "http://127.0.0.1:9532/" + "gdyb/one?cert_no=" + patient.IdCardNo + "&org_name=" + miConfig.OrgName + "&doctor=" + patientPrescription.Doctor + "&fixmedins_code=" + miConfig.Code + "&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(int64(id_card_type), 10)
719
+		api := "http://127.0.0.1:9532/" + "gdyb/one?cert_no=" + patient.IdCardNo + "&org_name=" + miConfig.OrgName + "&doctor=" + patientPrescription.Doctor + "&fixmedins_code=" + miConfig.Code + "&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey
720 720
 		resp, requestErr := http.Get(api)
721 721
 		if requestErr != nil {
722 722
 			c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)

+ 17 - 17
service/gdyb_service.go Datei anzeigen

@@ -37,16 +37,16 @@ func Gdyb1101(certNo string, org_name string, doctor string, fixmedins_code stri
37 37
 	inputData := make(map[string]interface{})
38 38
 	inputMessage["infno"] = "1101" // 交易编码
39 39
 
40
-	if id_card_type == 1 {
41
-		inputData["mdtrt_cert_type"] = "03" // 就诊凭证类型
42
-		inputData["card_sn"] = card_sn      // 卡识别码
43
-		inputData["psn_cert_type"] = "90"   // 人员证件类型
44
-
45
-	} else {
46
-		inputData["mdtrt_cert_type"] = "02" // 就诊凭证类型
47
-		inputData["card_sn"] = ""           // 卡识别码
48
-		inputData["psn_cert_type"] = "1"    // 人员证件类型
49
-	}
40
+	//if id_card_type == 1 {
41
+	//	inputData["mdtrt_cert_type"] = "03" // 就诊凭证类型
42
+	//	inputData["card_sn"] = card_sn      // 卡识别码
43
+	//	inputData["psn_cert_type"] = "90"   // 人员证件类型
44
+	//
45
+	//} else {
46
+	inputData["mdtrt_cert_type"] = "02" // 就诊凭证类型
47
+	inputData["card_sn"] = ""           // 卡识别码
48
+	inputData["psn_cert_type"] = "1"    // 人员证件类型
49
+	//}
50 50
 
51 51
 	inputData["mdtrt_cert_no"] = certNo // 就诊凭证编号
52 52
 	inputData["certno"] = certNo        // 证件号码
@@ -111,13 +111,13 @@ func Gdyb2201(psnNo string, insutype string, certNo string, org_name string, doc
111 111
 	inputData["insutype"] = insutype      // 险种类型(来自1101接口返回)
112 112
 	inputData["begntime"] = timeFormatOne // 开始时间
113 113
 
114
-	if id_card_type == 1 {
115
-		inputData["mdtrt_cert_type"] = "03" // 就诊凭证类型
116
-		inputData["mdtrt_cert_no"] = certNo // 就诊凭证编号
117
-	} else {
118
-		inputData["mdtrt_cert_type"] = "02" // 就诊凭证类型
119
-		inputData["mdtrt_cert_no"] = certNo // 就诊凭证编号
120
-	}
114
+	//if id_card_type == 1 {
115
+	//	inputData["mdtrt_cert_type"] = "03" // 就诊凭证类型
116
+	//	inputData["mdtrt_cert_no"] = certNo // 就诊凭证编号
117
+	//} else {
118
+	inputData["mdtrt_cert_type"] = "02" // 就诊凭证类型
119
+	inputData["mdtrt_cert_no"] = certNo // 就诊凭证编号
120
+	//}
121 121
 
122 122
 	inputData["ipt_otp_no"] = ipt_otp_no // 住院/门诊号
123 123
 	inputData["atddr_no"] = doctor_id    // 医师编码