作者 tangxvhui

调试

1 package repository 1 package repository
2 2
3 import ( 3 import (
4 - "time"  
5 -  
6 pgTransaction "github.com/linmadan/egglib-go/transaction/pg" 4 pgTransaction "github.com/linmadan/egglib-go/transaction/pg"
7 "gitlab.fjmaimaimai.com/allied-creation/performance/pkg/domain" 5 "gitlab.fjmaimaimai.com/allied-creation/performance/pkg/domain"
8 "gitlab.fjmaimaimai.com/allied-creation/performance/pkg/infrastructure/pg/models" 6 "gitlab.fjmaimaimai.com/allied-creation/performance/pkg/infrastructure/pg/models"
@@ -30,7 +28,7 @@ func (repo *LogSmsRepository) Save(param *domain.LogSms) error { @@ -30,7 +28,7 @@ func (repo *LogSmsRepository) Save(param *domain.LogSms) error {
30 Status: string(param.Status), 28 Status: string(param.Status),
31 From: param.From, 29 From: param.From,
32 Index: param.Index, 30 Index: param.Index,
33 - ExecuteAt: time.Time{}, 31 + ExecuteAt: param.ExecuteAt,
34 } 32 }
35 tx := repo.transactionContext.PgTx 33 tx := repo.transactionContext.PgTx
36 _, err := tx.Model(&m).Insert() 34 _, err := tx.Model(&m).Insert()