Przeglądaj źródła

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

csx 3 lat temu
rodzic
commit
5941987eca
2 zmienionych plików z 16 dodań i 2 usunięć
  1. 6 1
      conf/app.conf
  2. 10 1
      controllers/sg/his_api_controller.go

+ 6 - 1
conf/app.conf Wyświetl plik

52
 call_domain = https://hf.sgjyun.com
52
 call_domain = https://hf.sgjyun.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
+#内蒙古
59
+#gdyb_url = "http://10.38.23.105:8090/uif-hsaf-med-api/api/medical/service/"
58
 gdyb_paasid = "sg03_prd"
60
 gdyb_paasid = "sg03_prd"
59
 #gdyb_paasid = "jm_sc_yjyy"
61
 #gdyb_paasid = "jm_sc_yjyy"
60
 #gdyb_paasid = "zh_prd_yjyy"
62
 #gdyb_paasid = "zh_prd_yjyy"
62
 #gdyb_paasid = "zq_prd_yjyy"
64
 #gdyb_paasid = "zq_prd_yjyy"
63
 
65
 
64
 
66
 
67
+
68
+
69
+
65
 readmysqlhost = shengws1.mysql.rds.aliyuncs.com
70
 readmysqlhost = shengws1.mysql.rds.aliyuncs.com
66
 readmysqlport = 3306
71
 readmysqlport = 3306
67
 readmysqluser = syh
72
 readmysqluser = syh

+ 10 - 1
controllers/sg/his_api_controller.go Wyświetl plik

3315
 							total = total + (subItem.Price * float64(subItem.Count))
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
 					if res.Infcode == 0 {
3329
 					if res.Infcode == 0 {
3321
 						var rf []*ResultFive
3330
 						var rf []*ResultFive
3322
 						json.Unmarshal([]byte(his.Iinfo), &rf)
3331
 						json.Unmarshal([]byte(his.Iinfo), &rf)