From b6fd093def92b3a538932c6cb808c94fa6275fa1 Mon Sep 17 00:00:00 2001 From: Jinquan_Ou <Jinquan@gdut.com> Date: 星期一, 27 三月 2023 22:01:29 +0800 Subject: [PATCH] 加上url --- zhang-content/src/main/java/com/ruoyi/domain/ZAbroad.java | 68 +++++++-------------------------- 1 files changed, 15 insertions(+), 53 deletions(-) diff --git a/zhang-content/src/main/java/com/ruoyi/domain/ZAbroad.java b/zhang-content/src/main/java/com/ruoyi/domain/ZAbroad.java index 21c0796..2f908e6 100644 --- a/zhang-content/src/main/java/com/ruoyi/domain/ZAbroad.java +++ b/zhang-content/src/main/java/com/ruoyi/domain/ZAbroad.java @@ -3,8 +3,14 @@ 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.ruoyi.common.annotation.Excel; +import lombok.Data; +import lombok.ToString; + import java.io.Serializable; import java.time.LocalDateTime; +import java.util.Date; /** * <p> @@ -14,83 +20,39 @@ * @author ojq * @since 2023-03-14 */ +@Data +@ToString @TableName("z_abroad") public class ZAbroad implements Serializable { private static final long serialVersionUID = 1L; @TableId(value = "id", type = IdType.AUTO) - private Integer id; + private Long id; /** * 鐢ㄦ埛id */ - private Integer userId; + private Long userId; /** * 鐩殑鍦� */ + @Excel(name="鐩殑鍦�") private String destination; /** * 鍒扮洰鐨勫湴浜嬬敱 */ + @Excel(name="鍒扮洰鐨勫湴鏄敱") private String cause; /** * 璧峰鏃ユ湡 */ - private LocalDateTime startDate; + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name="璧峰鏃ユ湡",dateFormat = "yyyy-MM-dd") + private Date startDate; - public Integer getId() { - return id; - } - - public void setId(Integer id) { - this.id = id; - } - - public Integer getUserId() { - return userId; - } - - public void setUserId(Integer userId) { - this.userId = userId; - } - - public String getDestination() { - return destination; - } - - public void setDestination(String destination) { - this.destination = destination; - } - - public String getCause() { - return cause; - } - - public void setCause(String cause) { - this.cause = cause; - } - - public LocalDateTime getStartDate() { - return startDate; - } - - public void setStartDate(LocalDateTime startDate) { - this.startDate = startDate; - } - - @Override - public String toString() { - return "ZAbroad{" + - "id=" + id + - ", userId=" + userId + - ", destination=" + destination + - ", cause=" + cause + - ", startDate=" + startDate + - "}"; - } } -- Gitblit v1.9.1