Commit 9413798d authored by fangxinjiang's avatar fangxinjiang

导出花名册 导出时间调优

parent 1fdba7e1
package com.yifu.cloud.plus.v1.yifu.social.vo; package com.yifu.cloud.plus.v1.yifu.social.vo;
import com.alibaba.excel.annotation.ExcelProperty; import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute; import com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttributeConstants; import com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttributeConstants;
...@@ -170,7 +171,7 @@ public class SocialHandleExportVo implements Serializable { ...@@ -170,7 +171,7 @@ public class SocialHandleExportVo implements Serializable {
/** /**
* 合同起始时间 * 合同起始时间
*/ */
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd") @DateTimeFormat("yyyy-MM-dd")
@ExcelAttribute(name = "合同起始时间", errorInfo = "合同起始时间不能为空",dateFormat = DateUtil.ISO_DATE_FORMAT,needExport = true) @ExcelAttribute(name = "合同起始时间", errorInfo = "合同起始时间不能为空",dateFormat = DateUtil.ISO_DATE_FORMAT,needExport = true)
@Schema(description = "合同起始时间") @Schema(description = "合同起始时间")
@ExcelProperty("合同起始时间" ) @ExcelProperty("合同起始时间" )
...@@ -178,7 +179,7 @@ public class SocialHandleExportVo implements Serializable { ...@@ -178,7 +179,7 @@ public class SocialHandleExportVo implements Serializable {
/** /**
* 合同到期时间 * 合同到期时间
*/ */
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd") @DateTimeFormat("yyyy-MM-dd")
@ExcelAttribute(name = "合同到期时间",needExport = true,dateFormat = DateUtil.ISO_DATE_FORMAT) @ExcelAttribute(name = "合同到期时间",needExport = true,dateFormat = DateUtil.ISO_DATE_FORMAT)
@Schema(description = "合同到期时间") @Schema(description = "合同到期时间")
@ExcelProperty("合同到期时间" ) @ExcelProperty("合同到期时间" )
...@@ -237,7 +238,7 @@ public class SocialHandleExportVo implements Serializable { ...@@ -237,7 +238,7 @@ public class SocialHandleExportVo implements Serializable {
/** /**
* 养老起缴日期 * 养老起缴日期
*/ */
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd") @DateTimeFormat("yyyy-MM-dd")
@ExcelAttribute(name = "养老起缴日期", needExport = true) @ExcelAttribute(name = "养老起缴日期", needExport = true)
@Schema(description="养老起缴日期") @Schema(description="养老起缴日期")
@ExcelProperty("养老起缴日期" ) @ExcelProperty("养老起缴日期" )
...@@ -254,7 +255,7 @@ public class SocialHandleExportVo implements Serializable { ...@@ -254,7 +255,7 @@ public class SocialHandleExportVo implements Serializable {
/** /**
* 医疗起缴日期 * 医疗起缴日期
*/ */
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd") @DateTimeFormat("yyyy-MM-dd")
@ExcelAttribute(name = "医疗起缴日期", needExport = true) @ExcelAttribute(name = "医疗起缴日期", needExport = true)
@Schema(description="医疗起缴日期") @Schema(description="医疗起缴日期")
@ExcelProperty("医疗起缴日期" ) @ExcelProperty("医疗起缴日期" )
...@@ -269,7 +270,7 @@ public class SocialHandleExportVo implements Serializable { ...@@ -269,7 +270,7 @@ public class SocialHandleExportVo implements Serializable {
/** /**
* 失业起缴日期 * 失业起缴日期
*/ */
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd") @DateTimeFormat("yyyy-MM-dd")
@ExcelAttribute(name = "失业起缴日期", needExport = true) @ExcelAttribute(name = "失业起缴日期", needExport = true)
@Schema(description="失业起缴日期") @Schema(description="失业起缴日期")
@ExcelProperty("失业起缴日期" ) @ExcelProperty("失业起缴日期" )
...@@ -284,7 +285,7 @@ public class SocialHandleExportVo implements Serializable { ...@@ -284,7 +285,7 @@ public class SocialHandleExportVo implements Serializable {
/** /**
* 工伤起缴日期 * 工伤起缴日期
*/ */
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd") @DateTimeFormat("yyyy-MM-dd")
@ExcelAttribute(name = "工伤起缴日期", needExport = true) @ExcelAttribute(name = "工伤起缴日期", needExport = true)
@Schema(description="工伤起缴日期") @Schema(description="工伤起缴日期")
@ExcelProperty("工伤起缴日期" ) @ExcelProperty("工伤起缴日期" )
...@@ -299,7 +300,7 @@ public class SocialHandleExportVo implements Serializable { ...@@ -299,7 +300,7 @@ public class SocialHandleExportVo implements Serializable {
/** /**
* 生育起缴日期 * 生育起缴日期
*/ */
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd") @DateTimeFormat("yyyy-MM-dd")
@ExcelAttribute(name = "生育起缴日期", needExport = true) @ExcelAttribute(name = "生育起缴日期", needExport = true)
@Schema(description="生育起缴日期") @Schema(description="生育起缴日期")
@ExcelProperty("生育起缴日期" ) @ExcelProperty("生育起缴日期" )
...@@ -314,7 +315,7 @@ public class SocialHandleExportVo implements Serializable { ...@@ -314,7 +315,7 @@ public class SocialHandleExportVo implements Serializable {
/** /**
* 大病起缴日期 * 大病起缴日期
*/ */
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd") @DateTimeFormat("yyyy-MM-dd")
@ExcelAttribute(name = "大病起缴日期", needExport = true) @ExcelAttribute(name = "大病起缴日期", needExport = true)
@Schema(description="大病起缴日期") @Schema(description="大病起缴日期")
@ExcelProperty("大病起缴日期" ) @ExcelProperty("大病起缴日期" )
......
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