|
@@ -211,6 +211,9 @@ public class PublishTaskInfoServiceImpl extends ServiceImpl<PublishTaskInfoMappe
|
|
|
int result1 = driverInfo.getCardValidityDate().compareTo(date);
|
|
|
if (result1 < 0) {
|
|
|
driverInfo.setOverdueFlag("1");
|
|
|
+ driverInfo.setAuthenticationStatus(StatusEnum.IDENTITY_OVERDUE.getName());
|
|
|
+ driverInfo.setAuthenticationStatusKey(StatusEnum.IDENTITY_OVERDUE.getFlag());
|
|
|
+ driverInfoService.updateById(driverInfo);
|
|
|
}
|
|
|
//身份证到期前10天
|
|
|
int result110 = driverInfo.getCardValidityDate().compareTo(sdate10);
|
|
@@ -241,6 +244,9 @@ public class PublishTaskInfoServiceImpl extends ServiceImpl<PublishTaskInfoMappe
|
|
|
int result2 = driverInfo.getDriverLicenseValidityDate().compareTo(date1);
|
|
|
if (result2 < 0) {
|
|
|
driverInfo.setDriverOverdueFlag("1");
|
|
|
+ driverInfo.setAuthenticationStatus(StatusEnum.IDENTITY_OVERDUE.getName());
|
|
|
+ driverInfo.setAuthenticationStatusKey(StatusEnum.IDENTITY_OVERDUE.getFlag());
|
|
|
+ driverInfoService.updateById(driverInfo);
|
|
|
}//驾驶证到期前10天
|
|
|
int result210 = driverInfo.getDriverLicenseValidityDate().compareTo(date10);
|
|
|
if (result210 == 0) {
|
|
@@ -269,6 +275,9 @@ public class PublishTaskInfoServiceImpl extends ServiceImpl<PublishTaskInfoMappe
|
|
|
int result3 = driverInfo.getDrivingLicenseValidityDate().compareTo(date1);
|
|
|
if (result3 < 0) {
|
|
|
driverInfo.setDrivingOverdueFlag("1");
|
|
|
+ driverInfo.setAuthenticationStatus(StatusEnum.IDENTITY_OVERDUE.getName());
|
|
|
+ driverInfo.setAuthenticationStatusKey(StatusEnum.IDENTITY_OVERDUE.getFlag());
|
|
|
+ driverInfoService.updateById(driverInfo);
|
|
|
}
|
|
|
//行驶证到期前10天
|
|
|
int result310 = driverInfo.getDrivingLicenseValidityDate().compareTo(date10);
|
|
@@ -298,6 +307,9 @@ public class PublishTaskInfoServiceImpl extends ServiceImpl<PublishTaskInfoMappe
|
|
|
int result4 = driverInfo.getTrailerLicenseValidityDate().compareTo(date1);
|
|
|
if (result4 < 0) {
|
|
|
driverInfo.setTrailerOverdueFlag("1");
|
|
|
+ driverInfo.setAuthenticationStatus(StatusEnum.IDENTITY_OVERDUE.getName());
|
|
|
+ driverInfo.setAuthenticationStatusKey(StatusEnum.IDENTITY_OVERDUE.getFlag());
|
|
|
+ driverInfoService.updateById(driverInfo);
|
|
|
}
|
|
|
//挂车行驶证到期前10天
|
|
|
int result410 = driverInfo.getTrailerLicenseValidityDate().compareTo(date10);
|
|
@@ -327,6 +339,9 @@ public class PublishTaskInfoServiceImpl extends ServiceImpl<PublishTaskInfoMappe
|
|
|
int result5 = driverInfo.getQualificationCertificateValidityDate().compareTo(date1);
|
|
|
if (result5 < 0) {
|
|
|
driverInfo.setQualificationOverdueFlag("1");
|
|
|
+ driverInfo.setAuthenticationStatus(StatusEnum.IDENTITY_OVERDUE.getName());
|
|
|
+ driverInfo.setAuthenticationStatusKey(StatusEnum.IDENTITY_OVERDUE.getFlag());
|
|
|
+ driverInfoService.updateById(driverInfo);
|
|
|
}
|
|
|
//从业资格证到期前10天
|
|
|
int result510 = driverInfo.getQualificationCertificateValidityDate().compareTo(date10);
|
|
@@ -356,6 +371,9 @@ public class PublishTaskInfoServiceImpl extends ServiceImpl<PublishTaskInfoMappe
|
|
|
int result6 = driverInfo.getOperationCertificateValidityDate().compareTo(date1);
|
|
|
if (result6 < 0) {
|
|
|
driverInfo.setOperationOverdueFlag("1");
|
|
|
+ driverInfo.setAuthenticationStatus(StatusEnum.IDENTITY_OVERDUE.getName());
|
|
|
+ driverInfo.setAuthenticationStatusKey(StatusEnum.IDENTITY_OVERDUE.getFlag());
|
|
|
+ driverInfoService.updateById(driverInfo);
|
|
|
}
|
|
|
//道路运输证到期前10天
|
|
|
int result610 = driverInfo.getOperationCertificateValidityDate().compareTo(date10);
|
|
@@ -385,6 +403,9 @@ public class PublishTaskInfoServiceImpl extends ServiceImpl<PublishTaskInfoMappe
|
|
|
int result7 = driverInfo.getTrailerOperationCertificateValidityDate().compareTo(date1);
|
|
|
if (result7 < 0) {
|
|
|
driverInfo.setTrailerOperationOverdueFlag("1");
|
|
|
+ driverInfo.setAuthenticationStatus(StatusEnum.IDENTITY_OVERDUE.getName());
|
|
|
+ driverInfo.setAuthenticationStatusKey(StatusEnum.IDENTITY_OVERDUE.getFlag());
|
|
|
+ driverInfoService.updateById(driverInfo);
|
|
|
}
|
|
|
//挂车运输证到期前10天
|
|
|
int result710 = driverInfo.getTrailerOperationCertificateValidityDate().compareTo(date10);
|
|
@@ -410,9 +431,6 @@ public class PublishTaskInfoServiceImpl extends ServiceImpl<PublishTaskInfoMappe
|
|
|
newsInfo.setNewsType("系统消息");
|
|
|
newsInfoService.addNewsInfo(newsInfo);
|
|
|
}
|
|
|
- driverInfo.setAuthenticationStatus(StatusEnum.IDENTITY_OVERDUE.getName());
|
|
|
- driverInfo.setAuthenticationStatusKey(StatusEnum.IDENTITY_OVERDUE.getFlag());
|
|
|
- driverInfoService.updateById(driverInfo);
|
|
|
});
|
|
|
}
|
|
|
}
|