Commit c518d293 authored by fangxinjiang's avatar fangxinjiang

证明代码优化

parent 854d6536
......@@ -68,7 +68,7 @@ public class EmpDisabilityExcelVO extends RowIndex implements Serializable {
@ExcelAttribute(name = "伤残开始日期",isNotEmpty = true, errorInfo = "伤残开始日期不能为空",isDate = true)
@NotNull(message = "伤残开始日期不能为空")
@Past
@DateTimeFormat("YYYY-MM-dd")
@DateTimeFormat("yyyy-MM-dd")
@ExcelProperty(value ="伤残开始日期")
private Date startTime;
......@@ -78,7 +78,7 @@ public class EmpDisabilityExcelVO extends RowIndex implements Serializable {
@ExcelAttribute(name = "伤残结束日期",isNotEmpty = true, errorInfo = "伤残结束日期不能为空",isDate = true)
@NotNull(message = "伤残结束日期不能为空")
@Past
@DateTimeFormat("YYYY-MM-dd")
@DateTimeFormat("yyyy-MM-dd")
@ExcelProperty(value ="伤残结束日期")
private Date endTime;
......
......@@ -96,7 +96,7 @@ public class EmpEducationExcelVO extends RowIndex implements Serializable {
*/
@ExcelAttribute(name = "入学时间",errorInfo = "入学时间不可为空",isDate = true)
@NotNull(message = "入学时间不可为空")
@DateTimeFormat("YYYY-MM-dd")
@DateTimeFormat("yyyy-MM-dd")
@ExcelProperty(value ="入学时间")
private Date entryDate;
......@@ -105,7 +105,7 @@ public class EmpEducationExcelVO extends RowIndex implements Serializable {
*/
@ExcelAttribute(name = "毕业时间",errorInfo = "毕业时间不可为空",isDate = true)
@NotNull(message = "毕业时间不可为空")
@DateTimeFormat("YYYY-MM-dd")
@DateTimeFormat("yyyy-MM-dd")
@ExcelProperty(value ="毕业时间")
private Date gradutionDate;
......
......@@ -58,7 +58,7 @@ public class EmpFamilyExcelVO extends RowIndex implements Serializable {
*/
@ExcelAttribute(name = "出生日期",isDate = true)
@Past
@DateTimeFormat("YYYY-MM-dd")
@DateTimeFormat("yyyy-MM-dd")
@ExcelProperty(value ="出生日期")
private Date birthday;
......
......@@ -79,7 +79,7 @@ public class EmpWorkRecordExcelVO extends RowIndex implements Serializable {
* 开始工作日期
*/
@ExcelAttribute(name = "开始工作日期",errorInfo = "开始工作日期不可为空",isDate = true)
@DateTimeFormat("YYYY-MM-dd")
@DateTimeFormat("yyyy-MM-dd")
@NotNull(message = "开始工作日期不可为空")
@ExcelProperty(value ="开始工作日期")
private Date startDate;
......@@ -88,7 +88,7 @@ public class EmpWorkRecordExcelVO extends RowIndex implements Serializable {
* 结束工作日期
*/
@ExcelAttribute(name = "结束工作日期",isDate = true)
@DateTimeFormat("YYYY-MM-dd")
@DateTimeFormat("yyyy-MM-dd")
@ExcelProperty(value ="结束工作日期")
private Date endDate;
......
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