fix:增加排序

This commit is contained in:
nieziyan 2024-04-11 14:51:57 +08:00
parent 14e64306b2
commit d5b18e57b5

View File

@ -44,6 +44,7 @@ public class GardsAlertSystemServiceImpl extends ServiceImpl<GardsAlertSystemMap
String code = alertSystemVo.getCode();
String content = alertSystemVo.getContent();
LambdaQueryWrapper<GardsAlertSystem> wrapper = new LambdaQueryWrapper<>();
wrapper.orderByAsc(GardsAlertSystem::getCode);
wrapper.like(StrUtil.isNotBlank(code), GardsAlertSystem::getCode, code);
wrapper.like(StrUtil.isNotBlank(content), GardsAlertSystem::getContent, content);
page = this.page(page, wrapper);