提交 b13364b9 编写于 作者: xinxu.wang's avatar xinxu.wang

Merge branch 'release' into 'dev-tengxun-150'

mobilePhoneDencrypt

See merge request !145
流水线 #55705 已失败 于阶段
...@@ -48,6 +48,7 @@ public class DoctorController extends AccountBaseController { ...@@ -48,6 +48,7 @@ public class DoctorController extends AccountBaseController {
String dencrypt = EncryptUtils.decryptContent(mobilePhone, EncryptConstants.ENCRYPT_TYPE_MOBILE, super.getToken()); String dencrypt = EncryptUtils.decryptContent(mobilePhone, EncryptConstants.ENCRYPT_TYPE_MOBILE, super.getToken());
mobilePhone = dencrypt.substring(0, 3) + "****" + dencrypt.substring(7, 11); mobilePhone = dencrypt.substring(0, 3) + "****" + dencrypt.substring(7, 11);
doctorInfo.setMobilePhone(mobilePhone); doctorInfo.setMobilePhone(mobilePhone);
doctorInfo.setMobilePhoneDencrypt(dencrypt);
if (StringUtils.isNotBlank(doctorInfo.getCard())) { if (StringUtils.isNotBlank(doctorInfo.getCard())) {
doctorInfo.setCard(EncryptUtils.decryptContent(doctorInfo.getCard(), EncryptConstants.ENCRYPT_TYPE_DOCTOR_IDNO, EncryptConstants.ENCRYPT_DECRYPT_KEY)); doctorInfo.setCard(EncryptUtils.decryptContent(doctorInfo.getCard(), EncryptConstants.ENCRYPT_TYPE_DOCTOR_IDNO, EncryptConstants.ENCRYPT_DECRYPT_KEY));
} }
......
...@@ -14,6 +14,7 @@ public class Doctor { ...@@ -14,6 +14,7 @@ public class Doctor {
private Integer age; private Integer age;
private String mobilePhone; private String mobilePhone;
private String mobilePhoneDencrypt;
private String tel; private String tel;
...@@ -125,6 +126,14 @@ public class Doctor { ...@@ -125,6 +126,14 @@ public class Doctor {
private Integer showFlag; private Integer showFlag;
public String getMobilePhoneDencrypt() {
return mobilePhoneDencrypt;
}
public void setMobilePhoneDencrypt(String mobilePhoneDencrypt) {
this.mobilePhoneDencrypt = mobilePhoneDencrypt;
}
public Integer getId() { public Integer getId() {
return id; return id;
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册