|
@@ -34,7 +34,8 @@ func (s *StoreEntry) SubmitEventLog(ctx context.Context, pastureId int64, cow *m
|
|
if data.Sex == pasturePb.Genders_Female {
|
|
if data.Sex == pasturePb.Genders_Female {
|
|
sex = "母"
|
|
sex = "母"
|
|
}
|
|
}
|
|
- desc = fmt.Sprintf("性别: %s; 栏舍: %s; 体重: %s kg; price: %s; 来源: %s;", sex, penMap[cow.PenId].Name, strconv.FormatFloat(float64(data.Weight), 'f', 2, 64),
|
|
|
|
|
|
+ desc = fmt.Sprintf("性别: %s; 栏舍: %s; 体重: %s kg; 价格: %s; 来源: %s;", sex, penMap[cow.PenId].Name,
|
|
|
|
+ strconv.FormatFloat(float64(data.Weight), 'f', 2, 64),
|
|
strconv.FormatFloat(float64(data.Price), 'f', 2, 64), sourceMap[cow.SourceId])
|
|
strconv.FormatFloat(float64(data.Price), 'f', 2, 64), sourceMap[cow.SourceId])
|
|
case pasturePb.EventType_Transfer_Ben:
|
|
case pasturePb.EventType_Transfer_Ben:
|
|
data := req.(*model.EventTransferGroup)
|
|
data := req.(*model.EventTransferGroup)
|