Browse Source

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

csx 2 years ago
parent
commit
4046f8b017
3 changed files with 9 additions and 9 deletions
  1. 3 3
      conf/app.conf
  2. 5 5
      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 = 10088
48
+org_id = 10138
49 49
 
50 50
 mobile_token_expiration_second = 86400
51 51
 httpdomain = https://api.xt.kuyicloud.com
@@ -57,7 +57,7 @@ front_end_domain = "https://xt.kuyicloud.com/#"
57 57
 #gdyb_url = "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/"
58 58
 #test
59 59
 # gdyb_url = http://10.97.240.206/ebus/gdyb_inf/poc/hsa/hgs/
60
-#gdyb_url="http://igb.hsa.gdgov.cn/ebus/sz_prd/hsa/hgs/"
60
+gdyb_url="http://igb.hsa.gdgov.cn/ebus/sz_prd/hsa/hgs/"
61 61
 #gdyb_url = "http://10.97.240.206/ebus/sztest_hosp/poc/hsa/hgs/"
62 62
 #内蒙古
63 63
 # http://tyjk.nm.hsip.gov.cn:8090/uif-hsaf-med-api/api/medical/service
@@ -71,7 +71,7 @@ front_end_domain = "https://xt.kuyicloud.com/#"
71 71
 #珠海
72 72
 # gdyb_paasid="zh_prd_yrojyy"
73 73
 #深圳
74
-#gdyb_paasid = "sz_prd_yjyy"
74
+gdyb_paasid = "sz_prd_yjyy"
75 75
 #肇庆
76 76
 #gdyb_paasid = "zq_prd_yjyy"
77 77
 # gdyb_paasid = "sztest_hosp"

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

@@ -3292,14 +3292,14 @@ func (c *HisApiController) GetSettleListHospital() {
3292 3292
 }
3293 3293
 
3294 3294
 func (c *HisApiController) GetBatchSettleList() {
3295
-	orders, _ := service.GetAllHisOrder(10088)
3295
+	orders, _ := service.GetAllHisOrder(10138)
3296 3296
 	for _, item := range orders {
3297 3297
 		order_id := item.ID
3298 3298
 		order, _ := service.GetHisOrderByIDTwo(order_id)
3299 3299
 		roles, _ := service.GetDoctorListTwo(c.GetAdminUserInfo().CurrentOrgId)
3300 3300
 		his, _ := service.GetHisPatientByNumber(order.MdtrtId)
3301 3301
 		admin, _ := service.GetAdminUserByUserID(roles[0].AdminUserId)
3302
-		curRoles, _ := service.GetAdminUserInfoByID(c.GetAdminUserInfo().CurrentOrgId, 2273)
3302
+		curRoles, _ := service.GetAdminUserInfoByID(c.GetAdminUserInfo().CurrentOrgId, 2185)
3303 3303
 		depart, _ := service.GetDepartMentDetail(curRoles.DepartmentId)
3304 3304
 		miConfig, _ := service.FindMedicalInsuranceInfo(c.GetAdminUserInfo().CurrentOrgId)
3305 3305
 
@@ -4024,7 +4024,7 @@ func (c *HisApiController) GetBatchSettleList() {
4024 4024
 					ErrMsg:    res.ErrMsg + "解析失败",
4025 4025
 					Status:    1,
4026 4026
 					PatientId: order_id,
4027
-					Stage:     10088,
4027
+					Stage:     10138,
4028 4028
 				}
4029 4029
 				service.CreateErrMsgLog(errlog)
4030 4030
 				continue
@@ -4052,7 +4052,7 @@ func (c *HisApiController) GetBatchSettleList() {
4052 4052
 					ErrMsg:    res.ErrMsg + "解析失败",
4053 4053
 					Status:    1,
4054 4054
 					PatientId: order_id,
4055
-					Stage:     10088,
4055
+					Stage:     10138,
4056 4056
 				}
4057 4057
 				service.CreateErrMsgLog(errlog)
4058 4058
 				continue
@@ -4068,7 +4068,7 @@ func (c *HisApiController) GetBatchSettleList() {
4068 4068
 				ErrMsg:    res.ErrMsg,
4069 4069
 				Status:    1,
4070 4070
 				PatientId: order_id,
4071
-				Stage:     10088,
4071
+				Stage:     10138,
4072 4072
 			}
4073 4073
 			service.CreateErrMsgLog(errlog)
4074 4074
 			continue

+ 1 - 1
service/his_service.go View File

@@ -1387,7 +1387,7 @@ func GetPsnByPatientId(patient_id int64) (psn models.HisPsn, err error) {
1387 1387
 }
1388 1388
 
1389 1389
 func GetAllHisOrder(org_id int64) (his []*models.HisOrder, err error) {
1390
-	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
1390
+	err = readDb.Model(&models.HisOrder{}).Where("user_org_id = ? AND id > 76368  AND status = 1  AND  order_status = 2 AND setl_id <> '' AND  fa_piao_code <> '' AND med_type = '14'", org_id).Order("setl_time asc").Find(&his).Error
1391 1391
 	return
1392 1392
 }
1393 1393
 func GetAllHisOrderErr(org_id int64, stage int64) (his []*models.HisOrderError, err error) {