前台接口控制是否显示优化

main
王宇航 2024-08-07 11:35:19 +08:00
parent f265d2b379
commit 6c33a9d1cf
4 changed files with 4 additions and 4 deletions

View File

@ -49,7 +49,7 @@ public class BannerFrontServiceImpl implements IBannerFrontService {
Integer limit = pageValidate.getPageSize();
QueryWrapper<BannerFront> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("is_delete", 0);
queryWrapper.eq("is_delete", 0).eq("is_show", 1);
queryWrapper.orderByDesc(Arrays.asList("sort", "id"));
bannerFrontMapper.setSearch(queryWrapper, searchValidate, new String[]{

View File

@ -49,7 +49,7 @@ public class BannerServiceImpl implements IBannerService {
Integer limit = pageValidate.getPageSize();
QueryWrapper<Banner> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("is_delete", 0);
queryWrapper.eq("is_delete", 0).eq("is_show", 1);
queryWrapper.orderByDesc(Arrays.asList("sort", "id"));
bannerMapper.setSearch(queryWrapper, searchValidate, new String[]{

View File

@ -48,7 +48,7 @@ public class CaseServiceImpl implements ICaseService {
Integer limit = pageValidate.getPageSize();
QueryWrapper<Case> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("is_delete", 0);
queryWrapper.eq("is_delete", 0).eq("is_show", 1);
queryWrapper.orderByDesc(Arrays.asList("sort", "id"));
caseMapper.setSearch(queryWrapper, searchValidate, new String[]{

View File

@ -47,7 +47,7 @@ public class ContactServiceImpl implements IContactService {
Integer limit = pageValidate.getPageSize();
QueryWrapper<Contact> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("is_delete", 0);
queryWrapper.eq("is_delete", 0).eq("is_show", 1);
queryWrapper.orderByDesc(Arrays.asList("sort", "id"));
contactMapper.setSearch(queryWrapper, searchValidate, new String[]{