package cn.iocoder.yudao.module.order.vo;

import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.common.DictBaseConstants.REPAIR_PAY_TYPE;

/**
 * 用于维修订单导出VO
 *
 * @author 小李
 * @date 17:05 2024/12/3
**/
@Data
@ExcelIgnoreUnannotated
public class RepairOrderExportVO {

    @ExcelProperty("订单号")
    private String orderNo;

    @ExcelProperty("服务名称")
    private String goodsTitle;

    @ExcelProperty("消费类型")
    private String goodsType;

    @ExcelProperty("客户姓名")
    private String cusName;

    @ExcelProperty("客户手机号")
    private String cusPhone;

    @ExcelProperty("商品原价(元)")
    private BigDecimal goodsPrice;

    @ExcelProperty("实付金额(元)")
    private BigDecimal payMoney;

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ExcelProperty("下单时间")
    private LocalDateTime orderTime;

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ExcelProperty("支付时间")
    private LocalDateTime payTime;

    @ExcelProperty(value = "支付方式", converter = DictConvert.class)
    @DictFormat(REPAIR_PAY_TYPE)
    private String payType;

    @ExcelProperty("订单状态")
    private String orderStatus;
}
