Explorar el Código

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

csx hace 3 años
padre
commit
b349a89a9b
Se han modificado 1 ficheros con 33 adiciones y 11 borrados
  1. 33 11
      service/gdyb_service.go

+ 33 - 11
service/gdyb_service.go Ver fichero

@@ -211,7 +211,9 @@ func Gdyb1101(certNo string, org_name string, doctor string, fixmedins_code stri
211 211
 	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/1101"
212 212
 	url := gdyb_url + "1101"
213 213
 
214
-	if insuplc_admdvs == "420700" {
214
+	if insuplc_admdvs == "421300" {
215
+		inputMessage["infver"] = "V2.0"
216
+		bytesData, err := json.Marshal(inputMessage)
215 217
 		var json2 string
216 218
 		cmd := exec.Command("java", "-jar", "yh_hb_fat.jar", "1101", string(bytesData), json2)
217 219
 		out, err := cmd.Output()
@@ -289,7 +291,9 @@ func Gdyb1101A(certNo string, org_name string, doctor string, fixmedins_code str
289 291
 
290 292
 	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/1101"
291 293
 
292
-	if insuplc_admdvs == "420700" {
294
+	if insuplc_admdvs == "421300" {
295
+		inputMessage["infver"] = "V2.0"
296
+		bytesData, err := json.Marshal(inputMessage)
293 297
 		var json2 string
294 298
 		cmd := exec.Command("java", "-jar", "yh_hb_fat.jar", "1101A", string(bytesData), json2)
295 299
 		out, err := cmd.Output()
@@ -382,7 +386,9 @@ func Gdyb2201(psnNo string, insutype string, certNo string, org_name string, doc
382 386
 	gdyb_paasid := beego.AppConfig.String("gdyb_paasid")
383 387
 	url := gdyb_url + "2201"
384 388
 
385
-	if insuplc_admdvs == "420700" {
389
+	if insuplc_admdvs == "421300" {
390
+		inputMessage["infver"] = "V2.0"
391
+		bytesData, err := json.Marshal(inputMessage)
386 392
 		var json2 string
387 393
 		cmd := exec.Command("java", "-jar", "yh_hb_fat.jar", "2201", string(bytesData), json2)
388 394
 		out, err := cmd.Output()
@@ -462,7 +468,9 @@ func Gdyb2202(psnNo string, mdtrtId string, ipt_otp_no string, org_name string,
462 468
 	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2202"
463 469
 
464 470
 	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2202"
465
-	if insuplc_admdvs == "420700" {
471
+	if insuplc_admdvs == "421300" {
472
+		inputMessage["infver"] = "V2.0"
473
+		bytesData, err := json.Marshal(inputMessage)
466 474
 		var json2 string
467 475
 		cmd := exec.Command("java", "-jar", "yh_hb_fat.jar", "2202", string(bytesData), json2)
468 476
 		out, err := cmd.Output()
@@ -565,7 +573,9 @@ func Gdyb2203(psnNo string, mdtrtId string, doctor string, department string, or
565 573
 	gdyb_paasid := beego.AppConfig.String("gdyb_paasid")
566 574
 	url := gdyb_url + "2203"
567 575
 
568
-	if insuplc_admdvs == "420700" {
576
+	if insuplc_admdvs == "421300" {
577
+		inputMessage["infver"] = "V2.0"
578
+		bytesData, err := json.Marshal(inputMessage)
569 579
 		var json2 string
570 580
 		cmd := exec.Command("java", "-jar", "yh_hb_fat.jar", "2203", string(bytesData), json2)
571 581
 		out, err := cmd.Output()
@@ -673,7 +683,9 @@ func Gdyb2203A(psnNo string, mdtrtId string, doctor string, department string, o
673 683
 	gdyb_paasid := beego.AppConfig.String("gdyb_paasid")
674 684
 	url := gdyb_url + "2203A"
675 685
 
676
-	if insuplc_admdvs == "420700" {
686
+	if insuplc_admdvs == "421300" {
687
+		inputMessage["infver"] = "V2.0"
688
+		bytesData, err := json.Marshal(inputMessage)
677 689
 		var json2 string
678 690
 		cmd := exec.Command("java", "-jar", "yh_hb_fat.jar", "2203A", string(bytesData), json2)
679 691
 		out, err := cmd.Output()
@@ -946,7 +958,9 @@ func Gdyb2204(psnNo string, mdtrtId string, hisPrescription []*models.HisPrescri
946 958
 
947 959
 	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2204"
948 960
 
949
-	if insuplc_admdvs == "420700" {
961
+	if insuplc_admdvs == "421300" {
962
+		inputMessage["infver"] = "V2.0"
963
+		bytesData, err := json.Marshal(inputMessage)
950 964
 		var json2 string
951 965
 		cmd := exec.Command("java", "-jar", "yh_hb_fat.jar", "2204", string(bytesData), json2)
952 966
 		out, err := cmd.Output()
@@ -1031,7 +1045,9 @@ func Gdyb2205(psnNo string, mdtrtId string, chrgBchno string, org_name string, d
1031 1045
 
1032 1046
 	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2205"
1033 1047
 
1034
-	if insuplc_admdvs == "420700" {
1048
+	if insuplc_admdvs == "421300" {
1049
+		inputMessage["infver"] = "V2.0"
1050
+		bytesData, err := json.Marshal(inputMessage)
1035 1051
 		var json2 string
1036 1052
 		cmd := exec.Command("java", "-jar", "yh_hb_fat.jar", "2205", string(bytesData), json2)
1037 1053
 		out, err := cmd.Output()
@@ -1138,7 +1154,9 @@ func Gdyb2206(psnNo string, mdtrtId string, chrgBchno string, certNo string, ins
1138 1154
 
1139 1155
 	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2206"
1140 1156
 
1141
-	if insuplc_admdvs == "420700" {
1157
+	if insuplc_admdvs == "421300" {
1158
+		inputMessage["infver"] = "V2.0"
1159
+		bytesData, err := json.Marshal(inputMessage)
1142 1160
 		var json2 string
1143 1161
 		cmd := exec.Command("java", "-jar", "yh_hb_fat.jar", "2206", string(bytesData), json2)
1144 1162
 		out, err := cmd.Output()
@@ -1241,7 +1259,9 @@ func Gdyb2207(psnNo string, mdtrtId string, chrgBchno string, certNo string, ins
1241 1259
 
1242 1260
 	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2207"
1243 1261
 
1244
-	if insuplc_admdvs == "420700" {
1262
+	if insuplc_admdvs == "421300" {
1263
+		inputMessage["infver"] = "V2.0"
1264
+		bytesData, err := json.Marshal(inputMessage)
1245 1265
 		var json2 string
1246 1266
 		cmd := exec.Command("java", "-jar", "yh_hb_fat.jar", "2207", string(bytesData), json2)
1247 1267
 		out, err := cmd.Output()
@@ -1327,7 +1347,9 @@ func Gdyb2208(psnNo string, mdtrtId string, setlId string, org_name string, doct
1327 1347
 
1328 1348
 	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2208"
1329 1349
 
1330
-	if insuplc_admdvs == "420700" {
1350
+	if insuplc_admdvs == "421300" {
1351
+		inputMessage["infver"] = "V2.0"
1352
+		bytesData, err := json.Marshal(inputMessage)
1331 1353
 		var json2 string
1332 1354
 		cmd := exec.Command("java", "-jar", "yh_hb_fat.jar", "2208", string(bytesData), json2)
1333 1355
 		out, err := cmd.Output()