Browse Source

pasture: 畜牧类型默认类型

Yi 1 year ago
parent
commit
6a995f49b7
2 changed files with 2 additions and 2 deletions
  1. 1 1
      module/backend/pasture_service.go
  2. 1 1
      module/backend/statistic_service.go

+ 1 - 1
module/backend/pasture_service.go

@@ -757,7 +757,7 @@ func (s *StoreEntry) ForageEnumList(ctx context.Context) *operationPb.ForageEnum
 	res.Data.CattleParentCategory = append(res.Data.CattleParentCategory,
 		&operationPb.CattleParentCategoryEnum{
 			Value: operationPb.CattleCategoryParent_INVALID,
-			Label: "所有",
+			Label: "畜牧类别",
 		},
 		&operationPb.CattleParentCategoryEnum{
 			Value: operationPb.CattleCategoryParent_LACTATION_CAW,

+ 1 - 1
module/backend/statistic_service.go

@@ -432,7 +432,7 @@ func (s *StoreEntry) SearchFeedStatistics(ctx context.Context, req *operationPb.
 				if req.ApiName == "getFeedEfficiencyFT" {
 					feedStatisticsConversions := FeedStatisticsConversions(response.Data.List)
 					feedStatisticsConversions.PastureName = groupPasture.Name
-					res.Data.List[groupPasture.Name] = FeedStatisticsConversions(response.Data.List)
+					res.Data.List[groupPasture.Name] = feedStatisticsConversions
 				} else {
 					res.Data.List[groupPasture.Name] = response.Data.List
 				}