Browse Source

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

csx 2 years ago
parent
commit
055e7b657b
4 changed files with 6 additions and 6 deletions
  1. 1 1
      conf/app.conf
  2. 3 3
      controllers/sg/his_api_controller.go
  3. 1 1
      service/gdyb_service.go
  4. 1 1
      service/his_service.go

+ 1 - 1
conf/app.conf View File

@@ -45,7 +45,7 @@ appsecret="61ee2e6268497d5aa9de0b0187c39aea"
45 45
 
46 46
 
47 47
 [prod]
48
-org_id = 10215
48
+org_id = 10138
49 49
 mobile_token_expiration_second = 86400
50 50
 httpdomain = https://api.xt.kuyicloud.com
51 51
 sso_domain = https://sso.kuyicloud.com

+ 3 - 3
controllers/sg/his_api_controller.go View File

@@ -2420,7 +2420,7 @@ func (c *HisApiController) GetBatchSettleList() {
2420 2420
 				ErrMsg:    res.ErrMsg + "解析失败",
2421 2421
 				Status:    1,
2422 2422
 				PatientId: order_id,
2423
-				Stage:     120,
2423
+				Stage:     1000,
2424 2424
 			}
2425 2425
 			service.CreateErrMsgLog(errlog)
2426 2426
 			continue
@@ -2435,7 +2435,7 @@ func (c *HisApiController) GetBatchSettleList() {
2435 2435
 				ErrMsg:    res.ErrMsg,
2436 2436
 				Status:    1,
2437 2437
 				PatientId: order_id,
2438
-				Stage:     200,
2438
+				Stage:     1000,
2439 2439
 			}
2440 2440
 			service.CreateErrMsgLog(errlog)
2441 2441
 			continue
@@ -8343,7 +8343,7 @@ func (c *HisApiController) GetSettleAccounts() {
8343 8343
 			laboratoryCostPartSelfTotal, _ = decimal.NewFromFloat(laboratoryCostPartSelfTotal).Add(decimal.NewFromFloat(item.PreselfpayAmt)).Float64()
8344 8344
 		}
8345 8345
 
8346
-		if item.MedChrgitmType == "05" { //治疗费
8346
+		if item.MedChrgitmType == "05" || item.MedChrgitmType == "05" || item.MedChrgitmType == "05" { //治疗费
8347 8347
 			treatCostTotal, _ = decimal.NewFromFloat(treatCostTotal).Add(decimal.NewFromFloat(item.DetItemFeeSumamt)).Float64()
8348 8348
 			treatCostSelfTotal, _ = decimal.NewFromFloat(treatCostSelfTotal).Add(decimal.NewFromFloat(item.OverlmtAmt)).Float64()
8349 8349
 			treatCostPartSelfTotal, _ = decimal.NewFromFloat(treatCostPartSelfTotal).Add(decimal.NewFromFloat(item.PreselfpayAmt)).Float64()

+ 1 - 1
service/gdyb_service.go View File

@@ -2842,7 +2842,7 @@ func Gdyb4101(struct4101 Struct4101, secret_key string, org_name string, doctor
2842 2842
 	inputMessage := SetInputMessage(nonce, timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs)
2843 2843
 	input := make(map[string]interface{})
2844 2844
 	inputData := make(map[string]interface{})
2845
-	if org_id == 10106 || org_id == 10215 {
2845
+	if org_id == 10106 || org_id == 10215 || org_id == 10138 {
2846 2846
 		inputMessage["infno"] = "4101A" // 交易编码
2847 2847
 
2848 2848
 	} else {

+ 1 - 1
service/his_service.go View File

@@ -1378,7 +1378,7 @@ func GetPsnByPatientId(patient_id int64) (psn models.HisPsn, err error) {
1378 1378
 }
1379 1379
 
1380 1380
 func GetAllHisOrder(org_id int64) (his []*models.HisOrder, err error) {
1381
-	err = readDb.Model(&models.HisOrder{}).Where("user_org_id = ? AND status = 1  AND  order_status = 2 AND setl_id <> '' AND  fa_piao_code <> '' ", org_id).Order("setl_time asc").Find(&his).Error
1381
+	err = readDb.Model(&models.HisOrder{}).Where("user_org_id = ? AND status = 1  AND  order_status = 2 AND setl_id <> '' AND  fa_piao_code <> '' AND setl_time >= '2021-08-15 00:00:00' AND setl_time <= '2022-03-30 23:59:59'", org_id).Order("setl_time asc").Find(&his).Error
1382 1382
 	return
1383 1383
 }
1384 1384
 func GetAllHisOrderErr(org_id int64, stage int64) (his []*models.HisOrderError, err error) {