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/ComSwPatrolRecordDO.java |  168 ++++++++++++++++---------------------------------------
 1 files changed, 49 insertions(+), 119 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComSwPatrolRecordDO.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComSwPatrolRecordDO.java
index 77ec7b4..25bb0cf 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComSwPatrolRecordDO.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComSwPatrolRecordDO.java
@@ -1,11 +1,11 @@
 package com.panzhihua.service_community.model.dos;
 
-import com.baomidou.mybatisplus.annotation.*;
-import lombok.Data;
-
 import java.io.Serializable;
 import java.util.Date;
 
+import com.baomidou.mybatisplus.annotation.*;
+
+import lombok.Data;
 
 /**
  * @auther txb
@@ -20,9 +20,9 @@
     private static final long serialVersionUID = 1L;
 
     /**
-    * 主键id
-    */
-    @TableId(type = IdType.INPUT)
+     * 主键id
+     */
+    @TableId(type = IdType.ASSIGN_ID)
     private Long id;
 
     /**
@@ -36,34 +36,29 @@
     private Date patrolTime;
 
     /**
-     * 天气
+     * 巡查类型(1.防火巡查2.防汛巡查3.防疫巡查),多条以逗号隔开
      */
-    private String weather;
+    private String patrolType;
 
     /**
-     * 温度
+     * 巡查领导
      */
-    private String temperature;
-
-    /**
-     * 风
-     */
-    private String wind;
-
-    /**
-    * (取字典表国家标准编码)巡查类型(1.防火巡查2.防汛巡查3.防疫巡查)
-    */
-    private Integer patrolType;
-
-    /**
-    * 巡查领导
-    */
     private String patrolLeader;
 
     /**
-    * 巡查人员
-    */
+     * 巡查人员
+     */
     private String patrolPerson;
+
+    /**
+     * 人员名字,多个以逗号隔开
+     */
+    private String personName;
+
+    /**
+     * 人员电话,多个以逗号隔开
+     */
+    private String personPhone;
 
     /**
      * 巡查地址
@@ -71,88 +66,48 @@
     private String address;
 
     /**
-    * 巡查记录
-    */
+     * 巡查记录
+     */
     private String recordContent;
 
     /**
-    * 发现记录
-    */
+     * 发现记录
+     */
     private String findRecord;
 
     /**
-    * 记录照片
-    */
+     * 记录照片
+     */
     private String recordPhoto;
 
     /**
-    * 备注
-    */
+     * 备注
+     */
     private String remark;
 
     /**
-    * 接班领导
-    */
+     * 接班领导
+     */
     private String successionLeader;
 
     /**
-    * 接班人员
-    */
+     * 接班人员
+     */
     private String successionPerson;
 
     /**
-    * 接班时间
-    */
+     * 接班时间
+     */
     private Date successionTime;
 
     /**
-    * 是否存在隐患(1是 、0否)
-    */
+     * 是否存在隐患(1是 、0否)
+     */
     private Integer isHiddenDanger;
 
     /**
-    * 隐患名称
-    */
-    private String dagerName;
-
-    /**
-    * 排查时间
-    */
-    private Date checkTime;
-
-    /**
-    * 主体部门、单位或个人全称
-    */
-    private String unitName;
-
-    /**
-    * 隐患简述
-    */
-    private String dagerDescription;
-
-    /**
-    * 是否立即整改(1是 、0否)
-    */
-    private Integer isRectifyImmediately;
-
-    /**
-    * 采取措施
-    */
-    private String takeSteps;
-
-    /**
-    * 采取措施照片
-    */
-    private String stepsPhoto;
-
-    /**
-    * 整改人员
-    */
-    private String rectifyPerson;
-
-    /**
-    * 创建时间
-    */
+     * 创建时间
+     */
     @TableField(fill = FieldFill.INSERT)
     private Date createAt;
 
@@ -162,9 +117,9 @@
     private Long createBy;
 
     /**
-    * 更新时间
-    */
-    @TableField(fill = FieldFill.UPDATE)
+     * 更新时间
+     */
+    @TableField(fill = FieldFill.INSERT_UPDATE)
     private Date updateAt;
 
     /**
@@ -174,36 +129,11 @@
 
     @Override
     public String toString() {
-        return "ComSwPatrolRecordDO{" +
-                "id=" + id +
-                ", patrolTime=" + patrolTime +
-                ", weather=" + weather +
-                ", temperature=" + temperature +
-                ", wind=" + wind +
-                ", patrolType=" + patrolType +
-                ", patrolLeader=" + patrolLeader +
-                ", patrolPerson=" + patrolPerson +
-                ", address=" + address +
-                ", recordContent=" + recordContent +
-                ", findRecord=" + findRecord +
-                ", recordPhoto=" + recordPhoto +
-                ", remark=" + remark +
-                ", successionLeader=" + successionLeader +
-                ", successionPerson=" + successionPerson +
-                ", successionTime=" + successionTime +
-                ", isHiddenDanger=" + isHiddenDanger +
-                ", dagerName=" + dagerName +
-                ", checkTime=" + checkTime +
-                ", unitName=" + unitName +
-                ", dagerDescription=" + dagerDescription +
-                ", isRectifyImmediately=" + isRectifyImmediately +
-                ", takeSteps=" + takeSteps +
-                ", stepsPhoto=" + stepsPhoto +
-                ", rectifyPerson=" + rectifyPerson +
-                ", createAt=" + createAt +
-                ", createBy=" + createBy +
-                ", updateAt=" + updateAt +
-                ", updateBy=" + updateBy +
-                "}";
-        }
+        return "ComSwPatrolRecordDO{" + "id=" + id + ", patrolTime=" + patrolTime + ", patrolType=" + patrolType
+            + ", patrolLeader=" + patrolLeader + ", patrolPerson=" + patrolPerson + ", address=" + address
+            + ", recordContent=" + recordContent + ", findRecord=" + findRecord + ", recordPhoto=" + recordPhoto
+            + ", remark=" + remark + ", successionLeader=" + successionLeader + ", successionPerson=" + successionPerson
+            + ", successionTime=" + successionTime + ", isHiddenDanger=" + isHiddenDanger + ", createAt=" + createAt
+            + ", createBy=" + createBy + ", updateAt=" + updateAt + ", updateBy=" + updateBy + "}";
+    }
 }
\ No newline at end of file

--
Gitblit v1.7.1