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