Kaynağa Gözat

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

csx 2 yıl önce
ebeveyn
işleme
04601cd1a7
2 değiştirilmiş dosya ile 10 ekleme ve 10 silme
  1. 3 3
      controllers/zh/zh_his_api_controller.go
  2. 7 7
      main.go

+ 3 - 3
controllers/zh/zh_his_api_controller.go Dosyayı Görüntüle

@@ -1971,7 +1971,7 @@ func (c *ZHHisApiController) GetUploadInfo() {
1971 1971
 				data["org_name"] = miConfig.OrgName
1972 1972
 				data["opertor"] = roles.UserName
1973 1973
 				data["fixmedins_code"] = miConfig.Code
1974
-				data["insuplc_admdvs"] = miConfig.InsuplcAdmdvs
1974
+				data["insuplc_admdvs"] = record.InsuplcAdmdvs
1975 1975
 				data["mdtrtarea_admvs"] = miConfig.MdtrtareaAdmvs
1976 1976
 				data["secret_key"] = miConfig.SecretKey
1977 1977
 
@@ -2359,7 +2359,7 @@ func (c *ZHHisApiController) ZHRefundDetail() {
2359 2359
 				//请求内网数据
2360 2360
 				api := "http://172.16.13.254:9532/" + "nmyb/2302?psn_no=" + record.PsnNo + "&mdtrtId=" + record.Number + "&feedetl_sn=" + item.FeedetlSn +
2361 2361
 					"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&fixmedins_code=" + miConfig.Code +
2362
-					"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&refund_type=" + "1"
2362
+					"&insuplc_admdvs=" + record.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&refund_type=" + "1"
2363 2363
 				resp, requestErr := http.Get(api)
2364 2364
 				if requestErr != nil {
2365 2365
 					c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
@@ -2455,7 +2455,7 @@ func (c *ZHHisApiController) ZHRefundDetail() {
2455 2455
 				//请求内网数据
2456 2456
 				api := "http://172.16.13.254:9532/" + "nmyb/2302?psn_no=" + record.PsnNo + "&mdtrtId=" + record.Number + "&number=0000" +
2457 2457
 					"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&fixmedins_code=" + miConfig.Code +
2458
-					"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&refund_type=" + "1"
2458
+					"&insuplc_admdvs=" + record.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&refund_type=" + "1"
2459 2459
 				resp, requestErr := http.Get(api)
2460 2460
 				if requestErr != nil {
2461 2461
 					c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)

+ 7 - 7
main.go Dosyayı Görüntüle

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