|
@@ -44,7 +44,7 @@ func DownLoadPlanCost(c *gin.Context, apictx *ApiSession) (interface{}, error) {
|
|
|
_planId := c.Query("id")
|
|
|
planId, err := primitive.ObjectIDFromHex(_planId)
|
|
|
if err != nil {
|
|
|
- return nil, errors.New("packId错误")
|
|
|
+ return nil, errors.New("planId错误")
|
|
|
}
|
|
|
plan := model.ProductPlan{}
|
|
|
found, err := repo.RepoSeachDoc(apictx.CreateRepoCtx(), &repo.DocSearchOptions{
|
|
@@ -56,7 +56,6 @@ func DownLoadPlanCost(c *gin.Context, apictx *ApiSession) (interface{}, error) {
|
|
|
}
|
|
|
|
|
|
f := excelize.NewFile()
|
|
|
- // Create a new sheet.
|
|
|
index := f.NewSheet("Sheet1")
|
|
|
f.SetActiveSheet(index)
|
|
|
f.SetDefaultFont("宋体")
|
|
@@ -90,7 +89,7 @@ func DownLoadPlan(c *gin.Context, apictx *ApiSession) (interface{}, error) {
|
|
|
compId := c.Query("compId")
|
|
|
planId, err := primitive.ObjectIDFromHex(_planId)
|
|
|
if err != nil {
|
|
|
- return nil, errors.New("packId错误")
|
|
|
+ return nil, errors.New("planId错误")
|
|
|
}
|
|
|
plan := model.ProductPlan{}
|
|
|
found, err := repo.RepoSeachDoc(apictx.CreateRepoCtx(), &repo.DocSearchOptions{
|