【update】飞机超标字段修改,订单状态对应中文

This commit is contained in:
nixj 2024-05-29 09:18:15 +08:00
parent 890a97417a
commit ab83133cc6
6 changed files with 34 additions and 5 deletions

View File

@ -37,7 +37,7 @@ public class CarOrderDetail implements Serializable {
// 原始订单号
private String originalOrderNo;
// 订单状态
// 订单状态0-取消 1-出票成功2-改签成功3-退票成功
private String orderStatus;
// 核算企业id

View File

@ -39,7 +39,7 @@ public class FlightOrderDetail implements Serializable {
// 原始订单号
private String originalOrderNo;
// 订单状态1-出票成功2-改签成功3-退票成功
// 订单状态0-取消 1-出票成功2-改签成功3-退票成功
private String orderStatus;
// 核算企业id

View File

@ -40,7 +40,7 @@ public class TrainOrderDetail implements Serializable {
// 原始订单号
private String originalOrderNo;
// 订单状态1-出票成功2-改签成功3-退票成功
// 订单状态0-取消 1-出票成功2-改签成功3-退票成功
private String orderStatus;
// 核算企业id

View File

@ -36,6 +36,14 @@ public class CarOrderDetailExcel extends BaseExcel{
@ExcelProperty("订单创建时间")
private String createTime;
public String getOrderStatus() {
return switch (orderStatus) {
case "0" -> "取消";
case "1" -> "出票成功";
case "2" -> "改签成功";
case "3" -> "退票成功";
default -> orderStatus;
};
}
}

View File

@ -3,6 +3,9 @@ package com.chint.manage.entity.excel;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;
import static com.chint.infrastructure.constant.LegConstant.*;
import static com.chint.infrastructure.constant.LegConstant.LEG_TYPE_OTHER_EN_NAME;
@Data
public class FlightOrderDetailExcel extends BaseExcel{
@ -23,7 +26,7 @@ public class FlightOrderDetailExcel extends BaseExcel{
@ExcelProperty("订单状态")
private String orderStatus;
@ExcelProperty("是否超标")
private String isOverStandard;
private String overStandard;
@ExcelProperty("超标原因")
private String overStandardReason;
@ExcelProperty("订单号")
@ -32,4 +35,13 @@ public class FlightOrderDetailExcel extends BaseExcel{
private String createTime;
public String getOrderStatus() {
return switch (orderStatus) {
case "0" -> "取消";
case "1" -> "出票成功";
case "2" -> "改签成功";
case "3" -> "退票成功";
default -> orderStatus;
};
}
}

View File

@ -36,4 +36,13 @@ public class TrainOrderDetailExcel extends BaseExcel{
@ExcelProperty("订单创建时间")
private String createTime;
public String getOrderStatus() {
return switch (orderStatus) {
case "0" -> "取消";
case "1" -> "出票成功";
case "2" -> "改签成功";
case "3" -> "退票成功";
default -> orderStatus;
};
}
}