diff --git a/src/main/java/com/chint/manage/entity/excel/OrderPageExcel.java b/src/main/java/com/chint/manage/entity/excel/OrderPageExcel.java index 03b705c9..8c515466 100644 --- a/src/main/java/com/chint/manage/entity/excel/OrderPageExcel.java +++ b/src/main/java/com/chint/manage/entity/excel/OrderPageExcel.java @@ -50,17 +50,29 @@ public class OrderPageExcel extends BaseExcel { @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @ExcelProperty("订单结束时间") private LocalDateTime endTime; + @ExcelIgnore + private String productTypeEnName; public String getProductTypeName(){ switch (productType){ - case LEG_TYPE_AIRPLANE: productTypeName="飞机";break; - case LEG_TYPE_TAXI: productTypeName="打车";break; - case LEG_TYPE_TRAIN: productTypeName="火车";break; - case LEG_TYPE_HOTEL: productTypeName="酒店";break; + case LEG_TYPE_AIRPLANE: productTypeName=LEG_TYPE_AIRPLANE_NAME;break; + case LEG_TYPE_TAXI: productTypeName=LEG_TYPE_TAXI_NAME;break; + case LEG_TYPE_TRAIN: productTypeName=LEG_TYPE_TRAIN_NAME;break; + case LEG_TYPE_HOTEL: productTypeName=LEG_TYPE_HOTEL_NAME;break; } return productTypeName; } + public String getProductTypeEnName(){ + switch (productType){ + case LEG_TYPE_AIRPLANE: productTypeEnName=LEG_TYPE_AIRPLANE_EN_NAME;break; + case LEG_TYPE_TAXI: productTypeEnName=LEG_TYPE_TAXI_EN_NAME;break; + case LEG_TYPE_TRAIN: productTypeEnName=LEG_TYPE_TRAIN_EN_NAME;break; + case LEG_TYPE_HOTEL: productTypeEnName=LEG_TYPE_HOTEL_EN_NAME;break; + } + return productTypeEnName; + } + public String getStatusName(){ if (status==null){ return "未开始";