Kaynağa Gözat

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

csx 3 yıl önce
ebeveyn
işleme
c6588c2a1a
3 değiştirilmiş dosya ile 13 ekleme ve 10 silme
  1. 2 2
      conf/app.conf
  2. 4 1
      controllers/sg/his_api_controller.go
  3. 7 7
      main.go

+ 2 - 2
conf/app.conf Dosyayı Görüntüle

@@ -45,7 +45,7 @@ appsecret="61ee2e6268497d5aa9de0b0187c39aea"
45 45
 
46 46
 
47 47
 [prod]
48
-org_id = 10138
48
+org_id = 10217
49 49
 mobile_token_expiration_second = 86400
50 50
 httpdomain = https://api.xt.kuyicloud.com
51 51
 sso_domain = https://sso.kuyicloud.com
@@ -60,7 +60,7 @@ gdyb_url="http://igb.hsa.gdgov.cn/ebus/sz_prd/hsa/hgs/"
60 60
 # gdyb_paasid = "sg03_prd"
61 61
 # gdyb_paasid = "jm_sc_yjyy"
62 62
 # gdyb_paasid="zh_prd_yrojyy"
63
-gdyb_paasid = "sz_prd_yjyy"
63
+# gdyb_paasid = "sz_prd_yjyy"
64 64
 # gdyb_paasid = "zq_prd_yjyy"
65 65
 
66 66
 

+ 4 - 1
controllers/sg/his_api_controller.go Dosyayı Görüntüle

@@ -8295,6 +8295,8 @@ func (c *HisApiController) GetSettleAccounts() {
8295 8295
 	orderInfos, _ := service.GetHisOrderInfoByNumber(order.Number)
8296 8296
 	orderInfos_two, _ := service.GetHisOrderInfoByNumberTwo(order.Number)
8297 8297
 	orderInfos = append(orderInfos, orderInfos_two...)
8298
+	his_hospital, _ := service.GetInHospitalRecordByNumber(order.MdtrtId)
8299
+
8298 8300
 	//diagnosisConfig, _ := service.FindDiagnoseById(his.Diagnosis)
8299 8301
 
8300 8302
 	diagnosis_ids := strings.Split(his.Diagnosis, ",")
@@ -8370,7 +8372,7 @@ func (c *HisApiController) GetSettleAccounts() {
8370 8372
 			laboratoryCostPartSelfTotal, _ = decimal.NewFromFloat(laboratoryCostPartSelfTotal).Add(decimal.NewFromFloat(item.PreselfpayAmt)).Float64()
8371 8373
 		}
8372 8374
 
8373
-		if item.MedChrgitmType == "05" || item.MedChrgitmType == "05" || item.MedChrgitmType == "05" { //治疗费
8375
+		if item.MedChrgitmType == "05" || item.MedChrgitmType == "1402" || item.MedChrgitmType == "1403" { //治疗费
8374 8376
 			treatCostTotal, _ = decimal.NewFromFloat(treatCostTotal).Add(decimal.NewFromFloat(item.DetItemFeeSumamt)).Float64()
8375 8377
 			treatCostSelfTotal, _ = decimal.NewFromFloat(treatCostSelfTotal).Add(decimal.NewFromFloat(item.OverlmtAmt)).Float64()
8376 8378
 			treatCostPartSelfTotal, _ = decimal.NewFromFloat(treatCostPartSelfTotal).Add(decimal.NewFromFloat(item.PreselfpayAmt)).Float64()
@@ -8635,6 +8637,7 @@ func (c *HisApiController) GetSettleAccounts() {
8635 8637
 				"org_name":                                    miConfig.OrgName,
8636 8638
 				"org_code":                                    miConfig.Code,
8637 8639
 				"order_number":                                order.Number,
8640
+				//"his":                                         his_hospital,
8638 8641
 				//"check_order_info":                            cus_slice,
8639 8642
 			})
8640 8643
 		}

+ 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
 }