animeic před 2 roky
rodič
revize
5035293ce0
1 změnil soubory, kde provedl 3 přidání a 2 odebrání
  1. 3 2
      boxcost/api/report.go

+ 3 - 2
boxcost/api/report.go

@@ -16,9 +16,10 @@ func Report(r *GinRouter) {
 	r.GET("/report/produce/list", ReportProduceList)
 	// 采购列表
 	r.GET("/report/purchase/list", ReportPurchaseList)
-	r.GET("/report/product/list", ReportPorductList)
+	r.GET("/report/product/list", ReportProductList)
 	r.GET("/report/produce/download", ReportProduceDownload)
 	r.GET("/report/purchase/download", ReportPurchaseDownload)
+	r.GET("/report/product/download", ReportProductDownload)
 }
 
 // 加工单
@@ -47,7 +48,7 @@ func ReportPurchaseList(c *gin.Context, apictx *ApiSession) (interface{}, error)
 
 }
 
-func ReportPorductList(c *gin.Context, apictx *ApiSession) (interface{}, error) {
+func ReportProductList(c *gin.Context, apictx *ApiSession) (interface{}, error) {
 	page, size, query := UtilQueryPageSize(c)
 	return repo.RepoPageSearch(apictx.CreateRepoCtx(), &repo.PageSearchOptions{
 		CollectName: repo.CollectionBillProduct,