Bläddra i källkod

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

csx 3 år sedan
förälder
incheckning
3988d719cb
2 ändrade filer med 20 tillägg och 12 borttagningar
  1. 4 4
      conf/app.conf
  2. 16 8
      service/gdyb_service.go

+ 4 - 4
conf/app.conf Visa fil

@@ -53,15 +53,15 @@ call_domain = https://hf.sgjyun.com
53 53
 front_end_domain = "https://xt.kuyicloud.com/#"
54 54
 #url  = "http://192.168.1.228:17001/szsi-portal/transData"
55 55
 #url = "http://192.168.1.88:6666/szsi-portal/transData"
56
-gdyb_url = "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/"
57
-# gdyb_url="http://igb.hsa.gdgov.cn/ebus/sz_prd/hsa/hgs/"
56
+# gdyb_url = "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/"
57
+gdyb_url="http://igb.hsa.gdgov.cn/ebus/sz_prd/hsa/hgs/"
58 58
 #内蒙古
59 59
 # gdyb_url = "http://10.38.23.105:8090/uif-hsaf-med-api/api/medical/service/"
60 60
 # gdyb_paasid = "sg03_prd"
61 61
 # gdyb_paasid = "jm_sc_yjyy"
62 62
 # gdyb_paasid="zh_prd_yrojyy"
63
-# gdyb_paasid = "sz_prd_yjyy"
64
-gdyb_paasid = "zq_prd_yjyy"
63
+gdyb_paasid = "sz_prd_yjyy"
64
+# gdyb_paasid = "zq_prd_yjyy"
65 65
 
66 66
 
67 67
 

+ 16 - 8
service/gdyb_service.go Visa fil

@@ -3626,18 +3626,26 @@ func Gdyb1101B(certNo string, org_name string, doctor string, fixmedins_code str
3626 3626
 		inputData["psn_cert_type"] = "99"   // 人员证件类型
3627 3627
 
3628 3628
 	} else {
3629
-		if id_card_type == 1 {
3630
-			inputData["mdtrt_cert_type"] = "03" // 就诊凭证类型
3631
-			inputData["card_sn"] = ""           // 卡识别码
3632
-			inputData["certno"] = certNo        // 证件号码
3633
-			inputData["psn_cert_type"] = ""     // 人员证件类型
3629
+		if certificates == 1 {
3630
+			if id_card_type == 1 {
3631
+				inputData["mdtrt_cert_type"] = "03" // 就诊凭证类型
3632
+				inputData["card_sn"] = ""           // 卡识别码
3633
+				inputData["certno"] = certNo        // 证件号码
3634
+				inputData["psn_cert_type"] = "01"   // 人员证件类型
3635
+			} else {
3636
+				inputData["mdtrt_cert_type"] = "02" // 就诊凭证类型
3637
+				inputData["card_sn"] = ""           // 卡识别码
3638
+				inputData["certno"] = certNo        // 证件号码
3639
+				inputData["psn_cert_type"] = "01"   // 人员证件类型
3640
+			}
3634 3641
 
3635
-		} else {
3636
-			inputData["mdtrt_cert_type"] = "02" // 就诊凭证类型
3642
+		} else if certificates == 6 {
3643
+			inputData["mdtrt_cert_type"] = "03" // 就诊凭证类型
3637 3644
 			inputData["card_sn"] = ""           // 卡识别码
3638 3645
 			inputData["certno"] = certNo        // 证件号码
3639
-			inputData["psn_cert_type"] = ""     // 人员证件类型
3646
+			inputData["psn_cert_type"] = "17"   // 人员证件类型
3640 3647
 		}
3648
+
3641 3649
 	}
3642 3650
 
3643 3651
 	inputData["mdtrt_cert_no"] = certNo // 就诊凭证编号