标准预警导出优化
This commit is contained in:
-3
@@ -152,9 +152,6 @@ public class EarlyWarningEOController extends BaseController<EarlyWarningEO> {
|
||||
// List<StandWarningEO> exportExcel = earlyWarningEOService.getExportExcel(excelVO);
|
||||
List<WarningExportVO> exportExcel = earlyWarningEOService.getExportExcel(excelVO);
|
||||
for (WarningExportVO warningExportVO : exportExcel){
|
||||
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
|
||||
String format = simpleDateFormat.format(warningExportVO.getPutTime());
|
||||
warningExportVO.setPutTimeStr(format);
|
||||
String condition = warningExportVO.getTermsConditions();
|
||||
if (condition != null && condition.length() > 32001){
|
||||
condition = condition.substring(0,32000);
|
||||
|
||||
+3
-3
@@ -60,12 +60,12 @@ public class EarlyWarningEO extends BaseEntity {
|
||||
@TableField(exist = false)
|
||||
private String standName;
|
||||
|
||||
// @ExcelProperty(value = "发布日期",index = 6)
|
||||
// @ColumnWidth(20)
|
||||
@ExcelProperty(value = "发布日期",index = 6)
|
||||
@ColumnWidth(20)
|
||||
@ApiModelProperty("发布日期")
|
||||
@TableField(exist = false)
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd")
|
||||
private Date putTime;
|
||||
private String putTime;
|
||||
|
||||
@ExcelIgnore
|
||||
@TableField(exist = false)
|
||||
|
||||
@@ -39,12 +39,4 @@ public class WarningExportVO extends EarlyWarningEO {
|
||||
@ApiModelProperty("适用车型展示")
|
||||
private String applyTypeShow;
|
||||
|
||||
@ExcelProperty(value = "发布日期",index = 6)
|
||||
@ColumnWidth(20)
|
||||
@ApiModelProperty("发布日期")
|
||||
@TableField(exist = false)
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd")
|
||||
private String putTimeStr;
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user