Browse Source

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

csx 3 years ago
parent
commit
70d8e8651d
3 changed files with 9 additions and 11 deletions
  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 View File

@@ -44,8 +44,7 @@ appsecret="61ee2e6268497d5aa9de0b0187c39aea"
44 44
 
45 45
 
46 46
 [prod]
47
-
48
-org_id = 9919
47
+org_id = 10106
49 48
 mobile_token_expiration_second = 86400
50 49
 httpdomain = https://api.xt.kuyicloud.com
51 50
 sso_domain = https://sso.kuyicloud.com
@@ -54,7 +53,7 @@ front_end_domain = "https://xt.kuyicloud.com/#"
54 53
 #url  = "http://192.168.1.228:17001/szsi-portal/transData"
55 54
 url = "http://192.168.1.88:6666/szsi-portal/transData"
56 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 58
 readmysqlhost = shengws1.mysql.rds.aliyuncs.com
60 59
 readmysqlport = 3306

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

@@ -1020,7 +1020,7 @@ func (c *HisApiController) GetRegisterInfo() {
1020 1020
 
1021 1021
 			if count <= 0 {
1022 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 1024
 					"&org_name=" + miConfig.OrgName + "&doctor=" + patientPrescription.Doctor + "&ipt_otp_no=" + ipt_otp_no +
1025 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 1026
 				resp, requestErr := http.Get(api)
@@ -1503,7 +1503,7 @@ func (c *HisApiController) GetUploadInfo() {
1503 1503
 				fmt.Println(insutype)
1504 1504
 
1505 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 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 1508
 					miConfig.SecretKey + "&med_type=" + strconv.FormatInt(patientPrescription.RegisterType, 10) + "&id_card_type=" + strconv.FormatInt(int64(his.IdCardType), 10)
1509 1509
 				resp, requestErr := http.Get(api)

+ 5 - 6
service/gdyb_service.go View File

@@ -695,17 +695,16 @@ func Gdyb2204(psnNo string, mdtrtId string, hisPrescription []*models.HisPrescri
695 695
 
696 696
 		if item.HospApprFlag != -1 {
697 697
 			if item.HospApprFlag == 1 {
698
-				feedetailInfo["hosp_appr_flag"] = 0 // 医院审批标志
698
+				feedetailInfo["hosp_appr_flag"] = "0" // 医院审批标志
699 699
 			} else if item.HospApprFlag == 2 {
700
-				feedetailInfo["hosp_appr_flag"] = 1 // 医院审批标志
700
+				feedetailInfo["hosp_appr_flag"] = "1" // 医院审批标志
701 701
 			} else if item.HospApprFlag == 3 {
702
-				feedetailInfo["hosp_appr_flag"] = 2 // 医院审批标志
702
+				feedetailInfo["hosp_appr_flag"] = "2" // 医院审批标志
703 703
 			} else {
704
-				feedetailInfo["hosp_appr_flag"] = 1 // 医院审批标志
704
+				feedetailInfo["hosp_appr_flag"] = "1" // 医院审批标志
705 705
 			}
706
-
707 706
 		} else {
708
-			feedetailInfo["hosp_appr_flag"] = "" // 医院审批标志
707
+			feedetailInfo["hosp_appr_flag"] = "1" // 医院审批标志
709 708
 		}
710 709
 
711 710
 		feedetailInfo["tcmdrug_used_way"] = "" // 中药使用方式