|
|
@ -3,12 +3,10 @@ package com.epmet.excel; |
|
|
|
import cn.hutool.core.bean.BeanUtil; |
|
|
|
import com.alibaba.excel.annotation.ExcelProperty; |
|
|
|
import com.alibaba.excel.annotation.write.style.ColumnWidth; |
|
|
|
import com.epmet.commons.tools.utils.ConvertUtils; |
|
|
|
import com.epmet.commons.tools.utils.poi.excel.converter.EasyExcelDateConverter; |
|
|
|
import com.epmet.dto.result.WorkdiaryServiceRecordDTO; |
|
|
|
import com.fasterxml.jackson.annotation.JsonFormat; |
|
|
|
import lombok.Data; |
|
|
|
import lombok.NoArgsConstructor; |
|
|
|
import org.springframework.format.annotation.DateTimeFormat; |
|
|
|
|
|
|
|
import javax.validation.constraints.NotBlank; |
|
|
|
import javax.validation.constraints.NotNull; |
|
|
@ -61,10 +59,8 @@ public class WorkdiaryServiceRecordExcel { |
|
|
|
private String principal; |
|
|
|
|
|
|
|
@NotNull(message = "服务时间必填") |
|
|
|
@ColumnWidth(10) |
|
|
|
@ExcelProperty(value = "服务时间") |
|
|
|
@DateTimeFormat(pattern = "yyyy-MM-dd") |
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
|
|
|
@ColumnWidth(20) |
|
|
|
@ExcelProperty(value = "服务时间", converter = EasyExcelDateConverter.class) |
|
|
|
private Date serviceTime; |
|
|
|
|
|
|
|
@ColumnWidth(20) |
|
|
@ -73,14 +69,5 @@ public class WorkdiaryServiceRecordExcel { |
|
|
|
|
|
|
|
public WorkdiaryServiceRecordExcel(WorkdiaryServiceRecordDTO dto) { |
|
|
|
BeanUtil.copyProperties(dto, this); |
|
|
|
//this.gridName = dto.getGridName();
|
|
|
|
//this.serviceTypeName = dto.getServiceTypeName();
|
|
|
|
//this.applicantName = dto.getApplicantName();
|
|
|
|
//this.applicantAddress = dto.getApplicantAddress();
|
|
|
|
//this.serviceContent = dto.getServiceContent();
|
|
|
|
//this.applicantMobile = dto.getApplicantMobile();
|
|
|
|
//this.principal = dto.getPrincipalName();
|
|
|
|
//this.serviceTime = dto.getServiceTime();
|
|
|
|
//this.remark = dto.getRemark();
|
|
|
|
} |
|
|
|
} |