mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-10-12 04:53:47 +08:00
模块化上传驱动,使用泛型优化工具库降低冗余
This commit is contained in:
@@ -223,8 +223,8 @@ func (s *sAdminDept) List(ctx context.Context, in adminin.DeptListInp) (res *adm
|
||||
}
|
||||
|
||||
if len(ids) > 0 {
|
||||
ids = convert.UniqueSliceInt64(ids)
|
||||
pids = convert.UniqueSliceInt64(pids)
|
||||
ids = convert.UniqueSlice(ids)
|
||||
pids = convert.UniqueSlice(pids)
|
||||
mod = mod.Wheref(`id in (?) or pid in (?)`, ids, pids)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user