添加企业和岗位同步365联系方式
This commit is contained in:
@@ -20,5 +20,7 @@ public interface CompanyContactService {
|
||||
int insertContact(CompanyContact contact);
|
||||
|
||||
void updateCompanyContactEncrypt();
|
||||
|
||||
void updateCronCompanyContactEncrypt();
|
||||
}
|
||||
|
||||
|
||||
@@ -18,5 +18,7 @@ public interface JobContactService{
|
||||
int batchInsert(List<JobContact> list);
|
||||
|
||||
void updateJobContactEncrypt();
|
||||
|
||||
void updateCronJobContactEncrypt();
|
||||
}
|
||||
|
||||
|
||||
@@ -60,4 +60,16 @@ public class CompanyContactServiceImpl extends ServiceImpl<CompanyContactMapper,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void updateCronCompanyContactEncrypt(){
|
||||
List<CompanyContact> list=companyContactMapper.getCronSelectList(new CompanyContact());
|
||||
List<CompanyContact> encryptList=list.stream().peek(QuickValidUtils::saveCompanyContactPhoneSm4).collect(Collectors.toList());
|
||||
if(!encryptList.isEmpty()){
|
||||
List<List<CompanyContact>> batches = StringUtil.splitList(encryptList, StringUtil.BATCH_SIZE);
|
||||
for (List<CompanyContact> batch : batches) {
|
||||
companyContactMapper.batchUpdate(batch);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,4 +40,16 @@ public class JobContactServiceImpl extends ServiceImpl<JobContactMapper, JobCont
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void updateCronJobContactEncrypt(){
|
||||
List<JobContact> list=jobContactMapper.getCronSelectList(new JobContact());
|
||||
List<JobContact> encryptList=list.stream().peek(QuickValidUtils::savePhoneSm4).collect(Collectors.toList());
|
||||
if(!encryptList.isEmpty()){
|
||||
List<List<JobContact>> batches = StringUtil.splitList(encryptList, StringUtil.BATCH_SIZE);
|
||||
for (List<JobContact> batch : batches) {
|
||||
jobContactMapper.batchUpdateEncrypt(batch);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user