Browse Source

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

csx 3 years ago
parent
commit
05b48bfc7f
3 changed files with 15 additions and 15 deletions
  1. 3 3
      conf/app.conf
  2. 9 9
      controllers/sg/his_api_controller.go
  3. 3 3
      controllers/zh/zh_his_api_controller.go

+ 3 - 3
conf/app.conf View File

45
 
45
 
46
 
46
 
47
 [prod]
47
 [prod]
48
-org_id = 9919
48
+org_id = 10265
49
 mobile_token_expiration_second = 86400
49
 mobile_token_expiration_second = 86400
50
 httpdomain = https://api.xt.kuyicloud.com
50
 httpdomain = https://api.xt.kuyicloud.com
51
 sso_domain = https://sso.kuyicloud.com
51
 sso_domain = https://sso.kuyicloud.com
53
 front_end_domain = "https://xt.kuyicloud.com/#"
53
 front_end_domain = "https://xt.kuyicloud.com/#"
54
 #url  = "http://192.168.1.228:17001/szsi-portal/transData"
54
 #url  = "http://192.168.1.228:17001/szsi-portal/transData"
55
 #url = "http://192.168.1.88:6666/szsi-portal/transData"
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/"
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/"
57
 #gdyb_url="http://igb.hsa.gdgov.cn/ebus/sz_prd/hsa/hgs/"
58
 #内蒙古
58
 #内蒙古
59
-#gdyb_url = "http://10.38.23.105:8090/uif-hsaf-med-api/api/medical/service/"
59
+gdyb_url = "http://10.38.23.105:8090/uif-hsaf-med-api/api/medical/service/"
60
 gdyb_paasid = "sg03_prd"
60
 gdyb_paasid = "sg03_prd"
61
 #gdyb_paasid = "jm_sc_yjyy"
61
 #gdyb_paasid = "jm_sc_yjyy"
62
 #gdyb_paasid="zh_prd_yjyy"
62
 #gdyb_paasid="zh_prd_yjyy"

+ 9 - 9
controllers/sg/his_api_controller.go View File

3328
 					var med_type string
3328
 					var med_type string
3329
 					if his.Insutype == "390" {
3329
 					if his.Insutype == "390" {
3330
 						if reg_type == 14 {
3330
 						if reg_type == 14 {
3331
-							med_type = "14"
3331
+							med_type = "140104"
3332
 						} else if reg_type == 11 {
3332
 						} else if reg_type == 11 {
3333
 							med_type = "11"
3333
 							med_type = "11"
3334
 
3334
 
3335
 						}
3335
 						}
3336
 					} else if his.Insutype == "310" {
3336
 					} else if his.Insutype == "310" {
3337
 						if reg_type == 14 {
3337
 						if reg_type == 14 {
3338
-							med_type = "990502"
3338
+							med_type = "140104"
3339
 						} else if reg_type == 11 {
3339
 						} else if reg_type == 11 {
3340
 							med_type = "11"
3340
 							med_type = "11"
3341
 						}
3341
 						}
3831
 									}
3831
 									}
3832
 								} else if his.Insutype == "310" {
3832
 								} else if his.Insutype == "310" {
3833
 									if reg_type == 14 {
3833
 									if reg_type == 14 {
3834
-										med_type = "990502"
3834
+										med_type = "140104"
3835
 									} else if reg_type == 11 {
3835
 									} else if reg_type == 11 {
3836
 										med_type = "11"
3836
 										med_type = "11"
3837
 									}
3837
 									}
4126
 					var med_type string
4126
 					var med_type string
4127
 					if his.Insutype == "390" {
4127
 					if his.Insutype == "390" {
4128
 						if reg_type == 14 {
4128
 						if reg_type == 14 {
4129
-							med_type = "14"
4129
+							med_type = "140104"
4130
 						} else if reg_type == 11 {
4130
 						} else if reg_type == 11 {
4131
 							med_type = "11"
4131
 							med_type = "11"
4132
 						}
4132
 						}
4133
 					} else if his.Insutype == "310" {
4133
 					} else if his.Insutype == "310" {
4134
 						if reg_type == 14 {
4134
 						if reg_type == 14 {
4135
-							med_type = "990502"
4135
+							med_type = "140104"
4136
 						} else if reg_type == 11 {
4136
 						} else if reg_type == 11 {
4137
 							med_type = "11"
4137
 							med_type = "11"
4138
 						}
4138
 						}
4911
 				var med_type string
4911
 				var med_type string
4912
 				if his.Insutype == "390" {
4912
 				if his.Insutype == "390" {
4913
 					if reg_type == 14 {
4913
 					if reg_type == 14 {
4914
-						med_type = "14"
4914
+						med_type = "140104"
4915
 					} else if reg_type == 11 {
4915
 					} else if reg_type == 11 {
4916
 						med_type = "11"
4916
 						med_type = "11"
4917
 					}
4917
 					}
4918
 				} else if his.Insutype == "310" {
4918
 				} else if his.Insutype == "310" {
4919
 					if reg_type == 14 {
4919
 					if reg_type == 14 {
4920
-						med_type = "990502"
4920
+						med_type = "140104"
4921
 					} else if reg_type == 11 {
4921
 					} else if reg_type == 11 {
4922
 						med_type = "11"
4922
 						med_type = "11"
4923
 					}
4923
 					}
5350
 							var med_type string
5350
 							var med_type string
5351
 							if his.Insutype == "390" {
5351
 							if his.Insutype == "390" {
5352
 								if reg_type == 14 {
5352
 								if reg_type == 14 {
5353
-									med_type = "14"
5353
+									med_type = "140104"
5354
 								} else if reg_type == 11 {
5354
 								} else if reg_type == 11 {
5355
 									med_type = "11"
5355
 									med_type = "11"
5356
 								}
5356
 								}
5357
 							} else if his.Insutype == "310" {
5357
 							} else if his.Insutype == "310" {
5358
 								if reg_type == 14 {
5358
 								if reg_type == 14 {
5359
-									med_type = "990502"
5359
+									med_type = "140104"
5360
 								} else if reg_type == 11 {
5360
 								} else if reg_type == 11 {
5361
 									med_type = "11"
5361
 									med_type = "11"
5362
 								}
5362
 								}

+ 3 - 3
controllers/zh/zh_his_api_controller.go View File

780
 		struct2401.MdtrtCertNo = res2.Output.Baseinfo.Certno
780
 		struct2401.MdtrtCertNo = res2.Output.Baseinfo.Certno
781
 		if miConfig.Code == "H15049901371" {
781
 		if miConfig.Code == "H15049901371" {
782
 			if med_type == 14 {
782
 			if med_type == 14 {
783
-				struct2401.MedType = "990502"
783
+				struct2401.MedType = "140104"
784
 			} else if med_type == 11 {
784
 			} else if med_type == 11 {
785
 				struct2401.MedType = "11"
785
 				struct2401.MedType = "11"
786
 
786
 
1220
 		order.CvlservFlag = res.Output.Setlinfo.CvlservFlag
1220
 		order.CvlservFlag = res.Output.Setlinfo.CvlservFlag
1221
 		order.SetlTime = res.Output.Setlinfo.SetlTime
1221
 		order.SetlTime = res.Output.Setlinfo.SetlTime
1222
 		order.MdtrtCertType = res.Output.Setlinfo.MdtrtCertType
1222
 		order.MdtrtCertType = res.Output.Setlinfo.MdtrtCertType
1223
-		if res.Output.Setlinfo.MedType == "990502" {
1223
+		if res.Output.Setlinfo.MedType == "140104" {
1224
 
1224
 
1225
 			order.MedType = "14"
1225
 			order.MedType = "14"
1226
 
1226
 
1354
 	}
1354
 	}
1355
 	if miConfig.Code == "H15049901371" {
1355
 	if miConfig.Code == "H15049901371" {
1356
 		if record.MedType == 14 {
1356
 		if record.MedType == 14 {
1357
-			data["med_type"] = "990502"
1357
+			data["med_type"] = "140104"
1358
 
1358
 
1359
 		} else if record.MedType == 11 {
1359
 		} else if record.MedType == 11 {
1360
 
1360