...
|
...
|
@@ -4,6 +4,7 @@ import ( |
|
|
"fmt"
|
|
|
"github.com/linmadan/egglib-go/utils/xtime"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/character-library-metadata-bastion/pkg/infrastructure/utils"
|
|
|
"strconv"
|
|
|
"strings"
|
|
|
)
|
|
|
|
...
|
...
|
@@ -244,6 +245,13 @@ func ToFieldData(fields []*Field, data [][]string, byName bool, configs ...bool) |
|
|
|
|
|
// RoundFieldValue 字段值精度处理
|
|
|
func RoundFieldValue(f *Field, v string) string {
|
|
|
if f.SQLType == Float.ToString() {
|
|
|
fv, err := strconv.ParseFloat(v, 64)
|
|
|
if err != nil {
|
|
|
return v
|
|
|
}
|
|
|
return fmt.Sprintf("%v", fv)
|
|
|
}
|
|
|
return v
|
|
|
//if f.SQLType != DECIMALV2.ToString() {
|
|
|
// return v
|
...
|
...
|
|