animeic 1 year ago
parent
commit
157860ac82
1 changed files with 1 additions and 1 deletions
  1. 1 1
      boxcost/api/report.go

+ 1 - 1
boxcost/api/report.go

@@ -158,7 +158,7 @@ func ReportListDownload(c *gin.Context, apictx *ApiSession) (interface{}, error)
 	if !supplierId.IsZero() {
 		repo.RepoSeachDoc(apictx.CreateRepoCtx(), &repo.DocSearchOptions{
 			CollectName: repo.CollectionSupplier,
-			Query:       repo.Map{"supplierId": supplierId},
+			Query:       repo.Map{"_id": supplierId},
 			Project:     []string{"name"},
 		}, &supplier)
 		supplierName = supplier.Name