|
@@ -138,13 +138,13 @@ func updateStageCount(billId primitive.ObjectID, planId primitive.ObjectID, idCo
|
|
|
}
|
|
|
|
|
|
}
|
|
|
- fmt.Println(plan)
|
|
|
- _, err = repo.RepoUpdateSetDoc(apictx.CreateRepoCtx(), repo.CollectionProductPlan, planId.Hex(), &plan)
|
|
|
+ plan.UpdateTime = time.Now()
|
|
|
+ result, err := repo.RepoUpdateSetDoc(apictx.CreateRepoCtx(), repo.CollectionProductPlan, planId.Hex(), &plan)
|
|
|
if err != nil {
|
|
|
log.Error(err)
|
|
|
fmt.Println(err)
|
|
|
}
|
|
|
- return true, err
|
|
|
+ return result, err
|
|
|
|
|
|
}
|
|
|
|