Browse Source

group: 饲料分类和畜牧分类下发

Yi 1 year ago
parent
commit
212a5699ab
1 changed files with 1 additions and 1 deletions
  1. 1 1
      module/backend/pasture_service.go

+ 1 - 1
module/backend/pasture_service.go

@@ -538,7 +538,7 @@ func (s *StoreEntry) CategoryDistribution(ctx context.Context, url string, req *
 		go func(data *model.GroupPasture) {
 			defer wg.Done()
 			res := &model.PastureCommonResponse{}
-			req.PastureId = int32(data.Id)
+			req.PastureId = int32(data.PastureId)
 			if err = s.PastureHttpClient(ctx, url, data.Id, req, res); err != nil {
 				zaplog.Error("CategoryDistribution",
 					zap.Any("url", url),