|
@@ -8,9 +8,8 @@ import (
|
|
|
"time"
|
|
|
"tmr-watch/http/handle/restful"
|
|
|
"tmr-watch/models"
|
|
|
- "tmr-watch/pkg/logger/zaplog"
|
|
|
|
|
|
- "go.uber.org/zap"
|
|
|
+ // "tmr-watch/pkg/logger/zaplog"
|
|
|
|
|
|
operationPb "gitee.com/xuyiping_admin/go_proto/proto/go/backend/operation"
|
|
|
pasturePb "gitee.com/xuyiping_admin/go_proto/proto/go/backend/pasture"
|
|
@@ -36,7 +35,7 @@ func DistributeFeedFormula(feedTemplateList []*models.FeedTemplate) error {
|
|
|
feedFormulaDetail = append(feedFormulaDetail, f)
|
|
|
}
|
|
|
|
|
|
- zaplog.Info("feedFormulaDetail", zap.Any("feedFormulaDetail", feedFormulaDetail))
|
|
|
+ // zaplog.Info("feedFormulaDetail", zap.Any("feedFormulaDetail", feedFormulaDetail))
|
|
|
|
|
|
if _, err := tx.Table(new(models.FeedTemplateDetail)).Insert(feedFormulaDetail); err != nil {
|
|
|
return err
|
|
@@ -510,7 +509,7 @@ func FeedFormulaVersion(pastureId int64, req *models.FeedFormulaUpdateVersionReq
|
|
|
return err
|
|
|
}
|
|
|
|
|
|
- zaplog.Info("FeedFormulaVersion", zap.Any("req", req), zap.Any("pastureId", pastureId))
|
|
|
+ // zaplog.Info("FeedFormulaVersion", zap.Any("req", req), zap.Any("pastureId", pastureId))
|
|
|
feedDetailVersion := &models.FeedDetailVersion{
|
|
|
FeedTemplateId: req.FeedTemplateId,
|
|
|
PastureId: pastureId,
|
|
@@ -520,7 +519,7 @@ func FeedFormulaVersion(pastureId int64, req *models.FeedFormulaUpdateVersionReq
|
|
|
UpdatedAt: time.Now().Unix(),
|
|
|
}
|
|
|
|
|
|
- zaplog.Info("FeedFormulaVersion-Insert", zap.Any("feedDetailVersion", feedDetailVersion))
|
|
|
+ // zaplog.Info("FeedFormulaVersion-Insert", zap.Any("feedDetailVersion", feedDetailVersion))
|
|
|
if _, err := DbSession.Insert(feedDetailVersion); err != nil {
|
|
|
DbSession.Rollback()
|
|
|
return err
|
|
@@ -543,7 +542,7 @@ func FeedFormulaVersion(pastureId int64, req *models.FeedFormulaUpdateVersionReq
|
|
|
Sort: v.Sort,
|
|
|
})
|
|
|
}
|
|
|
- zaplog.Info("versionLogs-Insert", zap.Any("versionLogs", versionLogs))
|
|
|
+ // zaplog.Info("versionLogs-Insert", zap.Any("versionLogs", versionLogs))
|
|
|
if len(versionLogs) > 0 {
|
|
|
if _, err := DbSession.Table(new(models.FeedDetailVersionLog).TableName()).Insert(versionLogs); err != nil {
|
|
|
DbSession.Rollback()
|