From 9100d3fa53c50ba5c5ca3972724a9f8ad905eea0 Mon Sep 17 00:00:00 2001
From: 邱宇豪 <qyh123230312>
Date: 星期三, 01 十一月 2023 09:45:47 +0800
Subject: [PATCH] 20231101_qiuyh_完成设备信息管理接口

---
 hd/pipe/engineeringManage/src/main/java/com/thhy/engineering/modules/biz/device/entity/TBigDevice.java |  142 +++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 142 insertions(+), 0 deletions(-)

diff --git a/hd/pipe/engineeringManage/src/main/java/com/thhy/engineering/modules/biz/device/entity/TBigDevice.java b/hd/pipe/engineeringManage/src/main/java/com/thhy/engineering/modules/biz/device/entity/TBigDevice.java
index d324ba6..4fbe748 100644
--- a/hd/pipe/engineeringManage/src/main/java/com/thhy/engineering/modules/biz/device/entity/TBigDevice.java
+++ b/hd/pipe/engineeringManage/src/main/java/com/thhy/engineering/modules/biz/device/entity/TBigDevice.java
@@ -1,6 +1,7 @@
 package com.thhy.engineering.modules.biz.device.entity;
 
 import com.fasterxml.jackson.annotation.JsonFormat;
+import com.thhy.general.annotations.Excel;
 import lombok.Data;
 import lombok.Getter;
 import lombok.Setter;
@@ -23,23 +24,36 @@
     /**
      * 设备名称
      */
+    @Excel(sort = 1,title = "设备名称")
     private String bigDeviceName;
 
     /**
      * 规格型号
      */
+    @Excel(sort = 2,title = "规格型号")
     private String bigDeviceModel;
 
     /**
      * 设备型号
      */
+    @Excel(sort = 3,title = "设备编号")
     private String bigNumber;
 
     /**
      * 设备类型
      */
     private String bigType;
+    @Excel(sort = 4,title = "设备类型")
     private String bigTypeName;
+
+    public String getBigTypeName() {
+        if ("1".equals(bigType)){
+            return "特种设备";
+        }else if ("2".equals(bigType)){
+            return "一般设备";
+        }
+        return "";
+    }
 
     /**
      * 安装位置
@@ -66,6 +80,7 @@
     /**
      * 使用年限
      */
+    @Excel(sort = 8,title = "使用年限")
     private String useLife;
 
     /**
@@ -77,6 +92,11 @@
      * 责任人
      */
     private String userId;
+
+    /**
+     * 责任人电话
+     */
+    private String zrrPhone;
     private String realName;
 
 
@@ -120,4 +140,126 @@
      * @mbg.generated Mon May 15 16:41:32 CST 2023
      */
     private static final long serialVersionUID = 1L;
+
+
+    /**
+     * 分公司id
+     */
+    private String companyId;
+
+    /**
+     * 生产厂家
+     */
+    @Excel(sort = 5,title = "生产厂家")
+    private String manufacturer;
+
+    /**
+     * 出厂年月
+     */
+    @JsonFormat(pattern = "yyyy-MM")
+    @Excel(sort = 6,title = "出厂年月")
+    private Date dateOfProduction;
+
+    /**
+     * 使用年月
+     */
+    @Excel(sort = 7,title = "使用年月")
+    @JsonFormat(pattern = "yyyy-MM")
+    private Date useYearMonth;
+
+    /**
+     * 外形尺寸mm(长*宽*高)
+     */
+    @Excel(sort = 9,title = "外形尺寸mm(长*宽*高)")
+    private String shapeSize;
+
+    /**
+     * 总功率kw
+     */
+    @Excel(sort = 10,title = "总功率kw")
+    private String totalPower;
+
+    /**
+     * 总重量kg
+     */
+    @Excel(sort = 11,title = "总重量kg")
+    private String totalWeight;
+
+    /**
+     * 原值(元)
+     */
+    @Excel(sort = 12,title = "原值(元)")
+    private String originalValue;
+
+    /**
+     * 年折旧率
+     */
+    @Excel(sort = 13,title = "年折旧率")
+    private String yearDepreciationRate;
+
+    /**
+     * 已提折旧
+     */
+    @Excel(sort = 14,title = "已提折旧")
+    private String accumulatedDepreciation;
+
+    /**
+     * 净值
+     */
+    @Excel(sort = 15,title = "净值(元)")
+    private String netWorth;
+
+    /**
+     * 使用状况 1、良好 2、老化
+     */
+    private Integer useStatus;
+    @Excel(sort = 16,title = "使用状况")
+    private String useStatusName;
+
+    public String getUseStatusName() {
+        if (useStatus == 1){
+            return "良好";
+        }else if (useStatus == 2){
+            return "老化";
+        }
+        return "";
+    }
+
+    /**
+     * 是否满足需要 1是 、2否
+     */
+    private Integer isNeed;
+    @Excel(sort = 17,title = "是否满足需要")
+    private String isNeedName;
+    public String getIsNeedName() {
+        if (isNeed == 1){
+            return "是";
+        }else if (isNeed == 2){
+            return "否";
+        }
+        return "";
+    }
+    /**
+     * 设备来源
+     */
+    @Excel(sort = 18,title = "设备来源")
+    private String deviceSource;
+
+    /**
+     * 设备配属关系
+     */
+    @Excel(sort = 19,title = "设备配属关系")
+    private String deviceNexus;
+
+    /**
+     * 定机人
+     */
+    @Excel(sort = 20,title = "定机人")
+    private String fixedPerson;
+
+    /**
+     * 管理员电话
+     */
+    private String adminPhone;
+
 }
\ No newline at end of file

--
Gitblit v1.9.3