1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- package com.fdkankan.manage.vo.response;
- import com.alibaba.excel.annotation.ExcelProperty;
- import lombok.Data;
- import java.math.BigDecimal;
- @Data
- public class OrderVo {
- @ExcelProperty("ID")
- private Long id;
- @ExcelProperty("下单时间")
- private String orderTime; //下单时间
- @ExcelProperty("订单号")
- private String orderSn; //订单号
- @ExcelProperty("用户账号")
- private String userName; //用户账号
- @ExcelProperty("订单金额")
- private BigDecimal goodsAmount; //订单金额
- @ExcelProperty("支付方式")
- private String paymentTypeName; //支付方式 付款方式,0表示微信,1表示支付宝,2表示paypal,3表示其他,4表示货到付款
- @ExcelProperty("交易号")
- private String tradeNum; //交易号
- // @ExcelProperty("订单状态")
- // private String orderStatus; // 订单状态(未处理unprocessed、已确认processed、已完成completed、已取消invalid、过期expire)
- @ExcelProperty("订单状态")
- private String paymentStatus; //付款状态(未付款unpaid、已付款paid、已取消cancel, 部分支付partPayment, 部分退款partRefund, 全额退款refunded)
- private String shipAreaPath;
- @ExcelProperty("地址")
- private String shipAddress;
- @ExcelProperty("手机号码")
- private String shipMobile;
- @ExcelProperty("收件人")
- private String shipName;
- public String getShipAddress() {
- return shipAreaPath + shipAddress;
- }
- public String getPaymentTypeName() {
- switch (paymentTypeName){
- case "0" : return "微信";
- case "1" : return "支付宝";
- case "2" : return "paypal";
- case "3" : return "其他";
- case "4" : return "货到付款";
- default: return "";
- }
- }
- // public String getOrderStatus() {
- // switch (orderStatus){
- // case "unprocessed" : return "未处理";
- // case "processed" : return "已确认";
- // case "completed" : return "已完成";
- // case "invalid" : return "已取消";
- // case "expire" : return "过期";
- // default: return "";
- // }
- // }
- public String getPaymentStatus() {
- switch (paymentStatus){
- case "unpaid" : return "未付款";
- case "paid" : return "已付款";
- case "cancel" : return "已取消";
- case "partPayment" : return "部分支付";
- case "partRefund" : return "部分退款";
- case "refunded" : return "全额退款";
- default: return "";
- }
- }
- }
|