Parcourir la source

20230815-细节优化

iaun il y a 3 ans
Parent
commit
0da7bef076

+ 3 - 1
src/main/java/cn/iaun/it/service/impl/ItMonitorServiceImpl.java

@@ -101,7 +101,9 @@ public class ItMonitorServiceImpl implements ItMonitorService {
 
     @Override
     public List<ItMonitorTemplate> getAllTemplate() {
-        return itMonitorTemplateMapper.selectList(null);
+        QueryWrapper<ItMonitorTemplate> queryWrapper = new QueryWrapper<>();
+        queryWrapper.orderByDesc("template_id");
+        return itMonitorTemplateMapper.selectList(queryWrapper);
     }
 
     @Override