This commit is contained in:
eson 2023-09-08 19:02:37 +08:00
parent 692220b31b
commit c5c0479c72

View File

@ -5,7 +5,6 @@ import (
"fmt"
"reflect"
"github.com/zeromicro/go-zero/core/logx"
"gorm.io/gorm"
)
@ -82,7 +81,7 @@ func MetadataPATCH(tx *gorm.DB, module string, tableStructPointer any, updateMet
values = append(values, value...)
updatesql = fmt.Sprintf(updatesql, tx.NamingStrategy.TableName(stype.Name()), module, WhereKeysCond)
logx.Error(updatesql)
// logx.Error(updatesql)
err = tx.Exec(updatesql, values).Error
if err != nil {
return err