Commit 1e19ae5a by zhengqiuyun86

float精度计算

parent 02917d07
......@@ -109,7 +109,8 @@ func Init() {
var err error
customerDb, err = gorm.Open(mysql.Open(fmt.Sprintf("%s:%s@tcp(%s:%d)/%s?charset=utf8mb4&parseTime=True&loc=Local",
conf.MySql.User, conf.MySql.Password, conf.MySql.Host, conf.MySql.Port, conf.MySql.NameSpace)), &gorm.Config{
Logger: newLogger,
PrepareStmt: true,
Logger: newLogger,
})
if err != nil {
log.Error(fmt.Sprintf("%s connect error:%s", "Mysql server", err.Error()))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment