|
@@ -95,7 +95,7 @@ public class TBUserArchivesServiceImpl extends ServiceImpl<TBUserArchivesMapper,
|
|
|
record.setAge(this.getAgeByIdentity(record.getIdentity()));
|
|
|
record.setAuthenticationStatus(record.getAuthenticationValidTime() != null && record.getAuthenticationValidTime() > currentTime);
|
|
|
String basePhotoPath = record.getBasePhotoPath();
|
|
|
- if (basePhotoPath != null && basePhotoPath.length() > 0){
|
|
|
+ if (basePhotoPath != null && basePhotoPath.length() > 0) {
|
|
|
record.setBasePhotoPreviewPath(basicAttachmentService.filePreviewPath(basePhotoPath));
|
|
|
}
|
|
|
}
|
|
@@ -353,22 +353,22 @@ public class TBUserArchivesServiceImpl extends ServiceImpl<TBUserArchivesMapper,
|
|
|
String roleNames = hasRoles.stream().map(RoleTypeEnum::getDesc).collect(Collectors.joining(","));
|
|
|
userArchivesImportDto.setRoleNames(roleNames);
|
|
|
GenderEnum gender = userArchivesImportDto.getGenderEnum();
|
|
|
- if (Objects.nonNull(gender)){
|
|
|
+ if (Objects.nonNull(gender)) {
|
|
|
userArchivesImportDto.setGender(gender.getTitle());
|
|
|
}
|
|
|
EducationEnum education = userArchivesImportDto.getEducationEnum();
|
|
|
- if (Objects.nonNull(education)){
|
|
|
+ if (Objects.nonNull(education)) {
|
|
|
userArchivesImportDto.setEducation(education.getTitle());
|
|
|
}
|
|
|
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
|
|
|
Long archivesTime = userArchivesImportDto.getArchivesTime();
|
|
|
Long authenticationValidTime = userArchivesImportDto.getAuthenticationValidTime();
|
|
|
- if (Objects.nonNull(archivesTime)){
|
|
|
+ if (Objects.nonNull(archivesTime)) {
|
|
|
String archivesTimeStr = sdf.format(new Date(archivesTime));
|
|
|
userArchivesImportDto.setArchivesTimeStr(archivesTimeStr);
|
|
|
}
|
|
|
- if (Objects.nonNull(authenticationValidTime)){
|
|
|
+ if (Objects.nonNull(authenticationValidTime)) {
|
|
|
String authenticationValidTimeStr = sdf.format(new Date(authenticationValidTime));
|
|
|
userArchivesImportDto.setAuthenticationValidTimeStr(authenticationValidTimeStr);
|
|
|
}
|
|
@@ -389,8 +389,8 @@ public class TBUserArchivesServiceImpl extends ServiceImpl<TBUserArchivesMapper,
|
|
|
throw ExceptionResultEnum.ERROR.exception(String.format("[%s]的认证状态为有效,不能作废", userArchivesResult.getName()));
|
|
|
}
|
|
|
// 作废校验2 - 没有进行中的SOP
|
|
|
- List<SopInfoResult> sopInfoResultList = tbSopInfoService.findFlowByServiceId(null,userArchivesResult.getUserId());
|
|
|
- if (CollectionUtils.isNotEmpty(sopInfoResultList)){
|
|
|
+ List<SopInfoResult> sopInfoResultList = tbSopInfoService.findFlowByServiceId(null, userArchivesResult.getUserId());
|
|
|
+ if (CollectionUtils.isNotEmpty(sopInfoResultList)) {
|
|
|
throw ExceptionResultEnum.ERROR.exception("该用户存在正在进行的SOP不能作废");
|
|
|
}
|
|
|
|
|
@@ -479,7 +479,7 @@ public class TBUserArchivesServiceImpl extends ServiceImpl<TBUserArchivesMapper,
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public List<ArchivesSourceResult> findFreeCoordinatorByServiceId(Long serviceUnitId, String crmNo) {
|
|
|
+ public List<ArchivesSourceResult> findFreeCoordinatorByServiceId(Long serviceUnitId, String crmNo, boolean verifyRate) {
|
|
|
List<ArchivesSourceResult> result = new ArrayList<>();
|
|
|
TBService tbService = tbServiceService.getById(serviceUnitId);
|
|
|
if (Objects.isNull(tbService)) {
|
|
@@ -500,7 +500,10 @@ public class TBUserArchivesServiceImpl extends ServiceImpl<TBUserArchivesMapper,
|
|
|
})
|
|
|
.collect(Collectors.toList());
|
|
|
|
|
|
- list = list.stream().filter(e -> e.getRemainCount() > 0).collect(Collectors.toList());
|
|
|
+ if (verifyRate) {
|
|
|
+ // 只有自动调配才启用服务单元区域配比
|
|
|
+ list = list.stream().filter(e -> e.getRemainCount() > 0).collect(Collectors.toList());
|
|
|
+ }
|
|
|
|
|
|
// 调配选人列表查询的特殊处理
|
|
|
if (crmNo != null && crmNo.length() > 0) {
|