money 类型转换错误

This commit is contained in:
Sany
2020-05-29 15:41:37 +08:00
committed by GitHub
parent 269378aa0d
commit 2d3b32c94a

View File

@ -51,8 +51,7 @@ func (c *Core) convertValue(fieldValue []byte, fieldType string) interface{} {
case
"big_int",
"bigint",
"bigserial",
"money":
"bigserial":
if gstr.ContainsI(fieldType, "unsigned") {
gconv.Uint64(string(fieldValue))
}
@ -65,6 +64,7 @@ func (c *Core) convertValue(fieldValue []byte, fieldType string) interface{} {
"float",
"double",
"decimal",
"money",
"numeric":
return gconv.Float64(string(fieldValue))