Browse Source

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

csx 3 years ago
parent
commit
5941987eca
2 changed files with 16 additions and 2 deletions
  1. 6 1
      conf/app.conf
  2. 10 1
      controllers/sg/his_api_controller.go

+ 6 - 1
conf/app.conf View File

@@ -52,9 +52,11 @@ sso_domain = https://sso.kuyicloud.com
52 52
 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
-url = "http://192.168.1.88:6666/szsi-portal/transData"
55
+#url = "http://192.168.1.88:6666/szsi-portal/transData"
56 56
 gdyb_url = "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/"
57 57
 #gdyb_url="http://igb.hsa.gdgov.cn/ebus/sz_prd/hsa/hgs/"
58
+#内蒙古
59
+#gdyb_url = "http://10.38.23.105:8090/uif-hsaf-med-api/api/medical/service/"
58 60
 gdyb_paasid = "sg03_prd"
59 61
 #gdyb_paasid = "jm_sc_yjyy"
60 62
 #gdyb_paasid = "zh_prd_yjyy"
@@ -62,6 +64,9 @@ gdyb_paasid = "sg03_prd"
62 64
 #gdyb_paasid = "zq_prd_yjyy"
63 65
 
64 66
 
67
+
68
+
69
+
65 70
 readmysqlhost = shengws1.mysql.rds.aliyuncs.com
66 71
 readmysqlport = 3306
67 72
 readmysqluser = syh

+ 10 - 1
controllers/sg/his_api_controller.go View File

@@ -3315,8 +3315,17 @@ func (c *HisApiController) GetUploadInfo() {
3315 3315
 							total = total + (subItem.Price * float64(subItem.Count))
3316 3316
 						}
3317 3317
 					}
3318
+					var allTotal string
3319
+					if adminUser.CurrentOrgId == 9919 {
3320
+
3321
+						allTotal = fmt.Sprintf("%.2f", total)
3322
+
3323
+					} else {
3324
+
3325
+						allTotal = fmt.Sprintf("%.4f", total)
3326
+
3327
+					}
3318 3328
 
3319
-					allTotal := fmt.Sprintf("%.4f", total)
3320 3329
 					if res.Infcode == 0 {
3321 3330
 						var rf []*ResultFive
3322 3331
 						json.Unmarshal([]byte(his.Iinfo), &rf)