Browse Source

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

csx 3 years ago
parent
commit
9be33012d5
2 changed files with 4 additions and 4 deletions
  1. 2 2
      controllers/sg/his_api_controller.go
  2. 2 2
      service/his_service.go

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

@@ -996,8 +996,8 @@ func (c *HisApiController) GetSettleList() {
996 996
 
997 997
 func (c *HisApiController) GetBatchSettleList() {
998 998
 	org_id, _ := beego.AppConfig.Int64("org_id")
999
-	orders, _ := service.GetAllHisOrderErr(org_id)
1000
-	//admin_user_id, _ := c.GetInt64("admin_user_id")
999
+	stage, _ := c.GetInt64("stage")
1000
+	orders, _ := service.GetAllHisOrderErr(org_id, stage)
1001 1001
 
1002 1002
 	for _, item := range orders {
1003 1003
 		order_id := item.PatientId

+ 2 - 2
service/his_service.go View File

@@ -1367,7 +1367,7 @@ func GetAllHisOrder(org_id int64) (his []*models.HisOrder, err error) {
1367 1367
 	err = readDb.Model(&models.HisOrder{}).Where("user_org_id = ? AND status = 1 AND order_status = 2 AND setl_id <> '' AND id >= 2499", org_id).Order("setl_time asc").Find(&his).Error
1368 1368
 	return
1369 1369
 }
1370
-func GetAllHisOrderErr(org_id int64) (his []*models.HisOrderError, err error) {
1371
-	err = readDb.Model(&models.HisOrderError{}).Where("user_org_id = ? AND status = 1 AND stage = 23", org_id).Find(&his).Error
1370
+func GetAllHisOrderErr(org_id int64, stage int64) (his []*models.HisOrderError, err error) {
1371
+	err = readDb.Model(&models.HisOrderError{}).Where("user_org_id = ? AND status = 1 AND stage = ?", org_id, stage).Find(&his).Error
1372 1372
 	return
1373 1373
 }