|
@@ -130,6 +130,7 @@ func (s *StoreEntry) NeckRingWarningHealthCowList(ctx context.Context, req *past
|
|
|
}
|
|
|
|
|
|
warningHealthLevelMap := s.WarningHealthLevelMap()
|
|
|
+ healthStatusMap := s.HealthStatusMap()
|
|
|
cowMap := make(map[int64]*model.Cow)
|
|
|
eventLogMap := make(map[int64]string)
|
|
|
cowIds := make([]int64, 0)
|
|
@@ -154,7 +155,7 @@ func (s *StoreEntry) NeckRingWarningHealthCowList(ctx context.Context, req *past
|
|
|
Total: int32(count),
|
|
|
Page: pagination.Page,
|
|
|
PageSize: pagination.PageSize,
|
|
|
- List: model.NeckRingHealthWarningSlice(neckWaringHealthList).ToPB(warningHealthLevelMap, cowMap, eventLogMap),
|
|
|
+ List: model.NeckRingHealthWarningSlice(neckWaringHealthList).ToPB(warningHealthLevelMap, cowMap, eventLogMap, healthStatusMap),
|
|
|
},
|
|
|
}, nil
|
|
|
|