package com.njcn.product.terminal.mysqlTerminal.pojo.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.njcn.db.mybatisplus.bo.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 *
 * Description:
 * Date: 2024/4/25  10:07【需求编号】
 *
 * @author clam
 * @version V1.0.0
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "supervision_user_report")
public class UserReportPO extends BaseEntity {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 填报人
     */
    @TableField(value = "reporter")
    private String reporter;

    /**
     * 填报日期
     */
    @TableField(value = "report_date")
    private LocalDate reportDate;

    /**
     * 填报部门
     */
    @TableField(value = "org_id")
    private String orgId;

    /**
     * 工程预期投产日期
     */
    @TableField(value = "expected_production_date")
    private LocalDate expectedProductionDate;

    /**
     * 用户性质
     */
    @TableField(value = "user_type")
    private Integer userType;

    /**
     * 所属地市
     */
    @TableField(value = "city")
    private String city;

    /**
     * 归口管理部门
     */
    @TableField(value = "responsible_department")
    private String responsibleDepartment;

    /**
     * 用户状态
     */
    @TableField(value = "user_status")
    private Integer userStatus;

    /**
     * 变电站
     */
    @TableField(value = "substation")
    private String substation;

    /**
     * 电压等级
     */
    @TableField(value = "voltage_level")
    private String voltageLevel;


    /**
     * 工程名称
     */
    @TableField(value = "project_name")
    private String projectName;

    /**
     * 预测评估单位
     */
    @TableField(value = "evaluation_dept")
    private String evaluationDept;

    /**
     * 预测评估结论
     */
    @TableField(value = "evaluation_conclusion")
    private String evaluationConclusion;

    /**
     * 流程实例的编号
     */
    @TableField(value = "process_instance_id")
    private String processInstanceId;


    @TableField(value = "history_instance_id")
    private String historyInstanceId;

    /**
     * 数据来源类型 0.正常流程审核入库 1.批量导入
     */
    @TableField(value = "data_type")
    private Integer dataType;

    /**
     * 电站id
     */
    private String stationId;

    /**
     * 额定容量
     */
    private Double ratePower;

    /**
     * 经度
     */
    private BigDecimal longitude;


    /**
     * 纬度
     */
    private BigDecimal latitude;

    /**
     * 终端id
     */
    @TableField(value = "dev_id")
    private String devId;

    /**
     * 监测点id
     */
    @TableField(value = "line_id")
    private String lineId;

    /**
     * 审批状态：1:审批中；2：审批通过；3：审批不通过；4：已取消
     */
    @TableField(value = "status")
    private Integer status;


    /**
     * 状态：0-删除 1-正常
     */
    @TableField(value = "State")
    private Integer state;



}
