package com.zcloud.fire.check.domain.model;

import com.jjb.saas.framework.domain.model.BaseE;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * web-domain
 *
 * @Author zhaokai
 * @Date 2025-12-12 11:10:02
 */
@Data
public class FireCheckRecordDeviceE extends BaseE {
    //主键
    private Long id;
    //业务主键id
    private String fireRecordDeviceId;
    //企业id
    private Long corpinfoId;
    //检查表id
    private String fireCheckId;
    //检查记录表id
    private String fireRecordId;

    private String fireRecordPointId;
    //是否检查过0已经检查1未检查，2已打回
    private Integer checkedFlag;
    //0合格1不合格
    private Integer normalFlag;
    //打回原因
    private String hitBackTheReason;
    //消防区域主键id
    private String fireRegionId;
    //消防区域名称
    private String fireRegionName;
    //消防区域编码
    private String fireRegionCode;
    //消防点位id
    private String firePointId;
    //消防点位名称
    private String firePointName;
    //消防点位编码
    private String firePointCode;
    //消防器材id
    private String fireDeviceId;
    //消防器材类型
    private String fireDeviceType;
    //消防器材类型名称
    private String fireDeviceTypeName;
    //器材编号
    private String fireDeviceCode;
    //对应的检查标准信息
    private String fireCheckStandardInfo;
    //经度
    private String longitude;
    //纬度
    private String latitude;
    //乐观锁
    private Integer version;
    //创建人
    private Long createId;
    //创建人姓名
    private String createName;
    //创建时间
    private LocalDateTime createTime;
    //更新人
    private Long updateId;
    //修改人名称
    private String updateName;
    //更新时间
    private LocalDateTime updateTime;
    //描述
    private String remarks;
    //是否删除
    private String deleteEnum;
    //租户ID
    private Long tenantId;
    //机构ID
    private Long orgId;
    //环境
    private String env;

    public void initFireCheckRecordDevice(FireCheckRecordPointE fireCheckRecordPointE, FireDeviceE fireDeviceE) {
        this.fireRecordPointId = fireCheckRecordPointE.getFireRecordPointId();
        this.fireCheckId = fireCheckRecordPointE.getFireCheckId();
        this.fireRecordId = fireCheckRecordPointE.getFireRecordId();
        this.fireRegionId = fireCheckRecordPointE.getFireRegionId();
        this.fireRegionName = fireCheckRecordPointE.getFireRegionName();
        this.fireRegionCode = fireCheckRecordPointE.getFireRegionCode();
        this.firePointId = fireCheckRecordPointE.getFirePointId();
        this.firePointName = fireCheckRecordPointE.getFirePointName();
        this.firePointCode = fireCheckRecordPointE.getFirePointCode();
        this.fireDeviceId = fireDeviceE.getFireDeviceId();
        this.fireDeviceType = fireDeviceE.getFireDeviceType();
        this.fireDeviceTypeName = fireDeviceE.getFireDeviceTypeName();
        this.fireDeviceCode = fireDeviceE.getFireDeviceCode();
    }
}

