|
@@ -3,6 +3,9 @@ package models
|
|
|
import (
|
|
|
"fmt"
|
|
|
"time"
|
|
|
+ "tmr-watch/pkg/logger/zaplog"
|
|
|
+
|
|
|
+ "go.uber.org/zap"
|
|
|
|
|
|
operationPb "gitee.com/xuyiping_admin/go_proto/proto/go/backend/operation"
|
|
|
|
|
@@ -46,6 +49,11 @@ func (f *FeedTemplate) TableName() string {
|
|
|
}
|
|
|
|
|
|
func NewFeedTemplateByGroup(req *operationPb.DistributeFeedRequest) *FeedTemplate {
|
|
|
+ zaplog.Info("NewFeedTemplateByGroup",
|
|
|
+ zap.Any("PastureId-int64", int64(req.PastureDataId)),
|
|
|
+ zap.Any("PastureId", req.PastureDataId),
|
|
|
+ zap.Any("req", req),
|
|
|
+ )
|
|
|
res := &FeedTemplate{
|
|
|
PastureId: int64(req.PastureId),
|
|
|
TCode: req.EncodeNumber,
|