EquipmentInfo.java 7.3 KB
package com.skua.modules.equipment.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.skua.core.aspect.annotation.Dict;
import com.skua.tool.annotation.BeanAnno;
import com.skua.tool.annotation.JoinSqlQueryAnno;
import com.skua.tool.enums.JoinSqlQueryEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 设备信息
 */
@Data
@TableName("equipment_info")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "equipment_info对象", description = "设备信息")
public class EquipmentInfo {

    /**
     * id
     */
    @TableId(type = IdType.UUID)
    @ApiModelProperty(value = "id")
    @JoinSqlQueryAnno(joinSqlQueryEnum = JoinSqlQueryEnum.EQ)
    private String id;
    /**
     * 货主组织
     */
    @Excel(name = "货主组织", width = 15)
    @ApiModelProperty(value = "货主组织")
    @BeanAnno(targetFieldNames = {"departIdName", "departId_dictText"})
    @JoinSqlQueryAnno(joinSqlQueryEnum = JoinSqlQueryEnum.IN)
    private String departId;
    /**
     * 计量单位
     */
    @Excel(name = "计量单位", width = 15)
    @ApiModelProperty(value = "计量单位")
    private String measuringUnit;
    /**
     * 设备类型
     */
    @Excel(name = "设备类型", width = 15)
    @ApiModelProperty(value = "设备类型")
    @BeanAnno(targetFieldName = "equipmentType_dictText")
    @JoinSqlQueryAnno(joinSqlQueryEnum = JoinSqlQueryEnum.EQ)
    private String equipmentType;
    /**
     * 设备编码
     */
    @Excel(name = "设备编码", width = 15)
    @ApiModelProperty(value = "设备编码")
    private String equipmentCode;

    @Excel(name = "设备等级", width = 15)
    @ApiModelProperty(value = "设备等级")
    private String equipmentLevel;

    @Excel(name = "安装角度", width = 15)
    @ApiModelProperty(value = "安装角度")
    private String installAngle;
    /**
     * 设备名称
     */
    @Excel(name = "设备名称", width = 15)
    @ApiModelProperty(value = "设备名称")
    @JoinSqlQueryAnno(joinSqlQueryEnum = JoinSqlQueryEnum.LIKE)
    private String equipmentName;
    /**
     * 开始使用日期
     */
    @Excel(name = "开始使用日期", width = 15)
    @ApiModelProperty(value = "开始使用日期")
    private String startUseDate;
    /**
     * 限制使用年限
     */
    @Excel(name = "限制使用年限", width = 15)
    @ApiModelProperty(value = "限制使用年限")
    private String limitUseYear;
    /**
     * 建议更换时间
     */
    @Excel(name = "建议更换时间", width = 15)
    @ApiModelProperty(value = "建议更换时间")
    private String adviceReplaceDate;
    /**
     * 安装位置
     */
    @Excel(name = "安装位置", width = 15)
    @ApiModelProperty(value = "安装位置")
    @BeanAnno(targetFieldName = "installPosition_dictText")
    private String installPosition;
    /**
     * 技术参数
     */
    @Excel(name = "技术参数", width = 15)
    @ApiModelProperty(value = "技术参数")
    private String technicalParameter;
    /**
     * 产品型号
     */
    @Excel(name = "产品型号", width = 15)
    @ApiModelProperty(value = "产品型号")
    private String productModel;
    /**
     * 厂家
     */
    @Excel(name = "厂家", width = 15)
    @ApiModelProperty(value = "厂家")
    private String manufacturer;
    /**
     * 材质
     */
    @Excel(name = "材质", width = 15)
    @ApiModelProperty(value = "材质")
    private String texture;
    /**
     * 设备图片
     */
    @Excel(name = "设备图片", width = 15)
    @ApiModelProperty(value = "设备图片")
    private String equipmentImg;
    /**
     * 设备二维码
     */
    @Excel(name = "设备二维码", width = 15)
    @ApiModelProperty(value = "设备二维码")
    private String qrCode;
    /**
     * 备注
     */
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
    /**
     * 资产id
     */
    @ApiModelProperty(value = "资产id")
    private String assetId;

    /**
     * 是否为特种设备
     */
    @ApiModelProperty(value = "是否为特种设备")
    @Dict(dicCode = "yn")
    private String isSpecial;
    /**
     * 创建人id
     */
    @ApiModelProperty(value = "创建人id")
    private String createBy;
    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**
     * 修改人id
     */
    @ApiModelProperty(value = "修改人id")
    private String updateBy;
    /**
     * 修改时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;
    /**
     * 所属部门
     */
    @ApiModelProperty(value = "所属部门")
    private String createDept;
    /**
     * 所属公司
     */
    @ApiModelProperty(value = "所属公司")
    private String createCmpy;
    /**
     * 删除标识,0:正常,1:删除
     */
    @ApiModelProperty(value = "删除标识,0:正常,1:删除")
    private Integer delFlag;

    /**
     * 赤水 补充字段
     */
    @ApiModelProperty(value = "输送介质")
    private String deliveryMedium;

    @ApiModelProperty(value = "安装方式")
    private String installWay;

    @ApiModelProperty(value = "设备位号")
    private String equipmentBitNumber;

    @ApiModelProperty(value = "所属构筑物")
    private String structures;

    @ApiModelProperty(value = "出厂日期")
    private String manufactureDate;

    @ApiModelProperty(value = "出厂编号")
    private String manufactureNumber;

    @ApiModelProperty(value = "购入日期")
    private String intakeDate;

    @ApiModelProperty(value = "设备原值")
    private String originalValue;

    @ApiModelProperty(value = "设备状态")
    @BeanAnno(targetFieldName = "equipmentStatus_dictText")
    private String equipmentStatus;

    @ApiModelProperty(value = "使用寿命")
    private String workingLife;

    @ApiModelProperty(value = "设备类别大类")
    private String equipmentTopType;

    @ApiModelProperty(value = "设备类别树路径")
    private String equipmentTypeTreePath;

    @ApiModelProperty(value = "设备品牌")
    private String equipmentBrand;

    @ApiModelProperty(value = "设备附件")
    private String equipmentFile;

    @ApiModelProperty(value = "有无备用")
    private String spareTag;

    @ApiModelProperty(value = "注册时间")
    private String registerDate;

    @ApiModelProperty(value = "资产金额")
    private String assetAmount;
    //安装日期
    @ApiModelProperty(value = "安装日期")
    private String installDate;
    //移交日期
    @ApiModelProperty(value = "移交日期")
    private String handoverDate;
    //报废日期
    @ApiModelProperty(value = "报废日期")
    private String scrapDate;

}