package com.bonus.material.lease.domain;

import com.bonus.common.biz.domain.BmFileInfo;
import com.bonus.material.order.domain.OrderDetailDto;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

/**
 * @Author ma_sh
 * @create 2024/12/3 10:58
 */
@Data
public class LeaseRecordDto {

    @ApiModelProperty(value = "订单id")
    private String orderId;

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

    @ApiModelProperty(value = "装备套数")
    private Integer maNumber;

    @ApiModelProperty(value = "退租时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date rentEndTime;

    @ApiModelProperty(value = "租赁天数")
    private String rentDay;

    @ApiModelProperty(value = "结算单位")
    private String leaseCompany;

    @ApiModelProperty(value = "租赁金额")
    private BigDecimal cost;

    @ApiModelProperty(value = "总费用")
    private BigDecimal totalCost;

    @ApiModelProperty(value = "是否改价(0 否， 1 是)")
    private Integer isChangePrice = 0;

    @ApiModelProperty(value = "订单详情列表")
    private List<OrderDetailDto> orderDetailDtoList;

    @ApiModelProperty(value = "维修列表")
    private List<LeaseRepairRecord> repairRecordList;

    @ApiModelProperty(value = "报废列表")
    private List<LeaseRepairRecord> scrapRecordList;

    @ApiModelProperty(value = "丢失列表")
    private List<LeaseRepairRecord> lossRecordList;

    @ApiModelProperty(value = "附件信息")
    private List<BmFileInfo> fileInfoList;
}
