Prechádzať zdrojové kódy

未发布的报告不显示收藏

kobe6258 3 mesiacov pred
rodič
commit
31c957699c
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      models/report/report.go

+ 1 - 1
models/report/report.go

@@ -436,7 +436,7 @@ func FilterReportIds(ids []int) (total int64, reportIds []int, err error) {
 	err = db.Model(&Report{}).Select("id").
 		Where("id in ?", ids).
 		Where("classify_id not in (?) and source=?", gorm.Expr(etaSubQuery), SourceETA).
-		Where("plant_name not in (?) and source=?", gorm.Expr(htSubQuery), SourceHT).
+		Where("plate_name not in (?) and source=?", gorm.Expr(htSubQuery), SourceHT).
 		Where("Status = ?", StatusPublish).
 		Scan(&reportIds).Error
 	if err != nil {