正在显示
1 个修改的文件
包含
3 行增加
和
6 行删除
@@ -21,9 +21,6 @@ func NewNodeTaskRepository(transactionContext *pgTransaction.TransactionContext) | @@ -21,9 +21,6 @@ func NewNodeTaskRepository(transactionContext *pgTransaction.TransactionContext) | ||
21 | } | 21 | } |
22 | 22 | ||
23 | func (repo *NodeTaskRepository) TransformToDomain(m *models.NodeTask) domain.NodeTask { | 23 | func (repo *NodeTaskRepository) TransformToDomain(m *models.NodeTask) domain.NodeTask { |
24 | - timeStart := m.TimeStart.Local() | ||
25 | - timeEnd := m.TimeEnd.Local() | ||
26 | - nextSentAt := m.NextSentAt.Local() | ||
27 | return domain.NodeTask{ | 24 | return domain.NodeTask{ |
28 | Id: m.Id, | 25 | Id: m.Id, |
29 | CompanyId: m.CompanyId, | 26 | CompanyId: m.CompanyId, |
@@ -34,10 +31,10 @@ func (repo *NodeTaskRepository) TransformToDomain(m *models.NodeTask) domain.Nod | @@ -34,10 +31,10 @@ func (repo *NodeTaskRepository) TransformToDomain(m *models.NodeTask) domain.Nod | ||
34 | NodeName: m.NodeName, | 31 | NodeName: m.NodeName, |
35 | NodeDescribe: m.NodeDescribe, | 32 | NodeDescribe: m.NodeDescribe, |
36 | NodeSort: m.NodeSort, | 33 | NodeSort: m.NodeSort, |
37 | - TimeStart: &timeStart, | ||
38 | - TimeEnd: &timeEnd, | 34 | + TimeStart: m.TimeStart, |
35 | + TimeEnd: m.TimeEnd, | ||
39 | KpiCycle: m.KpiCycle, | 36 | KpiCycle: m.KpiCycle, |
40 | - NextSentAt: &nextSentAt, | 37 | + NextSentAt: m.NextSentAt, |
41 | CreatedAt: m.CreatedAt.Local(), | 38 | CreatedAt: m.CreatedAt.Local(), |
42 | UpdatedAt: m.UpdatedAt.Local(), | 39 | UpdatedAt: m.UpdatedAt.Local(), |
43 | DeletedAt: m.DeletedAt, | 40 | DeletedAt: m.DeletedAt, |
-
请 注册 或 登录 后发表评论