作者 陈志颖

fix:补充更新时间字段

... ... @@ -54,5 +54,6 @@ func (contractUndertakerFeedback *ContractUndertakerFeedback) Update(data map[st
if cooperationContractNumber, ok := data["cooperationContractNumber"]; ok {
contractUndertakerFeedback.CooperationContractNumber = cooperationContractNumber.(string)
}
contractUndertakerFeedback.UpdatedAt = time.Now()
return nil
}
... ...
... ... @@ -75,5 +75,6 @@ func (cooperationApplication *CooperationApplication) Update(data map[string]int
if cooperationApplyTime, ok := data["cooperationApplyTime"]; ok {
cooperationApplication.CooperationApplyTime = cooperationApplyTime.(time.Time)
}
cooperationApplication.UpdatedAt = time.Now()
return nil
}
... ...
... ... @@ -121,6 +121,7 @@ func (cooperationContract *CooperationContract) Update(data map[string]interface
if operateTime, ok := data["operateTime"]; ok {
cooperationContract.OperateTime = operateTime.(time.Time)
}
cooperationContract.UpdatedAt = time.Now()
return nil
}
... ...
... ... @@ -68,5 +68,6 @@ func (cooperationContractChangeLog *CooperationContractChangeLog) Update(data ma
if undertakers, ok := data["undertakers"]; ok {
cooperationContractChangeLog.Undertakers = undertakers.(string)
}
cooperationContractChangeLog.UpdatedAt = time.Now()
return nil
}
... ...
... ... @@ -81,5 +81,6 @@ func (cooperationContractRelevant *CooperationContractRelevant) Update(data map[
if status, ok := data["status"]; ok {
cooperationContractRelevant.Relevant.Status = status.(int32)
}
cooperationContractRelevant.UpdatedAt = time.Now()
return nil
}
... ...
... ... @@ -44,5 +44,6 @@ func (cooperationContractUndertaker *CooperationContractUndertaker) Update(data
if userBaseId, ok := data["userBaseId"]; ok {
cooperationContractUndertaker.Undertaker.UserBaseId = userBaseId.(int64)
}
cooperationContractUndertaker.UpdatedAt = time.Now()
return nil
}
... ...
... ... @@ -55,5 +55,6 @@ func (cooperationMode *CooperationMode) Update(data map[string]interface{}) erro
if remarks, ok := data["remarks"]; ok {
cooperationMode.Remarks = remarks.(string)
}
cooperationMode.UpdatedAt = time.Now()
return nil
}
... ...
... ... @@ -86,5 +86,6 @@ func (cooperationProject *CooperationProject) Update(data map[string]interface{}
if attachment, ok := data["attachment"]; ok {
cooperationProject.Attachment = attachment.([]*Attachment)
}
cooperationProject.UpdatedAt = time.Now()
return nil
}
... ...
... ... @@ -85,6 +85,7 @@ func (creditAccount *CreditAccount) Update(data map[string]interface{}) error {
if actuallyPaidAmount, ok := data["actuallyPaidAmount"]; ok {
creditAccount.ActuallyPaidAmount = actuallyPaidAmount.(float64)
}
creditAccount.UpdatedAt = time.Now()
return nil
}
... ...
... ... @@ -113,5 +113,6 @@ func (dividendsEstimate *DividendsEstimate) Update(data map[string]interface{})
if isCanceled, ok := data["isCanceled"]; ok {
dividendsEstimate.IsCanceled = isCanceled.(bool)
}
dividendsEstimate.UpdatedAt = time.Now()
return nil
}
... ...
... ... @@ -77,5 +77,6 @@ func (dividendsIncentivesRule *DividendsIncentivesRule) Update(data map[string]i
if dividendsIncentivesStageStart, ok := data["dividendsIncentivesStageStart"]; ok {
dividendsIncentivesRule.DividendsIncentivesStageStart = dividendsIncentivesStageStart.(time.Time)
}
dividendsIncentivesRule.UpdatedAt = time.Now()
return nil
}
... ...
... ... @@ -106,5 +106,6 @@ func (dividendsOrder *DividendsOrder) Update(data map[string]interface{}) error
if customerName, ok := data["customerName"]; ok {
dividendsOrder.CustomerName = customerName.(string)
}
dividendsOrder.UpdatedAt = time.Now()
return nil
}
... ...
... ... @@ -97,5 +97,6 @@ func (dividendsReturnedOrder *DividendsReturnedOrder) Update(data map[string]int
if dividendTime, ok := data["dividendTime"]; ok {
dividendsReturnedOrder.DividendTime = dividendTime.(time.Time)
}
dividendsReturnedOrder.UpdatedAt = time.Now()
return nil
}
... ...
... ... @@ -82,5 +82,6 @@ func (moneyIncentivesRule *MoneyIncentivesRule) Update(data map[string]interface
if salesmanPercentage, ok := data["salesmanPercentage"]; ok {
moneyIncentivesRule.SalesmanPercentage = salesmanPercentage.(float64)
}
moneyIncentivesRule.UpdatedAt = time.Now()
return nil
}
... ...
... ... @@ -75,5 +75,6 @@ func (orderGood *OrderGood) Update(data map[string]interface{}) error {
if orderGoodExpense, ok := data["orderGoodExpense"]; ok {
orderGood.OrderGoodExpense = orderGoodExpense.(float64)
}
orderGood.UpdatedAt = time.Now()
return nil
}
... ...