mirror of
https://gitee.com/dromara/mayfly-go
synced 2026-05-06 02:55:19 +08:00
fix: sql执行记录根据关键词搜索问题修复等
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package base
|
||||
|
||||
import (
|
||||
"cmp"
|
||||
"context"
|
||||
"mayfly-go/pkg/contextx"
|
||||
"mayfly-go/pkg/gormx"
|
||||
@@ -310,7 +309,7 @@ func (br *RepoImpl[T]) getModelType() reflect.Type {
|
||||
// 从上下文获取登录账号信息,并赋值至实体
|
||||
func (br *RepoImpl[T]) fillBaseInfo(ctx context.Context, e T) T {
|
||||
// 默认使用数据库id策略, 若要改变则实体结构体自行覆盖FillBaseInfo方法。可参考 sys/entity.Resource
|
||||
e.FillBaseInfo(model.IdGenTypeNone, cmp.Or(contextx.GetLoginAccount(ctx), model.SysAccount))
|
||||
e.FillBaseInfo(model.IdGenTypeNone, contextx.GetLoginAccount(ctx))
|
||||
return e
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user