From 35057d7fb7a19a2e1b934f5c1b7f692cb7e5bcf0 Mon Sep 17 00:00:00 2001
From: feige <791364011@qq.com>
Date: 星期二, 09 七月 2024 21:46:19 +0800
Subject: [PATCH] get请求修改为了post请求
---
zhang-content/src/main/java/com/ruoyi/domain/ZAbroad.java | 75 +++++++++++--------------------------
1 files changed, 22 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..10c8719 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,46 @@
* @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 startTime;
+
+ /**
+ * 缁撴潫鏃ユ湡
+ */
+ @JsonFormat(pattern = "yyyy-MM-dd")
+ @Excel(name="缁撴潫鏃ユ湡",dateFormat = "yyyy-MM-dd")
+ private Date endTime;
- 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