feat calculate-process添加createAt
This commit is contained in:
parent
1ab4ecc594
commit
ba2c9c779b
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user