fix
This commit is contained in:
parent
692220b31b
commit
c5c0479c72
|
@ -5,7 +5,6 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"reflect"
|
"reflect"
|
||||||
|
|
||||||
"github.com/zeromicro/go-zero/core/logx"
|
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -82,7 +81,7 @@ func MetadataPATCH(tx *gorm.DB, module string, tableStructPointer any, updateMet
|
||||||
values = append(values, value...)
|
values = append(values, value...)
|
||||||
|
|
||||||
updatesql = fmt.Sprintf(updatesql, tx.NamingStrategy.TableName(stype.Name()), module, WhereKeysCond)
|
updatesql = fmt.Sprintf(updatesql, tx.NamingStrategy.TableName(stype.Name()), module, WhereKeysCond)
|
||||||
logx.Error(updatesql)
|
// logx.Error(updatesql)
|
||||||
err = tx.Exec(updatesql, values).Error
|
err = tx.Exec(updatesql, values).Error
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in New Issue
Block a user