|
@@ -14,7 +14,7 @@ type EventTransferGroup struct {
|
|
|
PenOutId int32 `json:"penOutId"`
|
|
|
DayAge int32 `json:"dayAge"`
|
|
|
Lact int32 `json:"lact"`
|
|
|
- TransferDate string `json:"transferDate"`
|
|
|
+ TransferDate int64 `json:"transferDate"`
|
|
|
TransferReasonId int64 `json:"transferReasonId"`
|
|
|
TransferReasonName string `json:"TransferReasonName"`
|
|
|
Remarks string `json:"remarks"`
|
|
@@ -38,7 +38,7 @@ func NewEventTransferGroup(pastureId int64, cow *Cow, req *pasturePb.TransferGro
|
|
|
PenOutId: cow.PenId,
|
|
|
Lact: cow.Lact,
|
|
|
DayAge: cow.GetEventDayAge(eventAt),
|
|
|
- TransferDate: req.TransferDate,
|
|
|
+ TransferDate: eventAt,
|
|
|
TransferReasonId: int64(req.TransferReasonId),
|
|
|
TransferReasonName: transferPenMap[req.TransferReasonId],
|
|
|
Remarks: req.Remarks,
|