fuliqi
2025-01-13 21e470b11f8533ee74092a278a23dae42eaf4f93
监听器注入字段单位换为天
1个文件已修改
4 ■■■■ 已修改文件
business/src/main/java/com/ycl/task/FlowableTask.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
business/src/main/java/com/ycl/task/FlowableTask.java
@@ -76,8 +76,8 @@
            Integer yellowTime = processCoding.getYellowTime();
            Integer redTime = processCoding.getRedTime();
            if (startTime == null) continue;
//                long durationDay = (now.getTime() - startTime.getTime()) / (1000 * 60 * 60 * 24);
            long durationDay = (now.getTime() - startTime.getTime()) / (1000 * 60);
                long durationDay = (now.getTime() - startTime.getTime()) / (1000 * 60 * 60 * 24);
//            long durationDay = (now.getTime() - startTime.getTime()) / (1000 * 60);
            String status = GREEN; // 默认状态为绿色
            if (redTime != null && durationDay >= redTime) {
                status = RED; // 如果超过红色时间阈值,则状态为红色