package org.dromara.main.domain.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.main.domain.MainBackOrder;

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

@Data
@AutoMapper(target = MainBackOrder.class)
public class MainBackOrderVo implements Serializable {

    private Long id;
    private Long orderId;
    private String orderNo;
    private String tenantId;
    private Long companyId;
    private String companyName; // 对应前端“下单企业”
    private Long categoryId;
    private String categoryName;
    private Integer orderType;
    private String clauseIds;
    private BigDecimal unitPrice;
    @TableField("total_amount")
    private BigDecimal totalAmount;
    private String status;
    private Integer orderStatus;
    private Integer mainOrderStatus;
    private LocalDateTime createTime;

    /** 候选人人数 (需在 Service 中统计或 SQL 关联查询) */
    private Long candidateCount;

    private PaymentVo payment;
    private List<MainBackOrderCandidateVo> candidates;
    private List<MainBackClauseVo> clauses;
}
