package org.agt.module.license.controller.admin.report.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fhs.core.trans.vo.VO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.agt.framework.excel.core.annotations.DictFormat;
import org.agt.framework.excel.core.convert.DictConvert;
import org.agt.module.license.controller.admin.license.vo.LicenseDetailVO;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@Schema(description = "管理后台 - 报表 License Response VO")
@Data
@ExcelIgnoreUnannotated
public class ReportLicenseRespVO implements VO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "25585")
//    @ExcelProperty("主键")
    private Long id;

    @Schema(description = "客户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "31667")
    private Long customerId;

    @Schema(description = "客户名称")
    @ExcelProperty("客户名称")
    private String customerName;

    @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "2496")
    private Long projectId;

    @Schema(description = "项目名称")
    @ExcelProperty("项目名称")
    private String projectName;


    @Schema(description = "项目状态", example = "18334")
    @ExcelProperty(value = "项目状态", converter = DictConvert.class)
    @DictFormat("lic_project_status")
    private Integer status;

    @Schema(description = "商务状态", example = "18334")
    @ExcelProperty(value = "商务状态", converter = DictConvert.class)
    @DictFormat("lic_business_status")
    private Integer businessStatus;

    @Schema(description = "sn", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("SN")
    private String serialNo;

    @Schema(description = "到期时间格式化")
    private LocalDateTime expiryDateFormat;

    @Schema(description = "网元")
    private String neListStr;

    @Schema(description = "激活码")
    private String activationCode;

    @Schema(description = "网元激活码列表")
    private List<LicenseDetailVO> neCodeList;

    @Schema(description = "用户数")
    private Integer userNumber;

    @Schema(description = "基站数")
    private Integer ranNumber;

    @Schema(description = "文件URL")
//    @ExcelProperty("文件URL")
    private String fileUrl;

    @Schema(description = "申请人ID")
    private Long applicant;

    @Schema(description = "申请人", requiredMode = Schema.RequiredMode.REQUIRED)
    private String applicantName;

    @Schema(description = "审批人")
    private Long approver;

    @Schema(description = "审批人", requiredMode = Schema.RequiredMode.REQUIRED)
    private String approverName;

    @Schema(description = "备注", example = "随便")
    private String remark;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
//    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "业务负责人")
    @ExcelProperty("业务负责人")
    private String businessOwnerName;

    @Schema(description = "技术负责人1")
    @ExcelProperty("技术负责人1")
    private String technicalOwnerAName;

    @Schema(description = "技术负责人2")
    @ExcelProperty("技术负责人2")
    private String technicalOwnerBName;

    @Schema(description = "项目开始时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("项目开始时间")
    private LocalDateTime startTime;

    @Schema(description = "到期时间导出")
    private LocalDate expiryDateExt;

    @Schema(description = "到期时间")
    @ExcelProperty("到期时间")
    private LocalDateTime expiryDate;

    @Schema(description = "申请时间")
    @ExcelProperty("申请时间")
    private LocalDateTime applicationTime;

    @Schema(description = "license申请次数")
    private Integer applyCount;
}