Browse Source

fix: 求职人员导入数据填充

zhangying 2 ngày trước cách đây
mục cha
commit
e30654c7de

+ 5 - 0
src/main/java/com/hz/employmentsite/services/impl/jobUserManager/JobUserServiceImpl.java

@@ -679,6 +679,7 @@ public class JobUserServiceImpl implements JobUserService {
             vo.setHobby(dataTypeUtils.dataForString(item.getOrDefault("hobby", "")));
             vo.setPersonalSkills(dataTypeUtils.dataForString(item.getOrDefault("personalSkills", "")));
             vo.setErrorMessage(errorInfo);
+            dataList.add(vo);
         }
 
         //性别
@@ -789,6 +790,10 @@ public class JobUserServiceImpl implements JobUserService {
             }
         });
         dataList.forEach(item -> {
+            if (!stringUtils.IsNullOrEmpty(item.getErrorMessage())) {
+                return;
+            }
+
             String errorInfo = "";
             item.setJobUserID(UUID.randomUUID().toString());
             if (stringUtils.IsNullOrEmpty(item.getName())){