feat:完善信息

This commit is contained in:
henry
2022-01-25 11:45:53 +08:00
parent 26b58e3ca6
commit 932ed31450
13 changed files with 169 additions and 45 deletions

View File

@ -21,7 +21,7 @@ type (
)
// Login 登录日志
func (c *Log) Login(name string, page, pageSize int) (*controller.ReturnPages, error) {
func (c *Log) Login(tenantID uint64, name string, page, pageSize int) (*controller.ReturnPages, error) {
mSysUserLoginLogs := model.NewSysUserLoginLog()
where := make([]*model2.ModelWhere, 0)
@ -29,6 +29,9 @@ func (c *Log) Login(name string, page, pageSize int) (*controller.ReturnPages, e
if c.TenantID > 0 {
where = append(where, model2.NewWhere("l.tenant_id", c.TenantID))
}
if tenantID > 0 {
where = append(where, model2.NewWhere("l.tenant_id", tenantID))
}
if name != "" {
where = append(where, model2.NewWhereLike("u.name", name))
}