This commit is contained in:
wangliwen 2022-05-06 20:32:36 +08:00
parent 497a9b6d43
commit 4a94caddd3
1 changed files with 4 additions and 1 deletions

View File

@ -77,7 +77,10 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
// .orderByDesc("create_date") // .orderByDesc("create_date")
// .eq(StringUtils.isNotBlank(params.get("creator").toString()),"creator", params.get("creator").toString()) // .eq(StringUtils.isNotBlank(params.get("creator").toString()),"creator", params.get("creator").toString())
// .eq("del_flag", 0); // .eq("del_flag", 0);
wrapper.orderByDesc("create_date").eq("del_flag", params.get("del_flag") == null ? 0 : Integer.valueOf(params.get("del_flag").toString())); wrapper.orderByDesc("create_date");
if (!params.containsKey("creator")) {
wrapper.eq("del_flag", params.get("del_flag") == null ? 0 : Integer.valueOf(params.get("del_flag").toString()))
}
return wrapper; return wrapper;
} }