瀏覽代碼

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

csx 4 年之前
父節點
當前提交
70d8e8651d
共有 3 個文件被更改,包括 9 次插入11 次删除
  1. 2 3
      conf/app.conf
  2. 2 2
      controllers/sg/his_api_controller.go
  3. 5 6
      service/gdyb_service.go

+ 2 - 3
conf/app.conf 查看文件

44
 
44
 
45
 
45
 
46
 [prod]
46
 [prod]
47
-
48
-org_id = 9919
47
+org_id = 10106
49
 mobile_token_expiration_second = 86400
48
 mobile_token_expiration_second = 86400
50
 httpdomain = https://api.xt.kuyicloud.com
49
 httpdomain = https://api.xt.kuyicloud.com
51
 sso_domain = https://sso.kuyicloud.com
50
 sso_domain = https://sso.kuyicloud.com
54
 #url  = "http://192.168.1.228:17001/szsi-portal/transData"
53
 #url  = "http://192.168.1.228:17001/szsi-portal/transData"
55
 url = "http://192.168.1.88:6666/szsi-portal/transData"
54
 url = "http://192.168.1.88:6666/szsi-portal/transData"
56
 gdyb_url = "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/"
55
 gdyb_url = "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/"
57
-gdyb_paasid = "sg03_prd"
56
+gdyb_paasid = "jm_sc_yjyy"
58
 
57
 
59
 readmysqlhost = shengws1.mysql.rds.aliyuncs.com
58
 readmysqlhost = shengws1.mysql.rds.aliyuncs.com
60
 readmysqlport = 3306
59
 readmysqlport = 3306

+ 2 - 2
controllers/sg/his_api_controller.go 查看文件

1020
 
1020
 
1021
 			if count <= 0 {
1021
 			if count <= 0 {
1022
 				api := "http://127.0.0.1:9532/" + "gdyb/two?cert_no=" + IdCardNo + "&insutype=" +
1022
 				api := "http://127.0.0.1:9532/" + "gdyb/two?cert_no=" + IdCardNo + "&insutype=" +
1023
-					"390" + "&psn_no=" + res.Output.Baseinfo.PsnNo +
1023
+					insutype + "&psn_no=" + res.Output.Baseinfo.PsnNo +
1024
 					"&org_name=" + miConfig.OrgName + "&doctor=" + patientPrescription.Doctor + "&ipt_otp_no=" + ipt_otp_no +
1024
 					"&org_name=" + miConfig.OrgName + "&doctor=" + patientPrescription.Doctor + "&ipt_otp_no=" + ipt_otp_no +
1025
 					"&dept=" + department.Name + "&fixmedins_code=" + miConfig.Code + "&dept_code=" + department.Number + "&doctor_id=" + doctor_id + "&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(int64(id_card_type), 10)
1025
 					"&dept=" + department.Name + "&fixmedins_code=" + miConfig.Code + "&dept_code=" + department.Number + "&doctor_id=" + doctor_id + "&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(int64(id_card_type), 10)
1026
 				resp, requestErr := http.Get(api)
1026
 				resp, requestErr := http.Get(api)
1503
 				fmt.Println(insutype)
1503
 				fmt.Println(insutype)
1504
 
1504
 
1505
 				api := "http://127.0.0.1:9532/" + "gdyb/eight?cert_no=" + cert_no + "&insutype=" +
1505
 				api := "http://127.0.0.1:9532/" + "gdyb/eight?cert_no=" + cert_no + "&insutype=" +
1506
-					"390" + "&psn_no=" + psn_no + "&chrg_bchno=" + chrg_bchno + "&mdtrt_id=" + mdtrt_id +
1506
+					insutype + "&psn_no=" + psn_no + "&chrg_bchno=" + chrg_bchno + "&mdtrt_id=" + mdtrt_id +
1507
 					"&total=" + allTotal + "&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&fixmedins_code=" + miConfig.Code + "&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" +
1507
 					"&total=" + allTotal + "&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&fixmedins_code=" + miConfig.Code + "&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" +
1508
 					miConfig.SecretKey + "&med_type=" + strconv.FormatInt(patientPrescription.RegisterType, 10) + "&id_card_type=" + strconv.FormatInt(int64(his.IdCardType), 10)
1508
 					miConfig.SecretKey + "&med_type=" + strconv.FormatInt(patientPrescription.RegisterType, 10) + "&id_card_type=" + strconv.FormatInt(int64(his.IdCardType), 10)
1509
 				resp, requestErr := http.Get(api)
1509
 				resp, requestErr := http.Get(api)

+ 5 - 6
service/gdyb_service.go 查看文件

695
 
695
 
696
 		if item.HospApprFlag != -1 {
696
 		if item.HospApprFlag != -1 {
697
 			if item.HospApprFlag == 1 {
697
 			if item.HospApprFlag == 1 {
698
-				feedetailInfo["hosp_appr_flag"] = 0 // 医院审批标志
698
+				feedetailInfo["hosp_appr_flag"] = "0" // 医院审批标志
699
 			} else if item.HospApprFlag == 2 {
699
 			} else if item.HospApprFlag == 2 {
700
-				feedetailInfo["hosp_appr_flag"] = 1 // 医院审批标志
700
+				feedetailInfo["hosp_appr_flag"] = "1" // 医院审批标志
701
 			} else if item.HospApprFlag == 3 {
701
 			} else if item.HospApprFlag == 3 {
702
-				feedetailInfo["hosp_appr_flag"] = 2 // 医院审批标志
702
+				feedetailInfo["hosp_appr_flag"] = "2" // 医院审批标志
703
 			} else {
703
 			} else {
704
-				feedetailInfo["hosp_appr_flag"] = 1 // 医院审批标志
704
+				feedetailInfo["hosp_appr_flag"] = "1" // 医院审批标志
705
 			}
705
 			}
706
-
707
 		} else {
706
 		} else {
708
-			feedetailInfo["hosp_appr_flag"] = "" // 医院审批标志
707
+			feedetailInfo["hosp_appr_flag"] = "1" // 医院审批标志
709
 		}
708
 		}
710
 
709
 
711
 		feedetailInfo["tcmdrug_used_way"] = "" // 中药使用方式
710
 		feedetailInfo["tcmdrug_used_way"] = "" // 中药使用方式