Browse Source

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

csx 3 years ago
parent
commit
96c9fc8ab7
1 changed files with 5 additions and 1 deletions
  1. 5 1
      controllers/sg/his_api_controller.go

+ 5 - 1
controllers/sg/his_api_controller.go View File

1658
 				insutype = "310"
1658
 				insutype = "310"
1659
 			}
1659
 			}
1660
 
1660
 
1661
+			fmt.Println(insutype)
1662
+
1661
 			if count == 1 {
1663
 			if count == 1 {
1662
 				c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeRegisterRepeatException)
1664
 				c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeRegisterRepeatException)
1663
 				return
1665
 				return
1664
 			}
1666
 			}
1665
 			api := "http://127.0.0.1:9532/" + "gdyb/two?cert_no=" + IdCardNo + "&insutype=" +
1667
 			api := "http://127.0.0.1:9532/" + "gdyb/two?cert_no=" + IdCardNo + "&insutype=" +
1666
-				insutype + "&psn_no=" + res.Output.Baseinfo.PsnNo +
1668
+				"390" + "&psn_no=" + res.Output.Baseinfo.PsnNo +
1667
 				"&org_name=" + miConfig.OrgName + "&doctor=" + patientPrescription.Doctor + "&ipt_otp_no=" + ipt_otp_no +
1669
 				"&org_name=" + miConfig.OrgName + "&doctor=" + patientPrescription.Doctor + "&ipt_otp_no=" + ipt_otp_no +
1668
 				"&dept=" + department.Name + "&fixmedins_code=" + miConfig.Code + "&dept_code=" + department.Number + "&doctor_id=" + doctor_id + "&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(int64(id_card_type), 10)
1670
 				"&dept=" + department.Name + "&fixmedins_code=" + miConfig.Code + "&dept_code=" + department.Number + "&doctor_id=" + doctor_id + "&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(int64(id_card_type), 10)
1669
 			resp, requestErr := http.Get(api)
1671
 			resp, requestErr := http.Get(api)
2146
 					insutype = "310"
2148
 					insutype = "310"
2147
 				}
2149
 				}
2148
 
2150
 
2151
+				fmt.Println(insutype)
2152
+				insutype = "390"
2149
 				if his.IdCardType == 1 {
2153
 				if his.IdCardType == 1 {
2150
 					cert_no = his.MedicalInsuranceNumber
2154
 					cert_no = his.MedicalInsuranceNumber
2151
 
2155