手机号和身份证脱敏

This commit is contained in:
马三炮 2025-07-03 09:26:09 +08:00
parent 9c2ceb01c0
commit 10d83ecac4
6 changed files with 28 additions and 0 deletions

View File

@ -66,6 +66,8 @@ public class TbCompanyPerfServiceImpl implements TbCompanyPerfService {
//获取附件信息
List<TbFileSourceVo> tbFileSourceVoList = tbFileSourceService.getTbFileSourceList(tbCompanyPerf.getId(), TableType.TB_COMPANY_PERF.getCode());
tbCompanyPerf.setTbFileSourceVoList(tbFileSourceVoList);
//手机号脱敏
tbCompanyPerf.setOwnerPhone(StringUtils.desensitizePhone(tbCompanyPerf.getOwnerPhone()));
}
}
return tbCompanyPerfList;
@ -79,8 +81,14 @@ public class TbCompanyPerfServiceImpl implements TbCompanyPerfService {
@Override
public TbCompanyPerfVo getTbCompanyPerfById(TbCompanyPerfVo tbCompanyPerfVo) {
TbCompanyPerfVo tbCompanyPerf = tbCompanyPerfMapper.getTbCompanyPerfById(tbCompanyPerfVo);
//手机号脱敏
tbCompanyPerf.setOwnerPhone(StringUtils.desensitizePhone(tbCompanyPerf.getOwnerPhone()));
//获取项目关键人员信息
List<TbCompanyPerfRelVo> tbCompanyPerfRelList = tbCompanyPerfRelService.getTbCompanyPerRelByPerfId(tbCompanyPerf.getId(),"1");
for (TbCompanyPerfRelVo tbCompanyPerfRelVo:tbCompanyPerfRelList) {
//身份证号脱敏
tbCompanyPerfRelVo.setIdCard(StringUtils.desensitizeIdCard(tbCompanyPerfRelVo.getIdCard()));
}
tbCompanyPerf.setTbCompanyPerfRelList(tbCompanyPerfRelList);
//获取附件信息
List<TbFileSourceVo> tbFileSourceVoList = tbFileSourceService.getTbFileSourceList(tbCompanyPerf.getId(), TableType.TB_COMPANY_PERF.getCode());

View File

@ -68,6 +68,8 @@ public class TbKeyPeopleServiceImpl implements TbKeyPeopleServcie {
List<TbKeyPeopleVo> tbKeyPeopleVoList = tbKeyPeopleMapper.getTbKeyPeopleList(tbKeyPeopleVo);
if (tbKeyPeopleVoList.size()>0){
for (TbKeyPeopleVo tbKeyPeople: tbKeyPeopleVoList) {
//身份证脱敏
tbKeyPeople.setIdCard(StringUtils.desensitizeIdCard(tbKeyPeople.getIdCard()));
//获取资格证书信息
List<TbCertificationVo> certificateList = tbCertificationService.getTbCertificateList(tbKeyPeople.getId(),TableType.TB_KEY_PEOPLE.getCode());
tbKeyPeople.setCertificateList(certificateList);
@ -88,6 +90,8 @@ public class TbKeyPeopleServiceImpl implements TbKeyPeopleServcie {
public TbKeyPeopleVo getTbKeyPeopleById(TbKeyPeopleVo tbKeyPeopleVo) {
TbKeyPeopleVo tbKeyPeople = tbKeyPeopleMapper.getTbKeyPeopleById(tbKeyPeopleVo);
//身份证脱敏
tbKeyPeople.setIdCard(StringUtils.desensitizeIdCard(tbKeyPeople.getIdCard()));
//获取资格证书信息
List<TbCertificationVo> certificateList = tbCertificationService.getTbCertificateList(tbKeyPeople.getId(),TableType.TB_KEY_PEOPLE.getCode());
tbKeyPeople.setCertificateList(certificateList);

View File

@ -64,6 +64,7 @@ public class TbOtherPeopleServiceImpl implements TbOtherPeopleService {
List<TbOtherPeopleVo> tbOtherPeopleVoList = tbOtherPeopleMapper.getTbOtherPeopleList(tbOtherPeopleVo);
if (tbOtherPeopleVoList.size()>0){
for (TbOtherPeopleVo tbOtherPeople: tbOtherPeopleVoList) {
tbOtherPeople.setIdCard(StringUtils.desensitizeIdCard(tbOtherPeople.getIdCard()));
//获取资格证书信息
List<TbCertificationVo> certificateList = tbCertificationService.getTbCertificateList(tbOtherPeople.getId(),TableType.TB_OTHER_PEOPLE.getCode());
tbOtherPeople.setCertificateList(certificateList);
@ -83,6 +84,7 @@ public class TbOtherPeopleServiceImpl implements TbOtherPeopleService {
@Override
public TbOtherPeopleVo getTbOtherPeopleById(TbOtherPeopleVo tbOtherPeopleVo) {
TbOtherPeopleVo tbOtherPeople = tbOtherPeopleMapper.getTbOtherPeopleById(tbOtherPeopleVo);
tbOtherPeople.setIdCard(StringUtils.desensitizeIdCard(tbOtherPeople.getIdCard()));
//获取资格证书信息
List<TbCertificationVo> certificateList = tbCertificationService.getTbCertificateList(tbOtherPeople.getId(),TableType.TB_OTHER_PEOPLE.getCode());
tbOtherPeople.setCertificateList(certificateList);

View File

@ -63,6 +63,8 @@ public class TbSubPeopleServiceImpl implements TbSubPeopleService {
List<TbSubPeopleVo> tbSubPeopleList = tbSubPeopleMapper.getTbSubPeopleList(tbSubPeopleVo);
if (tbSubPeopleList.size()>0){
for (TbSubPeopleVo tbSubPeople: tbSubPeopleList) {
//身份证脱敏
tbSubPeople.setIdCard(StringUtils.desensitizeIdCard(tbSubPeople.getIdCard()));
//获取人员附件
List<TbFileSourceVo> tbFileSourceVoList = tbFileSourceService.getTbFileSourceList(tbSubPeople.getId(), TableType.TB_SUB_PEOPLE.getCode());
tbSubPeople.setTbFileSourceVoList(tbFileSourceVoList);
@ -79,6 +81,8 @@ public class TbSubPeopleServiceImpl implements TbSubPeopleService {
@Override
public TbSubPeopleVo getTbSubPeopleById(TbSubPeopleVo tbSubPeopleVo) {
TbSubPeopleVo tbSubPeople = tbSubPeopleMapper.getTbSubPeopleById(tbSubPeopleVo);
//身份证脱敏
tbSubPeople.setIdCard(StringUtils.desensitizeIdCard(tbSubPeople.getIdCard()));
//获取人员附件
List<TbFileSourceVo> tbFileSourceVoList = tbFileSourceService.getTbFileSourceList(tbSubPeople.getId(), TableType.TB_SUB_PEOPLE.getCode());
tbSubPeople.setTbFileSourceVoList(tbFileSourceVoList);

View File

@ -56,6 +56,9 @@ public class TbSubPerfServiceImpl implements TbSubPerfService {
for (TbSubPerfVo tbSubPerf:tbSubPerfList) {
//获取项目关键人员信息
List<TbCompanyPerfRelVo> tbCompanyPerfRelList = tbCompanyPerfRelService.getTbCompanyPerRelByPerfId(tbSubPerf.getId(),"2");
for (TbCompanyPerfRelVo tbCompanyPerfRelVo:tbCompanyPerfRelList) {
tbCompanyPerfRelVo.setIdCard(StringUtils.desensitizeIdCard(tbCompanyPerfRelVo.getIdCard()));
}
tbSubPerf.setTbCompanyPerfRelList(tbCompanyPerfRelList);
//获取附件信息
List<TbFileSourceVo> tbFileSourceVoList = tbFileSourceService.getTbFileSourceList(tbSubPerf.getId(), TableType.TB_SUB_PERF.getCode());
@ -76,6 +79,9 @@ public class TbSubPerfServiceImpl implements TbSubPerfService {
TbSubPerfVo tbSubPerf = tbSubPerfMapper.getTbSubPerfById(tbSubPerfVo);
//获取项目关键人员信息
List<TbCompanyPerfRelVo> tbCompanyPerfRelList = tbCompanyPerfRelService.getTbCompanyPerRelByPerfId(tbSubPerf.getId(),"2");
for (TbCompanyPerfRelVo tbCompanyPerfRelVo:tbCompanyPerfRelList) {
tbCompanyPerfRelVo.setIdCard(StringUtils.desensitizeIdCard(tbCompanyPerfRelVo.getIdCard()));
}
tbSubPerf.setTbCompanyPerfRelList(tbCompanyPerfRelList);
//获取附件信息
List<TbFileSourceVo> tbFileSourceVoList = tbFileSourceService.getTbFileSourceList(tbSubPerf.getId(), TableType.TB_SUB_PERF.getCode());

View File

@ -57,6 +57,8 @@ public class TbSubServiceImpl implements TbSubService {
List<TbSubVo> tbSubVoList = tbSubMapper.getTbSubList(tbSubVo);
if (tbSubVoList.size()>0){
for (TbSubVo tbSub: tbSubVoList) {
//手机号脱敏
tbSub.setUserPhone(StringUtils.desensitizePhone(tbSub.getUserPhone()));
//获取人员附件
List<TbFileSourceVo> tbFileSourceVoList = tbFileSourceService.getTbFileSourceList(tbSub.getId(), TableType.TB_SUB.getCode());
tbSub.setTbFileSourceVoList(tbFileSourceVoList);
@ -73,6 +75,8 @@ public class TbSubServiceImpl implements TbSubService {
@Override
public TbSubVo getTbSubById(TbSubVo tbSubVo) {
TbSubVo tbSub = tbSubMapper.getTbSubById(tbSubVo);
//手机号脱敏
tbSub.setUserPhone(StringUtils.desensitizePhone(tbSub.getUserPhone()));
//获取人员附件
List<TbFileSourceVo> tbFileSourceVoList = tbFileSourceService.getTbFileSourceList(tbSub.getId(), TableType.TB_SUB.getCode());
tbSub.setTbFileSourceVoList(tbFileSourceVoList);