Browse Source

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

csx 2 years ago
parent
commit
282df09e50
2 changed files with 8 additions and 3 deletions
  1. 3 3
      conf/app.conf
  2. 5 0
      controllers/sg/his_api_controller.go

+ 3 - 3
conf/app.conf View File

45
 
45
 
46
 
46
 
47
 [prod]
47
 [prod]
48
-org_id = 10138
48
+org_id = 10188
49
 mobile_token_expiration_second = 86400
49
 mobile_token_expiration_second = 86400
50
 httpdomain = https://api.xt.kuyicloud.com
50
 httpdomain = https://api.xt.kuyicloud.com
51
 sso_domain = https://sso.kuyicloud.com
51
 sso_domain = https://sso.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
 # gdyb_url = "http://10.97.240.206/ebus/sztest_hosp/poc/hsa/hgs/"
58
 # gdyb_url = "http://10.97.240.206/ebus/sztest_hosp/poc/hsa/hgs/"
59
 #内蒙古
59
 #内蒙古
60
 # http://tyjk.nm.hsip.gov.cn:8090/uif-hsaf-med-api/api/medical/service
60
 # http://tyjk.nm.hsip.gov.cn:8090/uif-hsaf-med-api/api/medical/service
66
 #珠海
66
 #珠海
67
 # gdyb_paasid="zh_prd_yrojyy"
67
 # gdyb_paasid="zh_prd_yrojyy"
68
 #深圳
68
 #深圳
69
-gdyb_paasid = "sz_prd_yjyy"
69
+# gdyb_paasid = "sz_prd_yjyy"
70
 #肇庆
70
 #肇庆
71
 # gdyb_paasid = "zq_prd_yjyy"
71
 # gdyb_paasid = "zq_prd_yjyy"
72
 
72
 

+ 5 - 0
controllers/sg/his_api_controller.go View File

6322
 								//判断是否使用了押金
6322
 								//判断是否使用了押金
6323
 								if dec_way == "true" {
6323
 								if dec_way == "true" {
6324
 									tmpstring := strconv.FormatInt(order.ID, 10)
6324
 									tmpstring := strconv.FormatInt(order.ID, 10)
6325
+									order.Decimal = decimal
6326
+									service.UpDateOrder(order)
6325
 									//扣押金
6327
 									//扣押金
6326
 									errmsg = service.SpendDeposit(c.GetAdminUserInfo().CurrentOrgId, id, c.GetAdminUserInfo().AdminUser.Id, tmpstring, decimal)
6328
 									errmsg = service.SpendDeposit(c.GetAdminUserInfo().CurrentOrgId, id, c.GetAdminUserInfo().AdminUser.Id, tmpstring, decimal)
6327
 									if errmsg != nil {
6329
 									if errmsg != nil {
6726
 					if dec_way == "true" {
6728
 					if dec_way == "true" {
6727
 						tmpstring := strconv.FormatInt(order.ID, 10)
6729
 						tmpstring := strconv.FormatInt(order.ID, 10)
6728
 						//扣押金
6730
 						//扣押金
6731
+						order.Decimal = decimal
6732
+						service.UpDateOrder(order)
6733
+
6729
 						errmsg = service.SpendDeposit(c.GetAdminUserInfo().CurrentOrgId, id, c.GetAdminUserInfo().AdminUser.Id, tmpstring, decimal)
6734
 						errmsg = service.SpendDeposit(c.GetAdminUserInfo().CurrentOrgId, id, c.GetAdminUserInfo().AdminUser.Id, tmpstring, decimal)
6730
 						if errmsg != nil {
6735
 						if errmsg != nil {
6731
 							c.ServeFailJsonSend(enums.ErrorCodeParamWrong, errmsg.Error())
6736
 							c.ServeFailJsonSend(enums.ErrorCodeParamWrong, errmsg.Error())