|
@@ -557,6 +557,7 @@ func (c CowSlice) ToPB(
|
|
AdmissionPrice: v.AdmissionPrice,
|
|
AdmissionPrice: v.AdmissionPrice,
|
|
PurposeName: purposeName,
|
|
PurposeName: purposeName,
|
|
BatchNumber: v.BatchNumber,
|
|
BatchNumber: v.BatchNumber,
|
|
|
|
+ AdmissionWeight: float32(v.AdmissionWeight / 1000),
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return res
|
|
return res
|
|
@@ -771,6 +772,7 @@ func (c CowSlice) WeightRangeToPB(penMap map[int32]*Pen) []*pasturePb.CowList {
|
|
BirthWeight: float32(v.BirthWeight) / 1000,
|
|
BirthWeight: float32(v.BirthWeight) / 1000,
|
|
CurrentWeight: float32(v.CurrentWeight) / 1000,
|
|
CurrentWeight: float32(v.CurrentWeight) / 1000,
|
|
LastWeightAt: int32(v.LastWeightAt),
|
|
LastWeightAt: int32(v.LastWeightAt),
|
|
|
|
+ AdmissionAge: v.AdmissionAge,
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return res
|
|
return res
|