正在显示
15 个修改的文件
包含
15 行增加
和
0 行删除
@@ -54,5 +54,6 @@ func (contractUndertakerFeedback *ContractUndertakerFeedback) Update(data map[st | @@ -54,5 +54,6 @@ func (contractUndertakerFeedback *ContractUndertakerFeedback) Update(data map[st | ||
54 | if cooperationContractNumber, ok := data["cooperationContractNumber"]; ok { | 54 | if cooperationContractNumber, ok := data["cooperationContractNumber"]; ok { |
55 | contractUndertakerFeedback.CooperationContractNumber = cooperationContractNumber.(string) | 55 | contractUndertakerFeedback.CooperationContractNumber = cooperationContractNumber.(string) |
56 | } | 56 | } |
57 | + contractUndertakerFeedback.UpdatedAt = time.Now() | ||
57 | return nil | 58 | return nil |
58 | } | 59 | } |
@@ -75,5 +75,6 @@ func (cooperationApplication *CooperationApplication) Update(data map[string]int | @@ -75,5 +75,6 @@ func (cooperationApplication *CooperationApplication) Update(data map[string]int | ||
75 | if cooperationApplyTime, ok := data["cooperationApplyTime"]; ok { | 75 | if cooperationApplyTime, ok := data["cooperationApplyTime"]; ok { |
76 | cooperationApplication.CooperationApplyTime = cooperationApplyTime.(time.Time) | 76 | cooperationApplication.CooperationApplyTime = cooperationApplyTime.(time.Time) |
77 | } | 77 | } |
78 | + cooperationApplication.UpdatedAt = time.Now() | ||
78 | return nil | 79 | return nil |
79 | } | 80 | } |
@@ -121,6 +121,7 @@ func (cooperationContract *CooperationContract) Update(data map[string]interface | @@ -121,6 +121,7 @@ func (cooperationContract *CooperationContract) Update(data map[string]interface | ||
121 | if operateTime, ok := data["operateTime"]; ok { | 121 | if operateTime, ok := data["operateTime"]; ok { |
122 | cooperationContract.OperateTime = operateTime.(time.Time) | 122 | cooperationContract.OperateTime = operateTime.(time.Time) |
123 | } | 123 | } |
124 | + cooperationContract.UpdatedAt = time.Now() | ||
124 | return nil | 125 | return nil |
125 | } | 126 | } |
126 | 127 |
@@ -68,5 +68,6 @@ func (cooperationContractChangeLog *CooperationContractChangeLog) Update(data ma | @@ -68,5 +68,6 @@ func (cooperationContractChangeLog *CooperationContractChangeLog) Update(data ma | ||
68 | if undertakers, ok := data["undertakers"]; ok { | 68 | if undertakers, ok := data["undertakers"]; ok { |
69 | cooperationContractChangeLog.Undertakers = undertakers.(string) | 69 | cooperationContractChangeLog.Undertakers = undertakers.(string) |
70 | } | 70 | } |
71 | + cooperationContractChangeLog.UpdatedAt = time.Now() | ||
71 | return nil | 72 | return nil |
72 | } | 73 | } |
@@ -81,5 +81,6 @@ func (cooperationContractRelevant *CooperationContractRelevant) Update(data map[ | @@ -81,5 +81,6 @@ func (cooperationContractRelevant *CooperationContractRelevant) Update(data map[ | ||
81 | if status, ok := data["status"]; ok { | 81 | if status, ok := data["status"]; ok { |
82 | cooperationContractRelevant.Relevant.Status = status.(int32) | 82 | cooperationContractRelevant.Relevant.Status = status.(int32) |
83 | } | 83 | } |
84 | + cooperationContractRelevant.UpdatedAt = time.Now() | ||
84 | return nil | 85 | return nil |
85 | } | 86 | } |
@@ -44,5 +44,6 @@ func (cooperationContractUndertaker *CooperationContractUndertaker) Update(data | @@ -44,5 +44,6 @@ func (cooperationContractUndertaker *CooperationContractUndertaker) Update(data | ||
44 | if userBaseId, ok := data["userBaseId"]; ok { | 44 | if userBaseId, ok := data["userBaseId"]; ok { |
45 | cooperationContractUndertaker.Undertaker.UserBaseId = userBaseId.(int64) | 45 | cooperationContractUndertaker.Undertaker.UserBaseId = userBaseId.(int64) |
46 | } | 46 | } |
47 | + cooperationContractUndertaker.UpdatedAt = time.Now() | ||
47 | return nil | 48 | return nil |
48 | } | 49 | } |
@@ -55,5 +55,6 @@ func (cooperationMode *CooperationMode) Update(data map[string]interface{}) erro | @@ -55,5 +55,6 @@ func (cooperationMode *CooperationMode) Update(data map[string]interface{}) erro | ||
55 | if remarks, ok := data["remarks"]; ok { | 55 | if remarks, ok := data["remarks"]; ok { |
56 | cooperationMode.Remarks = remarks.(string) | 56 | cooperationMode.Remarks = remarks.(string) |
57 | } | 57 | } |
58 | + cooperationMode.UpdatedAt = time.Now() | ||
58 | return nil | 59 | return nil |
59 | } | 60 | } |
@@ -86,5 +86,6 @@ func (cooperationProject *CooperationProject) Update(data map[string]interface{} | @@ -86,5 +86,6 @@ func (cooperationProject *CooperationProject) Update(data map[string]interface{} | ||
86 | if attachment, ok := data["attachment"]; ok { | 86 | if attachment, ok := data["attachment"]; ok { |
87 | cooperationProject.Attachment = attachment.([]*Attachment) | 87 | cooperationProject.Attachment = attachment.([]*Attachment) |
88 | } | 88 | } |
89 | + cooperationProject.UpdatedAt = time.Now() | ||
89 | return nil | 90 | return nil |
90 | } | 91 | } |
@@ -85,6 +85,7 @@ func (creditAccount *CreditAccount) Update(data map[string]interface{}) error { | @@ -85,6 +85,7 @@ func (creditAccount *CreditAccount) Update(data map[string]interface{}) error { | ||
85 | if actuallyPaidAmount, ok := data["actuallyPaidAmount"]; ok { | 85 | if actuallyPaidAmount, ok := data["actuallyPaidAmount"]; ok { |
86 | creditAccount.ActuallyPaidAmount = actuallyPaidAmount.(float64) | 86 | creditAccount.ActuallyPaidAmount = actuallyPaidAmount.(float64) |
87 | } | 87 | } |
88 | + creditAccount.UpdatedAt = time.Now() | ||
88 | return nil | 89 | return nil |
89 | } | 90 | } |
90 | 91 |
@@ -113,5 +113,6 @@ func (dividendsEstimate *DividendsEstimate) Update(data map[string]interface{}) | @@ -113,5 +113,6 @@ func (dividendsEstimate *DividendsEstimate) Update(data map[string]interface{}) | ||
113 | if isCanceled, ok := data["isCanceled"]; ok { | 113 | if isCanceled, ok := data["isCanceled"]; ok { |
114 | dividendsEstimate.IsCanceled = isCanceled.(bool) | 114 | dividendsEstimate.IsCanceled = isCanceled.(bool) |
115 | } | 115 | } |
116 | + dividendsEstimate.UpdatedAt = time.Now() | ||
116 | return nil | 117 | return nil |
117 | } | 118 | } |
@@ -77,5 +77,6 @@ func (dividendsIncentivesRule *DividendsIncentivesRule) Update(data map[string]i | @@ -77,5 +77,6 @@ func (dividendsIncentivesRule *DividendsIncentivesRule) Update(data map[string]i | ||
77 | if dividendsIncentivesStageStart, ok := data["dividendsIncentivesStageStart"]; ok { | 77 | if dividendsIncentivesStageStart, ok := data["dividendsIncentivesStageStart"]; ok { |
78 | dividendsIncentivesRule.DividendsIncentivesStageStart = dividendsIncentivesStageStart.(time.Time) | 78 | dividendsIncentivesRule.DividendsIncentivesStageStart = dividendsIncentivesStageStart.(time.Time) |
79 | } | 79 | } |
80 | + dividendsIncentivesRule.UpdatedAt = time.Now() | ||
80 | return nil | 81 | return nil |
81 | } | 82 | } |
@@ -106,5 +106,6 @@ func (dividendsOrder *DividendsOrder) Update(data map[string]interface{}) error | @@ -106,5 +106,6 @@ func (dividendsOrder *DividendsOrder) Update(data map[string]interface{}) error | ||
106 | if customerName, ok := data["customerName"]; ok { | 106 | if customerName, ok := data["customerName"]; ok { |
107 | dividendsOrder.CustomerName = customerName.(string) | 107 | dividendsOrder.CustomerName = customerName.(string) |
108 | } | 108 | } |
109 | + dividendsOrder.UpdatedAt = time.Now() | ||
109 | return nil | 110 | return nil |
110 | } | 111 | } |
@@ -97,5 +97,6 @@ func (dividendsReturnedOrder *DividendsReturnedOrder) Update(data map[string]int | @@ -97,5 +97,6 @@ func (dividendsReturnedOrder *DividendsReturnedOrder) Update(data map[string]int | ||
97 | if dividendTime, ok := data["dividendTime"]; ok { | 97 | if dividendTime, ok := data["dividendTime"]; ok { |
98 | dividendsReturnedOrder.DividendTime = dividendTime.(time.Time) | 98 | dividendsReturnedOrder.DividendTime = dividendTime.(time.Time) |
99 | } | 99 | } |
100 | + dividendsReturnedOrder.UpdatedAt = time.Now() | ||
100 | return nil | 101 | return nil |
101 | } | 102 | } |
@@ -82,5 +82,6 @@ func (moneyIncentivesRule *MoneyIncentivesRule) Update(data map[string]interface | @@ -82,5 +82,6 @@ func (moneyIncentivesRule *MoneyIncentivesRule) Update(data map[string]interface | ||
82 | if salesmanPercentage, ok := data["salesmanPercentage"]; ok { | 82 | if salesmanPercentage, ok := data["salesmanPercentage"]; ok { |
83 | moneyIncentivesRule.SalesmanPercentage = salesmanPercentage.(float64) | 83 | moneyIncentivesRule.SalesmanPercentage = salesmanPercentage.(float64) |
84 | } | 84 | } |
85 | + moneyIncentivesRule.UpdatedAt = time.Now() | ||
85 | return nil | 86 | return nil |
86 | } | 87 | } |
@@ -75,5 +75,6 @@ func (orderGood *OrderGood) Update(data map[string]interface{}) error { | @@ -75,5 +75,6 @@ func (orderGood *OrderGood) Update(data map[string]interface{}) error { | ||
75 | if orderGoodExpense, ok := data["orderGoodExpense"]; ok { | 75 | if orderGoodExpense, ok := data["orderGoodExpense"]; ok { |
76 | orderGood.OrderGoodExpense = orderGoodExpense.(float64) | 76 | orderGood.OrderGoodExpense = orderGoodExpense.(float64) |
77 | } | 77 | } |
78 | + orderGood.UpdatedAt = time.Now() | ||
78 | return nil | 79 | return nil |
79 | } | 80 | } |
-
请 注册 或 登录 后发表评论