Commit e2aa6207 authored by huyuchen's avatar huyuchen

假勤信息优化修改

parent 8c1099cf
......@@ -181,7 +181,9 @@ public class TBusLeaveController {
map.put(tBusLeave.getTeleNo(), tBusLeave.getName());
}
}
if (Common.isEmpty(tBusLeave.getLeaveDate()) || Common.isEmpty(tBusLeave.getLeavePostDate())
if (Common.isEmpty(tBusLeave.getTeleNo())) {
errorList.add(new ErrorMessage(i, "'" + "'电信工号不可为空!"));
} else if (Common.isEmpty(tBusLeave.getLeaveDate()) || Common.isEmpty(tBusLeave.getLeavePostDate())
|| Common.isEmpty(tBusLeave.getLeaveReason()) || tBusLeave.getLeaveReason().length() > 200) {
// 判断并拦截
this.judgeLeave(errorList, i, tBusLeave);
......@@ -209,10 +211,6 @@ public class TBusLeaveController {
**/
private void judgeLeave(List<ErrorMessage> errorList, int i, TBusLeave tBusLeave) {
String error;
if (Common.isEmpty(tBusLeave.getTeleNo())) {
error = "'" + "'电信工号为空,无法导入!";
errorList.add(new ErrorMessage(i, error));
} else {
if (Common.isEmpty(tBusLeave.getLeaveDate())) {
error = "'" + tBusLeave.getTeleNo() + "'工号无离职日期,无法导入!";
errorList.add(new ErrorMessage(i, error));
......@@ -230,7 +228,6 @@ public class TBusLeaveController {
errorList.add(new ErrorMessage(i, error));
}
}
}
/**
* @Description: 保存和判断
......@@ -269,9 +266,6 @@ public class TBusLeaveController {
error = "电信工号未匹配到人员附属信息:'" + tBusLeave.getTeleNo() + "'";
errorList.add(new ErrorMessage(i, error));
}
} else {
error = "电信工号不可为空!";
errorList.add(new ErrorMessage(i, error));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment