Commit 310231d9 authored by hongguangwu's avatar hongguangwu

MVP1.7.0 批量更新档案

parent 78736a22
...@@ -34,7 +34,7 @@ import java.util.Date; ...@@ -34,7 +34,7 @@ import java.util.Date;
public class PreUploadEmpImportTwoVo implements Serializable { public class PreUploadEmpImportTwoVo implements Serializable {
// (字典值,0外包1派遣2代理) // (字典值,0外包1派遣2代理)
@ExcelAttribute(name = "员工类型", isDataId = true, dataType = ExcelAttributeConstants.EMP_NATRUE, maxLength = 2) @ExcelAttribute(name = "员工类型", isDataId = true, dataType = ExcelAttributeConstants.EMP_NATRUE, maxLength = 4)
private String empNatrue; private String empNatrue;
@ExcelAttribute(name = "员工姓名", maxLength = 32) @ExcelAttribute(name = "员工姓名", maxLength = 32)
private String empName; private String empName;
......
...@@ -36,7 +36,7 @@ import java.util.List; ...@@ -36,7 +36,7 @@ import java.util.List;
public class PreUploadEmpImportVo implements Serializable { public class PreUploadEmpImportVo implements Serializable {
// (字典值,0外包1派遣2代理) // (字典值,0外包1派遣2代理)
@ExcelAttribute(name = "员工类型", isDataId = true, dataType = ExcelAttributeConstants.EMP_NATRUE, maxLength = 2) @ExcelAttribute(name = "员工类型", isDataId = true, dataType = ExcelAttributeConstants.EMP_NATRUE, maxLength = 4)
private String empNatrue; private String empNatrue;
@ExcelAttribute(name = "员工姓名", maxLength = 32) @ExcelAttribute(name = "员工姓名", maxLength = 32)
private String empName; private String empName;
......
...@@ -389,8 +389,12 @@ public class DiyExcelImportUtil implements Serializable { ...@@ -389,8 +389,12 @@ public class DiyExcelImportUtil implements Serializable {
if (Common.isNotNull(attr.pattern())) { if (Common.isNotNull(attr.pattern())) {
if (!("validityEnd".equals(shuName) && "长期".equals(c)) && dateValue != null) { if (!("validityEnd".equals(shuName) && "长期".equals(c)) && dateValue != null) {
Date startDate = startDateMap.get(attr.pattern()); Date startDate = startDateMap.get(attr.pattern());
if (startDate != null && !dateValue.after(startDate)) { if (startDate != null) {
errorFormat.append(attr.name()).append("_小于起始日期;"); if (!dateValue.after(startDate)) {
errorFormat.append(attr.name()).append("_小于起始日期;");
}
} else {
errorFormat.append(attr.name()).append("_未找到起始日期,请将起始日期放在左边列;");
} }
} }
} }
...@@ -480,8 +484,12 @@ public class DiyExcelImportUtil implements Serializable { ...@@ -480,8 +484,12 @@ public class DiyExcelImportUtil implements Serializable {
if (Common.isNotNull(attr.pattern())) { if (Common.isNotNull(attr.pattern())) {
if (!("validityEnd".equals(shuName) && "长期".equals(c)) && dateValue != null) { if (!("validityEnd".equals(shuName) && "长期".equals(c)) && dateValue != null) {
Date startDate = startDateMap.get(attr.pattern()); Date startDate = startDateMap.get(attr.pattern());
if (startDate != null && !dateValue.after(startDate)) { if (startDate != null) {
errorFormat.append(attr.name()).append("_小于起始日期;"); if (!dateValue.after(startDate)) {
errorFormat.append(attr.name()).append("_小于起始日期;");
}
} else {
errorFormat.append(attr.name()).append("_未找到起始日期,请将起始日期放在左边列;");
} }
} }
} }
......
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