csx 4 jaren geleden
bovenliggende
commit
8e4d517522
2 gewijzigde bestanden met toevoegingen van 11 en 4 verwijderingen
  1. 3 1
      controllers/his_api_controller.go
  2. 8 3
      service/gdyb_service.go

+ 3 - 1
controllers/his_api_controller.go Bestand weergeven

@@ -174,7 +174,9 @@ func (c *HisApiController) Sscard() {
174 174
 
175 175
 				bas := strings.Split(basStr, "|")
176 176
 
177
-				basNumber := bas[2]
177
+				basNumber := bas[1]
178
+
179
+				//basNumber := bas[2]
178 180
 				card_sn := bas[3]
179 181
 
180 182
 				appRole, _ := service.GetAppRole(adminUser.CurrentOrgId)

+ 8 - 3
service/gdyb_service.go Bestand weergeven

@@ -95,10 +95,15 @@ func Gdyb1101(certNo string, org_name string, doctor string, fixmedins_code stri
95 95
 	inputMessage["infno"] = "1101" // 交易编码
96 96
 
97 97
 	if id_card_type == 1 {
98
-		inputData["mdtrt_cert_type"] = "03" // 就诊凭证类型
99
-		inputData["card_sn"] = card_sn      // 卡识别码
100
-		inputData["certno"] = id_card_no    // 证件号码
98
+		//inputData["mdtrt_cert_type"] = "02" // 就诊凭证类型
99
+		//inputData["card_sn"] = card_sn      // 卡识别码
100
+		//inputData["certno"] = id_card_no    // 证件号码
101
+
102
+		inputData["mdtrt_cert_type"] = "02" // 就诊凭证类型
103
+		inputData["card_sn"] = ""           // 卡识别码
104
+		inputData["certno"] = certNo        // 证件号码
101 105
 	} else {
106
+
102 107
 		inputData["mdtrt_cert_type"] = "02" // 就诊凭证类型
103 108
 		inputData["card_sn"] = ""           // 卡识别码
104 109
 		inputData["certno"] = certNo        // 证件号码