From 179c4d64313c9b7572778da4aaaf6c6584fe457d Mon Sep 17 00:00:00 2001 From: mitao <2763622819@qq.com> Date: 星期二, 20 五月 2025 23:48:08 +0800 Subject: [PATCH] 修改文件上传类型限制 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComActReserveOperationRecordDO.java | 41 ++++++++++++++++++++++------------------- 1 files changed, 22 insertions(+), 19 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComActReserveOperationRecordDO.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComActReserveOperationRecordDO.java index 2c44343..69cf3ff 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComActReserveOperationRecordDO.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComActReserveOperationRecordDO.java @@ -3,6 +3,7 @@ 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 lombok.Data; import java.io.Serializable; @@ -24,7 +25,7 @@ /** * 主键id */ - @TableId(type = IdType.AUTO) + @TableId(type = IdType.ASSIGN_ID) private Long id; /** @@ -55,6 +56,7 @@ /** * 操作时间 */ + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") private Date reserveTime; /** @@ -75,30 +77,13 @@ /** * 创建时间 */ + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") private Date createAt; /** * 创建人 */ private Long createBy; - - /** - * 类型(1.本人操作 2.社区操作) - */ - public interface type{ - int br = 1; - int sq = 2; - } - - /** - * 状态(1.提交 2.预约成功 3.预约失败 4.取消) - */ - public interface status{ - int tj = 1; - int yycg = 2; - int yysb = 3; - int qx = 4; - } @Override public String toString() { @@ -117,4 +102,22 @@ ", createBy=" + createBy + "}"; } + + /** + * 1本人 2社区 + */ + public interface type{ + int br=1; + int sq=2; + } + /** + * 状态(1.提交 2.预约成功 3.预约失败 4.取消) + */ + public interface status{ + int ytj=1; + int cg=2; + int sb=3; + int qx=4; + } + } \ No newline at end of file -- Gitblit v1.7.1