From 7ce7861b02a6a4c4fe53d6292d3d216a65551371 Mon Sep 17 00:00:00 2001
From: 龚焕茏 <2842157468@qq.com>
Date: 星期二, 23 四月 2024 10:47:47 +0800
Subject: [PATCH] 合同导入模板

---
 ycl-pojo/src/main/java/com/ycl/platform/domain/entity/TContract.java |  153 ++++++++++++--------------------------------------
 1 files changed, 38 insertions(+), 115 deletions(-)

diff --git a/ycl-pojo/src/main/java/com/ycl/platform/domain/entity/TContract.java b/ycl-pojo/src/main/java/com/ycl/platform/domain/entity/TContract.java
index 5c7e9ad..8cdb71e 100644
--- a/ycl-pojo/src/main/java/com/ycl/platform/domain/entity/TContract.java
+++ b/ycl-pojo/src/main/java/com/ycl/platform/domain/entity/TContract.java
@@ -1,135 +1,58 @@
 package com.ycl.platform.domain.entity;
 
-import annotation.Excel;
+import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
+import com.alibaba.excel.annotation.ExcelProperty;
+import com.alibaba.excel.annotation.write.style.ContentStyle;
+import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
+import com.alibaba.excel.enums.poi.VerticalAlignmentEnum;
+import com.baomidou.mybatisplus.annotation.TableLogic;
+import com.fasterxml.jackson.annotation.JsonFormat;
 import com.ycl.system.entity.BaseEntity;
-import org.apache.commons.lang.builder.ToStringBuilder;
-import org.apache.commons.lang.builder.ToStringStyle;
+import lombok.Data;
 
 import java.util.Date;
 
 /**
- * 銆愯濉啓鍔熻兘鍚嶇О銆戝璞� t_contract
- * 
- * @author ruoyi
- * @date 2024-03-12
+ * 杩愮淮鍚堝悓瀵硅薄 t_contract
+ *
+ * @author gonghl
+ * @date 2024-04-22
  */
-public class TContract extends BaseEntity
-{
+@Data
+@ExcelIgnoreUnannotated
+@ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER, verticalAlignment = VerticalAlignmentEnum.CENTER)
+public class TContract extends BaseEntity {
     private static final long serialVersionUID = 1L;
 
-    /** 涓婚敭 */
+    /**
+     * 涓婚敭
+     */
+    @ExcelProperty("搴忓彿")
     private Long id;
 
-    /** 鍏徃id */
-    @Excel(name = "鍏徃id")
-    private Long companyId;
+    /**
+     * 鍗曚綅id
+     */
+    private Integer unitId;
 
-    /** 鍏徃鍚� */
-    @Excel(name = "鍏徃鍚�")
-    private String companyName;
+    /**
+     * 鍚堝悓鍚嶇О
+     */
+    private String name;
 
-    /** 瀵规帴鍏畨閮ㄩ棬id */
-    @Excel(name = "瀵规帴鍏畨閮ㄩ棬id")
-    private Long deptId;
-
-    /** 閮ㄩ棬鍚嶇О */
-    @Excel(name = "閮ㄩ棬鍚嶇О")
-    private String deptName;
-
-    /** 鍚堝悓鏄庣粏json */
-    @Excel(name = "鍚堝悓鏄庣粏json")
-    private String detail;
-
-    /** 寮�濮嬫椂闂� */
-    @Excel(name = "寮�濮嬫椂闂�")
+    /**
+     * 寮�濮嬫椂闂�
+     */
+    @JsonFormat(pattern = "yyyy-MM-dd")
     private Date startTime;
 
-    /** 鎴鏃堕棿 */
-    @Excel(name = "鎴鏃堕棿")
+    /**
+     * 缁撴潫鏃堕棿
+     */
+    @JsonFormat(pattern = "yyyy-MM-dd")
     private Date endTime;
 
-    public Date getStartTime() {
-        return startTime;
-    }
+    @TableLogic
+    private String deleted;
 
-    public void setStartTime(Date startTime) {
-        this.startTime = startTime;
-    }
-
-    public Date getEndTime() {
-        return endTime;
-    }
-
-    public void setEndTime(Date endTime) {
-        this.endTime = endTime;
-    }
-
-    public void setId(Long id)
-    {
-        this.id = id;
-    }
-
-    public Long getId() 
-    {
-        return id;
-    }
-    public void setCompanyId(Long companyId) 
-    {
-        this.companyId = companyId;
-    }
-
-    public Long getCompanyId() 
-    {
-        return companyId;
-    }
-    public void setCompanyName(String companyName) 
-    {
-        this.companyName = companyName;
-    }
-
-    public String getCompanyName() 
-    {
-        return companyName;
-    }
-    public void setDeptId(Long deptId) 
-    {
-        this.deptId = deptId;
-    }
-
-    public Long getDeptId() 
-    {
-        return deptId;
-    }
-    public void setDeptName(String deptName) 
-    {
-        this.deptName = deptName;
-    }
-
-    public String getDeptName() 
-    {
-        return deptName;
-    }
-    public void setDetail(String detail) 
-    {
-        this.detail = detail;
-    }
-
-    public String getDetail() 
-    {
-        return detail;
-    }
-
-    @Override
-    public String toString() {
-        return "TContract{" +
-                "id=" + id +
-                ", companyId=" + companyId +
-                ", companyName='" + companyName + '\'' +
-                ", deptId=" + deptId +
-                ", deptName='" + deptName + '\'' +
-                ", detail='" + detail + '\'' +
-                ", startTime=" + startTime +
-                ", endTime=" + endTime +
-                '}';
-    }
 }

--
Gitblit v1.8.0