浏览代码

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

csx 3 年前
父节点
当前提交
990da46916
共有 2 个文件被更改,包括 8 次插入6 次删除
  1. 4 4
      conf/app.conf
  2. 4 2
      controllers/sg/his_api_controller.go

+ 4 - 4
conf/app.conf 查看文件

1
 appname = 血透
1
 appname = 血透
2
 httpport = 9532
2
 httpport = 9532
3
-runmode = dev
3
+runmode = prod
4
 
4
 
5
 #
5
 #
6
 copyrequestbody = true
6
 copyrequestbody = true
44
 
44
 
45
 
45
 
46
 [prod]
46
 [prod]
47
-org_id = 9919
47
+org_id = 10106
48
 mobile_token_expiration_second = 86400
48
 mobile_token_expiration_second = 86400
49
 httpdomain = https://api.xt.kuyicloud.com
49
 httpdomain = https://api.xt.kuyicloud.com
50
 sso_domain = https://sso.kuyicloud.com
50
 sso_domain = https://sso.kuyicloud.com
53
 #url  = "http://192.168.1.228:17001/szsi-portal/transData"
53
 #url  = "http://192.168.1.228:17001/szsi-portal/transData"
54
 url = "http://192.168.1.88:6666/szsi-portal/transData"
54
 url = "http://192.168.1.88:6666/szsi-portal/transData"
55
 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/"
56
-gdyb_paasid = "sg03_prd"
57
-#gdyb_paasid = "jm_sc_yjyy"
56
+#gdyb_paasid = "sg03_prd"
57
+gdyb_paasid = "jm_sc_yjyy"
58
 #gdyb_paasid = "zh_prd_yjyy"
58
 #gdyb_paasid = "zh_prd_yjyy"
59
 
59
 
60
 readmysqlhost = shengws1.mysql.rds.aliyuncs.com
60
 readmysqlhost = shengws1.mysql.rds.aliyuncs.com

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

1883
 	miConfig, _ := service.FindMedicalInsuranceInfo(adminUser.CurrentOrgId)
1883
 	miConfig, _ := service.FindMedicalInsuranceInfo(adminUser.CurrentOrgId)
1884
 	department, _ := service.GetDepartMentDetail(patientPrescription.Departments)
1884
 	department, _ := service.GetDepartMentDetail(patientPrescription.Departments)
1885
 
1885
 
1886
+	doctor_info, _ := service.GetAdminUserInfoByID(adminUser.CurrentOrgId, patientPrescription.DoctorId)
1887
+
1886
 	diagnosis_ids := strings.Split(diagnosis_id, ",")
1888
 	diagnosis_ids := strings.Split(diagnosis_id, ",")
1887
 
1889
 
1888
 	var config []*models.HisXtDiagnoseConfig
1890
 	var config []*models.HisXtDiagnoseConfig
1896
 	if tempOrder.ID == 0 {
1898
 	if tempOrder.ID == 0 {
1897
 		var result string
1899
 		var result string
1898
 		if miConfig.InsuplcAdmdvs == "440781" { //
1900
 		if miConfig.InsuplcAdmdvs == "440781" { //
1899
-			result = service.Gdyb2203A(his.PsnNo, his.Number, patientPrescription.Doctor, department.Name, miConfig.OrgName, strconv.FormatInt(reg_type, 10), patientPrescription.DoctorId, miConfig.Code, miConfig.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, sickConfig.CountryCode, sickConfig.ClassName, roles.UserName, config)
1901
+			result = service.Gdyb2203A(his.PsnNo, his.Number, doctor_info.UserName, department.Name, miConfig.OrgName, strconv.FormatInt(reg_type, 10), doctor_info.AdminUserId, miConfig.Code, miConfig.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, sickConfig.CountryCode, sickConfig.ClassName, roles.UserName, config)
1900
 		} else {
1902
 		} else {
1901
-			result = service.Gdyb2203(his.PsnNo, his.Number, patientPrescription.Doctor, department.Name, miConfig.OrgName, strconv.FormatInt(reg_type, 10), patientPrescription.DoctorId, miConfig.Code, miConfig.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, sickConfig.CountryCode, sickConfig.ClassName, roles.UserName, config)
1903
+			result = service.Gdyb2203(his.PsnNo, his.Number, doctor_info.UserName, department.Name, miConfig.OrgName, strconv.FormatInt(reg_type, 10), doctor_info.AdminUserId, miConfig.Code, miConfig.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, sickConfig.CountryCode, sickConfig.ClassName, roles.UserName, config)
1902
 
1904
 
1903
 		}
1905
 		}
1904
 
1906