瀏覽代碼

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

csx 3 年之前
父節點
當前提交
9568f8be5c
共有 3 個文件被更改,包括 34 次插入32 次删除
  1. 4 4
      conf/app.conf
  2. 23 21
      controllers/sg/his_api_controller.go
  3. 7 7
      main.go

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

45
 
45
 
46
 
46
 
47
 [prod]
47
 [prod]
48
-org_id = 10188
48
+org_id = 10265
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
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
 #内蒙古
58
 #内蒙古
59
-# gdyb_url = "http://10.38.23.105:8090/uif-hsaf-med-api/api/medical/service/"
59
+gdyb_url = "http://10.38.23.105:8090/uif-hsaf-med-api/api/medical/service/"
60
 # gdyb_paasid = "sg03_prd"
60
 # gdyb_paasid = "sg03_prd"
61
-gdyb_paasid = "jm_sc_yjyy"
61
+#gdyb_paasid = "jm_sc_yjyy"
62
 # gdyb_paasid="zh_prd_yrojyy"
62
 # gdyb_paasid="zh_prd_yrojyy"
63
 # gdyb_paasid = "sz_prd_yjyy"
63
 # gdyb_paasid = "sz_prd_yjyy"
64
 # gdyb_paasid = "zq_prd_yjyy"
64
 # gdyb_paasid = "zq_prd_yjyy"

+ 23 - 21
controllers/sg/his_api_controller.go 查看文件

8979
 				"chineseTraditionalMedicineCostTotal":         chineseTraditionalMedicineCostTotal,
8979
 				"chineseTraditionalMedicineCostTotal":         chineseTraditionalMedicineCostTotal,
8980
 				"chineseTraditionalMedicineCostSelfTotal":     chineseTraditionalMedicineCostSelfTotal,
8980
 				"chineseTraditionalMedicineCostSelfTotal":     chineseTraditionalMedicineCostSelfTotal,
8981
 				"chineseTraditionalMedicineCostPartSelfTotal": chineseTraditionalMedicineCostPartSelfTotal,
8981
 				"chineseTraditionalMedicineCostPartSelfTotal": chineseTraditionalMedicineCostPartSelfTotal,
8982
-				"checkCostTotal":                              checkCostTotal,
8983
-				"checkCostSelfTotal":                          checkCostSelfTotal,
8984
-				"checkCostPartSelfTotal":                      checkCostPartSelfTotal,
8985
-				"laboratoryCostTotal":                         laboratoryCostTotal,
8986
-				"laboratoryCostSelfTotal":                     laboratoryCostSelfTotal,
8987
-				"laboratoryCostPartSelfTotal":                 laboratoryCostPartSelfTotal,
8988
-				"treatCostTotal":                              treatCostTotal,
8989
-				"treatCostSelfTotal":                          treatCostSelfTotal,
8990
-				"treatCostPartSelfTotal":                      treatCostPartSelfTotal,
8991
-				"doctor_code":                                 adminRole_two.DoctorCode,
8992
-				"doctor_name":                                 doctor_name,
8993
-				"health_card_no":                              order.PsnNo,
8994
-				"department":                                  departments.Name,
8995
-				"yiliao_leibie":                               yiliao_leibie,
8996
-				"after_money":                                 order.AccountPrice,
8997
-				"patient":                                     patient,
8998
-				"org_name":                                    miConfig.OrgName,
8999
-				"org_code":                                    miConfig.Code,
9000
-				"order_number":                                order.Number,
9001
-				"his_hospital":                                his_hospital,
9002
-				"his":                                         his,
8982
+
8983
+				"checkCostTotal":              checkCostTotal,
8984
+				"checkCostSelfTotal":          checkCostSelfTotal,
8985
+				"checkCostPartSelfTotal":      checkCostPartSelfTotal,
8986
+				"laboratoryCostTotal":         laboratoryCostTotal,
8987
+				"laboratoryCostSelfTotal":     laboratoryCostSelfTotal,
8988
+				"laboratoryCostPartSelfTotal": laboratoryCostPartSelfTotal,
8989
+				"treatCostTotal":              treatCostTotal,
8990
+				"treatCostSelfTotal":          treatCostSelfTotal,
8991
+				"treatCostPartSelfTotal":      treatCostPartSelfTotal,
8992
+
8993
+				"doctor_code":    adminRole_two.DoctorCode,
8994
+				"doctor_name":    doctor_name,
8995
+				"health_card_no": order.PsnNo,
8996
+				"department":     departments.Name,
8997
+				"yiliao_leibie":  yiliao_leibie,
8998
+				"after_money":    order.AccountPrice,
8999
+				"patient":        patient,
9000
+				"org_name":       miConfig.OrgName,
9001
+				"org_code":       miConfig.Code,
9002
+				"order_number":   order.Number,
9003
+				"his_hospital":   his_hospital,
9004
+				"his":            his,
9003
 
9005
 
9004
 				//"check_order_info":                            cus_slice,
9006
 				//"check_order_info":                            cus_slice,
9005
 			})
9007
 			})

+ 7 - 7
main.go 查看文件

5
 	"fmt"
5
 	"fmt"
6
 	"gdyb/models"
6
 	"gdyb/models"
7
 	_ "gdyb/routers"
7
 	_ "gdyb/routers"
8
-	//"gdyb/service"
8
+	"gdyb/service"
9
 
9
 
10
 	"github.com/astaxie/beego"
10
 	"github.com/astaxie/beego"
11
 	"github.com/qiniu/api.v7/auth/qbox"
11
 	"github.com/qiniu/api.v7/auth/qbox"
16
 )
16
 )
17
 
17
 
18
 func init() {
18
 func init() {
19
-	//service.ConnectDB()
20
-	//org_id, _ := beego.AppConfig.Int64("org_id")
21
-	//
22
-	//miConfig, _ := service.FindMedicalInsuranceInfo(org_id)
23
-	//CreateLog(miConfig)
24
-	//UploadLog(miConfig)
19
+	service.ConnectDB()
20
+	org_id, _ := beego.AppConfig.Int64("org_id")
21
+
22
+	miConfig, _ := service.FindMedicalInsuranceInfo(org_id)
23
+	CreateLog(miConfig)
24
+	UploadLog(miConfig)
25
 
25
 
26
 	//UploadSettleList(org_id)
26
 	//UploadSettleList(org_id)
27
 }
27
 }