package com.xinelu.manage.vo.trainingorderdetails;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xinelu.manage.domain.trainingorderdetails.TrainingOrderDetails;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

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

/**
 * @author ljh
 * @version 1.0
 * Create by 2023/4/25 9:46
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class NurseAppletPersonTrainingOrderDetailsVO extends TrainingOrderDetails implements Serializable {
    private static final long serialVersionUID = 4344236010800105022L;

    /**
     * 订单明细主键id
     */
    private Long trainingOrderDetailsId;

    /**
     * 订单主键id
     */
    private Long trainingOrderId;

    /**
     * 护理站id
     */
    private Long nurseStationId;

    /**
     * 护理员表id
     */
    private Long nurseStationPersonId;

    /**
     * 护理员姓名
     */
    private String nursePersonName;

    /**
     * 订单状态，待付款：WAIT_PAY，已付款：PAY，退款中：WAIT_REFUND，已退款：REFUNDED，已取消：CANCEL
     */
    private String trainingOrderStatus;

    /**
     * 订单金额
     */
    private BigDecimal trainingOrderAmount;

    /**
     * 下单方式，手机App：MOBILE_APP，微信小程序：WECHAT_APPLET，支付宝小程序：ALI_PAY_APPLET
     */
    private String trainingOrderChannel;

    /**
     * 下单时间，yyyy-MM-dd HH:mm:ss
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime trainingOrderTime;

    /**
     * 是否删除标识，0：否，1：是
     */
    private Integer delFlag;
}