【add】订单分页查询新增类型英文名字段
This commit is contained in:
parent
f0b3ca6241
commit
6592f244ef
|
@ -50,17 +50,29 @@ public class OrderPageExcel extends BaseExcel {
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
@ExcelProperty("订单结束时间")
|
@ExcelProperty("订单结束时间")
|
||||||
private LocalDateTime endTime;
|
private LocalDateTime endTime;
|
||||||
|
@ExcelIgnore
|
||||||
|
private String productTypeEnName;
|
||||||
|
|
||||||
public String getProductTypeName(){
|
public String getProductTypeName(){
|
||||||
switch (productType){
|
switch (productType){
|
||||||
case LEG_TYPE_AIRPLANE: productTypeName="飞机";break;
|
case LEG_TYPE_AIRPLANE: productTypeName=LEG_TYPE_AIRPLANE_NAME;break;
|
||||||
case LEG_TYPE_TAXI: productTypeName="打车";break;
|
case LEG_TYPE_TAXI: productTypeName=LEG_TYPE_TAXI_NAME;break;
|
||||||
case LEG_TYPE_TRAIN: productTypeName="火车";break;
|
case LEG_TYPE_TRAIN: productTypeName=LEG_TYPE_TRAIN_NAME;break;
|
||||||
case LEG_TYPE_HOTEL: productTypeName="酒店";break;
|
case LEG_TYPE_HOTEL: productTypeName=LEG_TYPE_HOTEL_NAME;break;
|
||||||
}
|
}
|
||||||
return productTypeName;
|
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(){
|
public String getStatusName(){
|
||||||
if (status==null){
|
if (status==null){
|
||||||
return "未开始";
|
return "未开始";
|
||||||
|
|
Loading…
Reference in New Issue