Commit 22ed0399 by 崔彦峰

修改车辆导出相关接口代码

1 parent 829c944d
...@@ -4,6 +4,7 @@ import com.alibaba.excel.annotation.ExcelProperty; ...@@ -4,6 +4,7 @@ import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat; import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.gsc4cloud.gsc.vpc.api.util.excel.ExcelValueReplace; import com.gsc4cloud.gsc.vpc.api.util.excel.ExcelValueReplace;
import com.gsc4cloud.gsc.vpc.api.util.excel.ReplaceIntegerToStringConvert; import com.gsc4cloud.gsc.vpc.api.util.excel.ReplaceIntegerToStringConvert;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
...@@ -124,6 +125,14 @@ public class CarManageInfoExcelDTO implements Serializable { ...@@ -124,6 +125,14 @@ public class CarManageInfoExcelDTO implements Serializable {
@ExcelProperty("车辆创建时间") @ExcelProperty("车辆创建时间")
private Date createTime; private Date createTime;
/**
* 车辆来源 1-系统生成 2-人工导入
*/
@ExcelProperty(value = "车辆来源", converter= ReplaceIntegerToStringConvert.class)
@ExcelValueReplace(replace = {"系统生成_1", "人工导入_2"}, repeatValue = true)
private Integer source;
/** /**
* 交强险到期日 * 交强险到期日
*/ */
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!