Compare commits

...

2 Commits

Author SHA1 Message Date
afaa25489d Merge remote-tracking branch 'origin/main' 2026-06-01 14:38:37 +08:00
9ada784a17 驾驶证,行驶证,从业资格证
改为到期前30天提醒并发消息到管理员账号,单个驾驶员账号也要收到自己证件到期的消息
2026-06-01 14:38:23 +08:00

View File

@@ -1084,13 +1084,13 @@ public class WorkbenchServiceImpl implements IWorkbenchService {
// } else {
boolean isLongTerm = d.getDriverLicenseLongTerm() != null && d.getDriverLicenseLongTerm() == 1L;
if (!isLongTerm && isDriver) {
checkDateRisk(dlRisks, convertDateToLocalDate(d.getDriverLicenseExpireDate()), "驾驶证: (" + name + ")", "驾驶证", "driver_license", 90, 1, driverId, null, linkBase + "1");
checkDateRisk(dlRisks, convertDateToLocalDate(d.getDriverLicenseExpireDate()), "驾驶证: (" + name + ")", "驾驶证", "driver_license", 30, 1, driverId, null, linkBase + "1");
}
// }
// 4. 从业资格证
if (d.getQualificationValidEndDate() != null) {
checkDateRisk(qualRisks, convertDateToLocalDate(d.getQualificationValidEndDate()), "从业资格证: (" + name + ")", "从业资格证", "qualification_certificate", 90, 1, driverId, null, linkBase + "1");
checkDateRisk(qualRisks, convertDateToLocalDate(d.getQualificationValidEndDate()), "从业资格证: (" + name + ")", "从业资格证", "qualification_certificate", 30, 1, driverId, null, linkBase + "1");
} else {
// 如果不是驾驶员(如押运员)且缺失,则预警
if (!isDriver) {