【add】订单分页查询新增类型英文名字段

This commit is contained in:
nixj 2024-06-18 14:25:31 +08:00
parent f0b3ca6241
commit 6592f244ef
1 changed files with 16 additions and 4 deletions

View File

@ -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 "未开始";