权限判断完善

This commit is contained in:
yxh
2020-11-11 17:03:37 +08:00
parent f5708f4e2e
commit 1398c662fb
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -121,7 +121,7 @@ func SelectListByPage(req *SelectPageReq) (total, page int, list []*Entity, err
model = model.Where("config_name like ?", "%"+req.ConfigName+"%")
}
if req.ConfigType != "" {
model = model.Where("status = ", gconv.Int(req.ConfigType))
model = model.Where("config_type = ", gconv.Int(req.ConfigType))
}
if req.ConfigKey != "" {
model = model.Where("config_key like ?", "%"+req.ConfigKey+"%")