csx 4 anni fa
parent
commit
5ae104aac6
2 ha cambiato i file con 4 aggiunte e 5 eliminazioni
  1. 2 2
      controllers/his_api_controller.go
  2. 2 3
      service/gdyb_service.go

+ 2 - 2
controllers/his_api_controller.go Vedi File

@@ -595,7 +595,7 @@ func (c *HisApiController) GetRegisterInfo() {
595 595
 			IdCardNo := ""
596 596
 			if id_card_type == 1 {
597 597
 				IdCardNo = medical_insurance_card
598
-			} else if id_card_type == 2 {
598
+			} else {
599 599
 				IdCardNo = patient.IdCardNo
600 600
 			}
601 601
 
@@ -1020,7 +1020,7 @@ func (c *HisApiController) GetUploadInfo() {
1020 1020
 				if his.IdCardType == 1 {
1021 1021
 					cert_no = his.MedicalInsuranceNumber
1022 1022
 
1023
-				} else if his.IdCardType == 2 {
1023
+				} else {
1024 1024
 
1025 1025
 					cert_no = his.Certno
1026 1026
 

+ 2 - 3
service/gdyb_service.go Vedi File

@@ -105,8 +105,7 @@ func Gdyb2201(psnNo string, insutype string, certNo string, org_name string, doc
105 105
 	if id_card_type == 1 {
106 106
 		inputData["mdtrt_cert_type"] = "03" // 就诊凭证类型
107 107
 		inputData["mdtrt_cert_no"] = certNo // 就诊凭证编号
108
-
109
-	} else if id_card_type == 2 {
108
+	} else {
110 109
 		inputData["mdtrt_cert_type"] = "02" // 就诊凭证类型
111 110
 		inputData["mdtrt_cert_no"] = certNo // 就诊凭证编号
112 111
 	}
@@ -650,7 +649,7 @@ func Gdyb2207(psnNo string, mdtrtId string, chrgBchno string, certNo string, ins
650 649
 	if id_card_type == 1 {
651 650
 		inputData["mdtrt_cert_type"] = "03" // 就诊凭证类型
652 651
 		inputData["mdtrt_cert_no"] = certNo // 就诊凭证编号
653
-	} else if id_card_type == 2 {
652
+	} else {
654 653
 		inputData["mdtrt_cert_type"] = "02" // 就诊凭证类型
655 654
 		inputData["mdtrt_cert_no"] = certNo // 就诊凭证编号
656 655
 	}