animeic 2 жил өмнө
parent
commit
44cbb8f115

+ 4 - 4
boxcost/api/plan.go

@@ -104,11 +104,11 @@ func DownLoadPlan(c *gin.Context, apictx *ApiSession) (interface{}, error) {
 						Query:       repo.Map{"_id": produceId},
 						Query:       repo.Map{"_id": produceId},
 					}, &produce)
 					}, &produce)
 					if found {
 					if found {
-						billExcel := NewProduceBill(f)
-						billExcel.Content = &produce
+						produceExcel := NewProduceBill(f)
+						produceExcel.Content = &produce
 						//设置对应的数据
 						//设置对应的数据
-						billExcel.Draws()
-						billExcel.Offset += 15
+						produceExcel.Draws()
+						produceExcel.Offset += 15
 					}
 					}
 
 
 				}
 				}