1.添加手机号和身份证的安全性和保密性
2.添加对应的定时任务
This commit is contained in:
@@ -170,4 +170,16 @@ public class AppUser extends BaseEntity
|
||||
|
||||
@ApiModelProperty("所属行政区划")
|
||||
private String regionCode;
|
||||
|
||||
@ApiModelProperty("手机号完整性")
|
||||
private String phoneCipher;
|
||||
|
||||
@ApiModelProperty("身份证完整性")
|
||||
private String idCardCipher;
|
||||
|
||||
@ApiModelProperty("手机号机密性")
|
||||
private String phoneEncrypt;
|
||||
|
||||
@ApiModelProperty("身份证机密性")
|
||||
private String idCardEncrypt;
|
||||
}
|
||||
|
||||
@@ -138,4 +138,16 @@ public class Company extends BaseEntity
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
private List<JobDTO> jobList;
|
||||
|
||||
@ApiModelProperty("法人联系方式完整性")
|
||||
private String legalPhoneCipher;
|
||||
|
||||
@ApiModelProperty("法人身份证完整性")
|
||||
private String legalIdCardCipher;
|
||||
|
||||
@ApiModelProperty("法人联系方式机密性")
|
||||
private String legalPhoneEncrypt;
|
||||
|
||||
@ApiModelProperty("法人身份证机密性")
|
||||
private String legalIdCardEncrypt;
|
||||
}
|
||||
|
||||
@@ -45,4 +45,10 @@ public class CompanyContact extends BaseEntity {
|
||||
@ApiModelProperty("联系人电话")
|
||||
private String contactPersonPhone;
|
||||
|
||||
@ApiModelProperty("联系人电话完整性")
|
||||
private String contactPersonPhoneCipher;
|
||||
|
||||
@ApiModelProperty("联系人电话机密性")
|
||||
private String contactPersonPhoneEncrypt;
|
||||
|
||||
}
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
package com.ruoyi.common.core.domain.entity;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import javax.validation.constraints.*;
|
||||
|
||||
import com.ruoyi.common.utils.StringUtils;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
@@ -91,12 +93,27 @@ public class SysUser extends BaseEntity
|
||||
/** 角色组 */
|
||||
private Long[] roleIds;
|
||||
|
||||
/**角色组String*/
|
||||
private String roleIdsStr;
|
||||
|
||||
/** 岗位组 */
|
||||
private Long[] postIds;
|
||||
|
||||
/** 角色ID */
|
||||
private Long roleId;
|
||||
|
||||
/**手机号完整性*/
|
||||
public String phonenumberCipher;
|
||||
|
||||
/**身份证完整性*/
|
||||
private String idCardCipher;
|
||||
|
||||
/**手机号机密性*/
|
||||
public String phonenumberEncrypt;
|
||||
|
||||
/**身份证机密性*/
|
||||
private String idCardEncrypt;
|
||||
|
||||
public SysUser()
|
||||
{
|
||||
|
||||
@@ -321,6 +338,51 @@ public class SysUser extends BaseEntity
|
||||
this.appUserId = appUserId;
|
||||
}
|
||||
|
||||
public String getPhonenumberCipher() {
|
||||
return phonenumberCipher;
|
||||
}
|
||||
|
||||
public void setPhonenumberCipher(String phonenumberCipher) {
|
||||
this.phonenumberCipher = phonenumberCipher;
|
||||
}
|
||||
|
||||
public String getIdCardCipher() {
|
||||
return idCardCipher;
|
||||
}
|
||||
|
||||
public void setIdCardCipher(String idCardCipher) {
|
||||
this.idCardCipher = idCardCipher;
|
||||
}
|
||||
|
||||
public String getRoleIdsStr() {
|
||||
return roleIdsStr;
|
||||
}
|
||||
|
||||
public String getPhonenumberEncrypt() {
|
||||
return phonenumberEncrypt;
|
||||
}
|
||||
|
||||
public void setPhonenumberEncrypt(String phonenumberEncrypt) {
|
||||
this.phonenumberEncrypt = phonenumberEncrypt;
|
||||
}
|
||||
|
||||
public String getIdCardEncrypt() {
|
||||
return idCardEncrypt;
|
||||
}
|
||||
|
||||
public void setIdCardEncrypt(String idCardEncrypt) {
|
||||
this.idCardEncrypt = idCardEncrypt;
|
||||
}
|
||||
|
||||
public void setRoleIdsStr(String roleIdsStr) {
|
||||
this.roleIdsStr = roleIdsStr;
|
||||
if (!StringUtils.isBlank(roleIdsStr)) {
|
||||
this.roleIds = Arrays.stream(roleIdsStr.split(",")).map(Long::parseLong).toArray(Long[]::new);
|
||||
}else{
|
||||
this.roleIds = new Long[0];
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
@@ -345,6 +407,11 @@ public class SysUser extends BaseEntity
|
||||
.append("dept", getDept())
|
||||
.append("idCard", getIdCard())
|
||||
.append("appUserId", getAppUserId())
|
||||
.append("phonenumberCipher", getPhonenumberCipher())
|
||||
.append("idCardCipher", getIdCardCipher())
|
||||
.append("roleIdsStr", getRoleIdsStr())
|
||||
.append("phonenumberEncrypt", getPhonenumberEncrypt())
|
||||
.append("idCardEncrypt", getIdCardEncrypt())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user