部门统计bug修复

This commit is contained in:
wanghao
2026-01-08 15:19:46 +08:00
parent 7362ca6b8a
commit 464abc6521
@@ -108,6 +108,7 @@ public class DeptStatisticDataServiceImpl extends ServiceImpl<DeptStatisticDataM
private WatchMonitorDataMapper watchMonitorDataMapper;
@Autowired
private AsyncTaskExecutor asyncTaskExecutor;
//删除临时文件
public static void delLocalFile(File file) {
String resourceFileName = file.getName();
@@ -808,8 +809,9 @@ public class DeptStatisticDataServiceImpl extends ServiceImpl<DeptStatisticDataM
}
private int departComparator(SysDepart d1, SysDepart d2) {
Integer order1 = d1.getDepartOrder();
Integer order2 = d2.getDepartOrder();
Integer order1 = null != d1 ? d1.getDepartOrder() : null;
Integer order2 = null != d2 ? d2.getDepartOrder() : null;
if (ObjectUtil.isNull(order1) && ObjectUtil.isNull(order2)) {
return 0;
}