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/ComPensionAuthPensionerDO.java |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComPensionAuthPensionerDO.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComPensionAuthPensionerDO.java
index 3e5dcee..4188364 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComPensionAuthPensionerDO.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComPensionAuthPensionerDO.java
@@ -7,6 +7,8 @@
 import com.baomidou.mybatisplus.annotation.TableId;
 import com.baomidou.mybatisplus.annotation.TableName;
 
+import com.panzhihua.common.model.helper.encrypt.EncryptDecryptClass;
+import com.panzhihua.common.model.helper.encrypt.EncryptDecryptField;
 import lombok.Data;
 
 /**
@@ -18,6 +20,7 @@
  */
 @Data
 @TableName("com_pension_auth_pensioners")
+@EncryptDecryptClass
 public class ComPensionAuthPensionerDO implements Serializable {
 
     private static final long serialVersionUID = 1L;
@@ -25,7 +28,7 @@
     /**
      * 主键id
      */
-    @TableId(type = IdType.AUTO)
+    @TableId(type = IdType.ASSIGN_ID)
     private Long id;
     /**
      * 人口id
@@ -50,11 +53,12 @@
     /**
      * 身份证号
      */
+    @EncryptDecryptField
     private String idCard;
     /**
      * 性别
      */
-    private String sex;
+    private Integer sex;
     /**
      * 年龄
      */
@@ -104,6 +108,14 @@
      */
     private Long updateBy;
 
+    /**
+     * 是否枚举(1.是 0.否)
+     */
+    public interface isOk{
+        int yes = 1;
+        int no = 0;
+    }
+
     @Override
     public String toString() {
         return "ComPensionAuthPensionerDO{" +

--
Gitblit v1.7.1