|
@@ -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
|