|
@@ -181,7 +181,7 @@ public class TTrainingRegularController extends BaseController
|
|
|
while (iterator.hasNext()) {
|
|
|
TStaffmgr t = iterator.next();
|
|
|
if (t.getLeftDate() != null && t.getDelFlag() == 9){
|
|
|
- if (t.getLeftDate().getTime() - tTrainingRegular.getPlanTrainingdate().getTime() > 0l ) {
|
|
|
+ if (t.getLeftDate().getTime() - tTrainingRegular.getPlanTrainingdate().getTime() < 0l ) {
|
|
|
logger.debug(t.getName() + "离职时间小于培训时间");
|
|
|
iterator.remove();
|
|
|
}
|
|
@@ -306,7 +306,7 @@ public class TTrainingRegularController extends BaseController
|
|
|
while (iterator.hasNext()) {
|
|
|
TStaffmgr staffmgr2 = iterator.next();
|
|
|
if (staffmgr2.getLeftDate() != null && t.getDelFlag() == 9){
|
|
|
- if (staffmgr2.getLeftDate().getTime() - tTrainingRegular.getPlanTrainingdate().getTime() > 0l ) {
|
|
|
+ if (staffmgr2.getLeftDate().getTime() - tTrainingRegular.getPlanTrainingdate().getTime() < 0l ) {
|
|
|
logger.debug(staffmgr2.getName() + "离职时间小于培训时间");
|
|
|
iterator.remove();
|
|
|
}
|
|
@@ -335,7 +335,7 @@ public class TTrainingRegularController extends BaseController
|
|
|
while (iterator.hasNext()) {
|
|
|
TStaffmgr staffmgr1 = iterator.next();
|
|
|
if (staffmgr1.getLeftDate() != null && t.getDelFlag() == 9){
|
|
|
- if (staffmgr1.getLeftDate().getTime() - tTrainingRegular.getPlanTrainingdate().getTime() > 0l ) {
|
|
|
+ if (staffmgr1.getLeftDate().getTime() - tTrainingRegular.getPlanTrainingdate().getTime() < 0l ) {
|
|
|
logger.debug(staffmgr1.getName() + "离职时间小于培训时间");
|
|
|
iterator.remove();
|
|
|
}
|