|
@@ -73,7 +73,7 @@ func NewFeedTemplateByGroup(pastureId int64, req *operationPb.DistributeFeedRequ
|
|
|
PastureId: pastureId,
|
|
|
FId: int64(v.ForageId),
|
|
|
FName: v.ForageName,
|
|
|
- FWeight: float64(v.Weight / 100),
|
|
|
+ FWeight: float64(v.Weight),
|
|
|
IsLockCount: v.IsLockCowCountRatio,
|
|
|
Sort: v.Sort,
|
|
|
FeedGroup: v.ForageGroupName,
|
|
@@ -83,6 +83,7 @@ func NewFeedTemplateByGroup(pastureId int64, req *operationPb.DistributeFeedRequ
|
|
|
SplitFtPreId: 0,
|
|
|
Deviation: v.AllowError,
|
|
|
IsModify: int32(v.IsModify),
|
|
|
+ IsShow: int32(operationPb.IsShow_OK),
|
|
|
})
|
|
|
}
|
|
|
return res
|