- 移除冗余的注释,提升代码可读性 - 简化日期范围判断条件,提高执行效率
@@ -223,7 +223,7 @@ public class TenurePersonListListPlugin extends AbstractListPlugin implements Pl
.filter(record -> {
Date startDate = record.getDate(MasConstant.STARTDATE);
Date endDate = record.getDate(MasConstant.ENDDATE);
- // 判断记录是否在当年范围内
+
return startDate != null && !startDate.after(endOfYear) &&
(endDate == null || !endDate.before(startOfYear));
})