Browse Source

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

csx 3 years ago
parent
commit
479011cfcf
3 changed files with 8 additions and 10 deletions
  1. 3 3
      conf/app.conf
  2. 4 6
      controllers/sg/his_api_controller.go
  3. 1 1
      service/his_service.go

+ 3 - 3
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 = 10106
49 49
 mobile_token_expiration_second = 86400
50 50
 httpdomain = https://api.xt.kuyicloud.com
51 51
 sso_domain = https://sso.kuyicloud.com
@@ -58,10 +58,10 @@ gdyb_url = "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/"
58 58
 #内蒙古
59 59
 # gdyb_url = "http://10.38.23.105:8090/uif-hsaf-med-api/api/medical/service/"
60 60
 # gdyb_paasid = "sg03_prd"
61
-# gdyb_paasid = "jm_sc_yjyy"
61
+gdyb_paasid = "jm_sc_yjyy"
62 62
 # gdyb_paasid="zh_prd_yrojyy"
63 63
 # gdyb_paasid = "sz_prd_yjyy"
64
-gdyb_paasid = "zq_prd_yjyy"
64
+# gdyb_paasid = "zq_prd_yjyy"
65 65
 
66 66
 
67 67
 

+ 4 - 6
controllers/sg/his_api_controller.go View File

@@ -1734,16 +1734,14 @@ func (c *HisApiController) GetSettleListHospital() {
1734 1734
 }
1735 1735
 
1736 1736
 func (c *HisApiController) GetBatchSettleList() {
1737
-	org_id, _ := beego.AppConfig.Int64("org_id")
1738
-	//stage, _ := c.GetInt64("stage")
1739
-	orders, _ := service.GetAllHisOrder(org_id)
1737
+	orders, _ := service.GetAllHisOrder(10106)
1740 1738
 	for _, item := range orders {
1741 1739
 		order_id := item.ID
1742 1740
 		order, _ := service.GetHisOrderByIDTwo(order_id)
1743 1741
 		roles, _ := service.GetDoctorListTwo(c.GetAdminUserInfo().CurrentOrgId)
1744 1742
 		his, _ := service.GetHisPatientByNumber(order.MdtrtId)
1745 1743
 		admin, _ := service.GetAdminUserByUserID(roles[0].AdminUserId)
1746
-		curRoles, _ := service.GetAdminUserInfoByID(c.GetAdminUserInfo().CurrentOrgId, 2185)
1744
+		curRoles, _ := service.GetAdminUserInfoByID(c.GetAdminUserInfo().CurrentOrgId, 2495)
1747 1745
 		depart, _ := service.GetDepartMentDetail(curRoles.DepartmentId)
1748 1746
 		miConfig, _ := service.FindMedicalInsuranceInfo(c.GetAdminUserInfo().CurrentOrgId)
1749 1747
 
@@ -2447,7 +2445,7 @@ func (c *HisApiController) GetBatchSettleList() {
2447 2445
 				ErrMsg:    res.ErrMsg + "解析失败",
2448 2446
 				Status:    1,
2449 2447
 				PatientId: order_id,
2450
-				Stage:     1000,
2448
+				Stage:     2000,
2451 2449
 			}
2452 2450
 			service.CreateErrMsgLog(errlog)
2453 2451
 			continue
@@ -2462,7 +2460,7 @@ func (c *HisApiController) GetBatchSettleList() {
2462 2460
 				ErrMsg:    res.ErrMsg,
2463 2461
 				Status:    1,
2464 2462
 				PatientId: order_id,
2465
-				Stage:     1000,
2463
+				Stage:     2000,
2466 2464
 			}
2467 2465
 			service.CreateErrMsgLog(errlog)
2468 2466
 			continue

+ 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 <> '' 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
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 >= '2022-02-28 20:02:34'", 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) {