Browse Source

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

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

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

@@ -1054,8 +1054,8 @@ func (c *HisApiController) GetSettleList() {
1054 1054
 
1055 1055
 func (c *HisApiController) GetBatchSettleList() {
1056 1056
 	org_id, _ := beego.AppConfig.Int64("org_id")
1057
-	stage, _ := c.GetInt64("stage")
1058
-	orders, _ := service.GetAllHisOrderErr(org_id, stage)
1057
+	//stage, _ := c.GetInt64("stage")
1058
+	orders, _ := service.GetAllHisOrder(org_id)
1059 1059
 	for _, item := range orders {
1060 1060
 		order_id := item.ID
1061 1061
 		order, _ := service.GetHisOrderByIDTwo(order_id)

+ 1 - 1
service/his_service.go View File

@@ -1356,7 +1356,7 @@ func GetPsnByPatientId(patient_id int64) (psn models.HisPsn, err error) {
1356 1356
 }
1357 1357
 
1358 1358
 func GetAllHisOrder(org_id int64) (his []*models.HisOrder, err error) {
1359
-	err = readDb.Model(&models.HisOrder{}).Where("user_org_id = ? AND status = 1 AND settle_accounts_date >= 1638806400 AND  settle_accounts_date <= 1640793600  AND  order_status = 2 AND setl_id <> '' AND  fa_piao_code <> '' ", org_id).Order("setl_time asc").Find(&his).Error
1359
+	err = readDb.Model(&models.HisOrder{}).Where("user_org_id = ? AND status = 1 AND settle_accounts_date = 1640880000  AND  order_status = 2 AND setl_id <> '' AND  fa_piao_code <> '' ", org_id).Order("setl_time asc").Find(&his).Error
1360 1360
 	return
1361 1361
 }
1362 1362
 func GetAllHisOrderErr(org_id int64, stage int64) (his []*models.HisOrderError, err error) {