驾驶证,行驶证,从业资格证
改为到期前30天提醒并发消息到管理员账号,单个驾驶员账号也要收到自己证件到期的消息
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user