整体调整

This commit is contained in:
liupopo
2023-03-01 17:09:41 +08:00
parent d46da55237
commit 5a52e5de04
35 changed files with 292 additions and 126 deletions

View File

@@ -42,7 +42,13 @@ public class CmsSubjectController {
@RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize
) {
try {
return new CommonResult().success(ICmsSubjectService.page(new Page<CmsSubject>(pageNum, pageSize), new QueryWrapper<>(entity).select(ConstansValue.sampleSubjectList)));
String title = entity.getTitle();
if (ValidatorUtils.notEmpty(title)) {
entity.setTitle(null);
return new CommonResult().success(ICmsSubjectService.page(new Page<CmsSubject>(pageNum, pageSize), new QueryWrapper<>(entity).like("title", title).select(ConstansValue.sampleSubjectList)));
}else {
return new CommonResult().success(ICmsSubjectService.page(new Page<CmsSubject>(pageNum, pageSize), new QueryWrapper<>(entity).select(ConstansValue.sampleSubjectList)));
}
} catch (Exception e) {
log.error("根据条件查询所有专题表列表:%s", e.getMessage(), e);
}