联系人姓名加密
This commit is contained in:
parent
4e816a7209
commit
522db6ae2f
|
|
@ -395,22 +395,22 @@ public class CrmCustomerServiceImpl extends BaseServiceImpl<CrmCustomerMapper, C
|
|||
//crmModel.forEach((key, value) -> System.out.println("Key: " + key + ", Value: " + value));
|
||||
// 获取数据
|
||||
String contactsMobile = (String)crmModel.get("contactsMobile");
|
||||
String fieldCbiasz = (String)crmModel.get("fieldCbiasz");//详情页的联系人姓名
|
||||
//String contactsName = (String)crmModel.get("contactsName");
|
||||
String name = (String)crmModel.get("telephone");//详情页的联系人姓名
|
||||
String contactsName = (String)crmModel.get("contactsName");
|
||||
String email = (String)crmModel.get("email");
|
||||
String fliedKjhmgc = (String) crmModel.get("fliedKjhmgc");//详情页的详细地址
|
||||
//String contactsAddress = (String) crmModel.get("contactsAddress");
|
||||
// 脱敏处理
|
||||
String maskMobile = SensitiveDataMaskUtil.maskPhone(contactsMobile);
|
||||
String maskFieldCbiasz = SensitiveDataMaskUtil.maskName(fieldCbiasz);
|
||||
//String maskName = SensitiveDataMaskUtil.maskName(contactsName);
|
||||
String maskName = SensitiveDataMaskUtil.maskName(name);
|
||||
String maskContactsName = SensitiveDataMaskUtil.maskName(contactsName);
|
||||
String maskEmail = SensitiveDataMaskUtil.maskEmail(email);
|
||||
String maskFliedKjhmgc = SensitiveDataMaskUtil.maskAddress(fliedKjhmgc);
|
||||
//String maskAddress = SensitiveDataMaskUtil.maskAddress(contactsAddress);
|
||||
// 重新组装crmModel
|
||||
crmModel.replace("mobile", maskMobile);
|
||||
crmModel.replace("fieldCbiasz", maskFieldCbiasz);
|
||||
//crmModel.replace("contactsName", maskName);
|
||||
crmModel.replace("telephone", maskName);
|
||||
crmModel.replace("contactsName", maskContactsName);
|
||||
crmModel.replace("email", maskEmail);
|
||||
crmModel.replace("fliedKjhmgc", maskFliedKjhmgc);
|
||||
//crmModel.replace("contactsAddress", maskAddress);
|
||||
|
|
@ -457,7 +457,7 @@ public class CrmCustomerServiceImpl extends BaseServiceImpl<CrmCustomerMapper, C
|
|||
plaintext = (String) crmModel.get("mobile");
|
||||
} else if (plaintextVO.getField().equals("email")){
|
||||
plaintext = (String) crmModel.get("email");
|
||||
} else if (plaintextVO.getField().equals("fieldCbiasz")){
|
||||
} else if (plaintextVO.getField().equals("telephone")){ //详情页联系人姓名
|
||||
int contactsId = (Integer) crmModel.get("contactsId");
|
||||
plaintext = crmContactsService.getContactsName(contactsId);
|
||||
} else if (plaintextVO.getField().equals("fliedKjhmgc")){
|
||||
|
|
|
|||
Loading…
Reference in New Issue