refactor(oa): 优化绩效报告服务中的逾期步骤过滤逻辑
- 移除未使用的当前时间变量声明 - 简化逾期步骤过滤的日期比较逻辑 - 提升代码可读性和维护性
This commit is contained in:
@@ -108,7 +108,6 @@ public class PerformanceReportServiceImpl implements IPerformanceReportService {
|
||||
// 2)若已完成(actualEnd 不为空),则 actualEnd > planEnd 视为“逾期完成”
|
||||
// 3)若未完成(actualEnd 为空),则当前时间 now > planEnd 视为“正在逾期”
|
||||
// 说明:mySteps 已经限定在本次查询时间范围内
|
||||
Date now = new Date();
|
||||
List<OaProjectScheduleStepVo> delayedSteps = mySteps.stream()
|
||||
.filter(s -> {
|
||||
Date planEnd = s.getPlanEnd();
|
||||
|
||||
Reference in New Issue
Block a user