mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-11-11 19:53:55 +08:00
发布v2.15.1版本,更新内容请查看:https://github.com/bufanyun/hotgo/blob/v2.0/docs/guide-zh-CN/start-update-log.md
This commit is contained in:
@@ -84,12 +84,14 @@ func (s *sSysDictData) List(ctx context.Context, in *sysin.DictDataListInp) (lis
|
||||
mod = mod.Where("type", in.Type)
|
||||
}
|
||||
|
||||
// 访问路径
|
||||
if in.Value != "" {
|
||||
mod = mod.Where("value", in.Value)
|
||||
}
|
||||
|
||||
if in.Label != "" {
|
||||
mod = mod.WhereLike("label", "%"+in.Label+"%")
|
||||
}
|
||||
|
||||
// 请求方式
|
||||
if in.Status > 0 {
|
||||
mod = mod.Where("status", in.Status)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user