package com.leromro.core.domain;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalTime;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.leromro.common.annotation.Excel;
import com.leromro.common.core.domain.BaseEntity;

/**
 * 志愿者的订单对象 l_volunteer_order
 * 
 * @author ruoyi
 * @date 2025-04-09
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("l_second_order")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "SecondOrder", description = "小的订单")
public class SecondOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 小订单表id */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("主键 小订单表id")
    private Long secondOrderId;

    /** 订单id */
    @Excel(name = "订单id")
    @ApiModelProperty("订单id")
    private String mainOrderId;

    /** 服务单价 */
    @Excel(name = "下单单价")
    @ApiModelProperty("单价")
    private BigDecimal serviceOnePrice;

    /** 志愿者id */
    @Excel(name = "志愿者id")
    @ApiModelProperty("志愿者id")
    private Long volunteerId;

    /** order_status */
    @Excel(name = "小订单状态")
    @ApiModelProperty("小订单状态")
    private Integer orderStatus;


    /** 大类别 */
    @Excel(name = "大类别")
    @ApiModelProperty("大类别")
    private Long serviceCategory;

    /** 小类别 */
    @Excel(name = "小类别")
    @ApiModelProperty("小类别")
    private Long serviceType;

    /** 学科科目 */
    @Excel(name = "学科科目")
    @ApiModelProperty("学科科目")
    private Long serviceSubject;

    /** 服务开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "服务开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("服务开始日期")
    private LocalDate workDate;

    /** 工作开始时间 HH:ss */
    @JsonFormat(pattern = "HH:ss")
    @Excel(name = "工作开始时间 HH:ss", width = 30, dateFormat = "HH:ss")
    @ApiModelProperty("工作开始时间 HH:ss")
    private LocalTime workStartTime;

    /** 结束时间 */
    @JsonFormat(pattern = "HH:ss")
    @Excel(name = "结束时间", width = 30, dateFormat = "HH:ss")
    @ApiModelProperty("结束时间")
    private LocalTime workEndTime;

    /** 服务第几次 */
    @Excel(name = "服务第几次")
    @ApiModelProperty("服务第几次")
    private Long workNumber;

    /** 服务时长（小时） */
    @Excel(name = "服务时长", readConverterExp = "小=时")
    @ApiModelProperty("服务时长（小时）")
    private Integer serviceDuration;

    /** 服务地址表外键 */
    @Excel(name = "服务地址表外键")
    @ApiModelProperty("服务地址表外键")
    private Long addressId;

    /** 评分 */
    @Excel(name = "评分")
    @ApiModelProperty("评分")
    private Long score;



}
