feat calculate-process添加createAt

This commit is contained in:
timerzz 2024-09-03 17:41:10 +08:00
parent 1ab4ecc594
commit ba2c9c779b

View File

@ -2,6 +2,7 @@ package utils
import ( import (
"strings" "strings"
"time"
v2 "gitea.timerzz.com/kedaya_haitao/common/structs/v2" v2 "gitea.timerzz.com/kedaya_haitao/common/structs/v2"
) )
@ -20,6 +21,7 @@ func CalculateProviderPrice(calculates []v2.CalculateProcess, env map[string]flo
} }
} }
p.CalMark = strings.Join(calculateStrings, "\n") p.CalMark = strings.Join(calculateStrings, "\n")
p.CreatedAt = time.Now()
return return
} }
@ -37,5 +39,6 @@ func CalculateSellerPrice(calculates []v2.CalculateProcess, env map[string]float
} }
} }
p.CalMark = strings.Join(calculateStrings, "\n") p.CalMark = strings.Join(calculateStrings, "\n")
p.CreatedAt = time.Now()
return return
} }