From dee79be6efe1d0943bc0981778557d265dd02b9f Mon Sep 17 00:00:00 2001 From: "rong.liu" Date: Thu, 14 Dec 2023 18:59:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E5=90=8D=E8=AE=A4=E8=AF=81=E7=9B=B8?= =?UTF-8?q?=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AliRealNameAuthenticationController.java | 6 ++++++ .../entity/UserAuthenticationInformation.java | 14 +++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/users/src/main/java/com/huoran/users/controller/AliRealNameAuthenticationController.java b/users/src/main/java/com/huoran/users/controller/AliRealNameAuthenticationController.java index b5087ca..6dde4d0 100644 --- a/users/src/main/java/com/huoran/users/controller/AliRealNameAuthenticationController.java +++ b/users/src/main/java/com/huoran/users/controller/AliRealNameAuthenticationController.java @@ -19,6 +19,7 @@ import org.springframework.web.bind.annotation.*; import javax.servlet.http.HttpServletRequest; import java.io.IOException; +import java.util.Date; import java.util.Optional; @Api(value = "小程序-实名认证", tags = "小程序-实名认证") @@ -87,6 +88,11 @@ public class AliRealNameAuthenticationController { throw new RuntimeException(info.getRespMessage()); } + //设置用户当前认证时间 + userAuthenticationInformation.setRealNameAuthenticationTime(new Date()); + userAuthenticationInformation.setProvince(info.getProvince()); + userAuthenticationInformation.setCity(info.getCity()); + userAuthenticationInformation.setCounty(info.getCounty()); boolean addState = service.save(userAuthenticationInformation); return addState ? R.ok() : R.error("认证失败"); diff --git a/users/src/main/java/com/huoran/users/entity/UserAuthenticationInformation.java b/users/src/main/java/com/huoran/users/entity/UserAuthenticationInformation.java index 41af46b..9f0bd77 100644 --- a/users/src/main/java/com/huoran/users/entity/UserAuthenticationInformation.java +++ b/users/src/main/java/com/huoran/users/entity/UserAuthenticationInformation.java @@ -42,10 +42,10 @@ public class UserAuthenticationInformation implements Serializable { private String idCardNo; @ApiModelProperty(value = "生日") - private Date birthday; + private String birthday; - @ApiModelProperty(value = "年龄") - private Integer age; + /*@ApiModelProperty(value = "年龄") + private Integer age;*/ @ApiModelProperty(value = "性别") private String sex; @@ -65,11 +65,11 @@ public class UserAuthenticationInformation implements Serializable { @ApiModelProperty(value = "民族") private String nationality; - @ApiModelProperty(value = "有效期起始时间") - private Date startDate; + @ApiModelProperty(value = "身份证有效期起始时间") + private String startDate; - @ApiModelProperty(value = "有效期结束时间") - private Date endDate; + @ApiModelProperty(value = "身份证有效期结束时间") + private String endDate; @ApiModelProperty(value = "签发机关") private String issue;