animeic 2 years ago
parent
commit
c9c738f503
3 changed files with 2 additions and 2 deletions
  1. BIN
      boxcost/__debug_bin
  2. 1 1
      boxcost/api/pack.go
  3. 1 1
      boxcost/api/plan.go

BIN
boxcost/__debug_bin


+ 1 - 1
boxcost/api/pack.go

@@ -48,7 +48,7 @@ func CreatePack(c *gin.Context, apictx *ApiSession) (interface{}, error) {
 		return nil, errors.New("包装名为空")
 	}
 	// 创建时生产 CompCounts,packComponent Id,mat。id craft id
-	// pack.CompCounts = len(pack.Components)
+	pack.CompCounts = len(pack.Components)
 
 	// 生成id
 	// components id

+ 1 - 1
boxcost/api/plan.go

@@ -293,7 +293,7 @@ func GetProductPlans(c *gin.Context, apictx *ApiSession) (interface{}, error) {
 		Page:        page,
 		Size:        size,
 		Sort:        bson.M{"createTime": -1},
-		Project:     []string{"_id", "thumbnail", "name", "updateTime", "createUser", "total", "totalPrice", "status"},
+		Project:     []string{"_id", "thumbnail", "name", "updateTime", "createTime", "createUser", "total", "totalPrice", "status"},
 	}
 	return repo.RepoPageSearch(apictx.CreateRepoCtx(), option)
 }