package shop.alien.entity.store.dto;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 咨询订单
 *
 * @author system
 * @since 2025-01-XX
 */
@Data
@JsonInclude
@TableName("lawyer_consultation_order")
@ApiModel(value = "LawyerConsultationOrder对象", description = "咨询订单")
public class LawyerConsultationOrderDto extends Model<LawyerConsultationOrderDto> {

    @ApiModelProperty(value = "主键")
    private Integer id;

    @ApiModelProperty(value = "订单编号")
    private String orderNumber;

    @ApiModelProperty(value = "客户端用户ID")
    private Integer clientUserId;

    @ApiModelProperty(value = "律师用户ID")
    private Integer lawyerUserId;

    @ApiModelProperty(value = "法律问题场景ID")
    private String problemScenarioId;

    @ApiModelProperty(value = "问题描述")
    private String problemDescription;

    @ApiModelProperty(value = "订单金额,单位分")
    private Integer orderAmount;

    @ApiModelProperty(value = "咨询费用,单位分")
    private Integer consultationFee;

    @ApiModelProperty(value = "咨询开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;

    @ApiModelProperty(value = "咨询结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;

    @ApiModelProperty(value = "订单状态, 0:待支付, 1:已支付, 2:进行中, 3:已完成, 4:已取消")
    private Integer orderStatus;

    @ApiModelProperty(value = "支付状态, 0:未支付, 1:已支付")
    private Integer paymentStatus;

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

    @ApiModelProperty(value = "支付时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date paymentTime;

    @ApiModelProperty(value = "订单有效期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date validityPeriod;

    @ApiModelProperty(value = "用户评分, 1-5星")
    private Integer rating;

    @ApiModelProperty(value = "用户评价内容")
    private String comment;

    @ApiModelProperty(value = "删除标记, 0:未删除, 1:已删除")
    @TableLogic
    private Integer deleteFlag;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;

    @ApiModelProperty(value = "创建人ID")
    private Integer createdUserId;

    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedTime;

    @ApiModelProperty(value = "修改人ID")
    private Integer updatedUserId;

    @ApiModelProperty(value = "支付宝订单编号")
    @TableField("alipay_no")
    private String alipayNo;

    @ApiModelProperty(value = "支付宝订单字符串")
    @TableField("order_str")
    private String orderStr;

    @ApiModelProperty(value = "律所id")
    @TableField("place_id")
    private  Integer placeId;

    @ApiModelProperty(value = "律师收益（订单金额-平台佣金）")
    @TableField("lawyer_earnings")
    private  Integer lawyerEarnings;

    @ApiModelProperty(value = "律师接单时间")
    @TableField("accept_orders_time")
    private  Date acceptOrdersTime;

    @ApiModelProperty(value = "拒绝接单原因")
    @TableField("reason_order_refusal")
    private  String reasonOrderRefusal;

    @ApiModelProperty(value = "律师接单状态  0接单  1拒绝接单")
    @TableField("accept_orders_status")
    private  Integer acceptOrdersStatus;


    @ApiModelProperty(value = "支付方式 1支付宝 2微信")
    @TableField("pay_type")
    private  String payType;

    @ApiModelProperty(value = "分钟收费-钱数")
    @TableField("charge_minute")
    private Integer chargeMinute;

    @ApiModelProperty(value = "分钟收费-分钟数")
    @TableField("minute_num")
    private Integer minuteNum;

    @ApiModelProperty(value = "次数收费-钱数")
    @TableField("charge_time")
    private Integer chargeTime;


    @ApiModelProperty(value = "次数收费-次数")
    @TableField("time_num")
    private Integer timeNum;

}

