From 10df7e29b51d6a2efacc83d870856f57d97a9b66 Mon Sep 17 00:00:00 2001 From: yanghui <2536613402@qq.com> Date: 星期一, 24 十月 2022 13:48:24 +0800 Subject: [PATCH] #feat 修改别名 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComElderAuthElderliesDO.java | 46 ++++++++++++++++++---------------------------- 1 files changed, 18 insertions(+), 28 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComElderAuthElderliesDO.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComElderAuthElderliesDO.java index 11323eb..789d697 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComElderAuthElderliesDO.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComElderAuthElderliesDO.java @@ -1,6 +1,8 @@ package com.panzhihua.service_community.model.dos; import com.baomidou.mybatisplus.annotation.*; +import com.panzhihua.common.model.helper.encrypt.EncryptDecryptClass; +import com.panzhihua.common.model.helper.encrypt.EncryptDecryptField; import lombok.Data; import java.io.Serializable; @@ -17,6 +19,7 @@ @Data @TableName("com_elder_auth_elderlies") +@EncryptDecryptClass public class ComElderAuthElderliesDO implements Serializable { private static final long serialVersionUID = 1L; @@ -24,7 +27,7 @@ /** * 主键id */ - @TableId(type = IdType.AUTO) + @TableId(type = IdType.ASSIGN_ID) private Long id; /** @@ -55,12 +58,13 @@ /** * 身份证号 */ + @EncryptDecryptField private String idCard; /** - * 性别 + * 性别(1.男 2.女 3.其他) */ - private String sex; + private Integer sex; /** * 年龄 @@ -116,6 +120,7 @@ /** * 更新时间 */ + @TableField(fill = FieldFill.UPDATE) private Date updateAt; /** @@ -123,29 +128,14 @@ */ private Long updateBy; -@Override -public String toString() { - return "ComElderAuthElderliesDO{" + - "id=" + id + - ", populationId=" + populationId + - ", streetId=" + streetId + - ", communityId=" + communityId + - ", phone=" + phone + - ", name=" + name + - ", idCard=" + idCard + - ", sex=" + sex + - ", age=" + age + - ", birthday=" + birthday + - ", personnelCategory=" + personnelCategory + - ", isRegister=" + isRegister + - ", isAlive=" + isAlive + - ", address=" + address + - ", remark=" + remark + - ", receiveAllowanceBegin=" + receiveAllowanceBegin + - ", createAt=" + createAt + - ", createBy=" + createBy + - ", updateAt=" + updateAt + - ", updateBy=" + updateBy + - "}"; - } + /** + * 人员类别(1.80-89周岁 2.90-99周岁 3.100周岁(含)以上) + */ + public interface personnelCategory { + int under90 = 1; + int under100 = 2; + int above100 = 3; + } + + } \ No newline at end of file -- Gitblit v1.7.1