|
@@ -285,14 +285,13 @@ func (this *ImageController) ImageList() {
|
|
|
if KeyWord != "" {
|
|
|
condition += " AND img_name like '%" + KeyWord + "%'"
|
|
|
}
|
|
|
- var permissionPars []interface{}
|
|
|
if permissionIds != "" {
|
|
|
permissionArr := strings.Split(permissionIds, ",")
|
|
|
for _, permissionId := range permissionArr {
|
|
|
perId, _ := strconv.Atoi(permissionId)
|
|
|
- permissionPars = append(permissionPars, perId)
|
|
|
+ pars = append(pars, perId)
|
|
|
}
|
|
|
- condition += " AND permission_id in (" + utils.GetOrmReplaceHolder(len(permissionPars)) + ")"
|
|
|
+ condition += " AND permission_id in (" + utils.GetOrmReplaceHolder(len(pars)) + ")"
|
|
|
}
|
|
|
|
|
|
sortCondition := " ORDER BY created_time "
|