소스 검색

更新学生导入接口,政治面貌默认群众

liu 1 개월 전
부모
커밋
e67a70d859
1개의 변경된 파일12개의 추가작업 그리고 2개의 파일을 삭제
  1. 12 2
      src/main/java/com/template/controller/WelcomeStudentController.java

+ 12 - 2
src/main/java/com/template/controller/WelcomeStudentController.java

@@ -1298,7 +1298,12 @@ public class WelcomeStudentController implements WelcomeStudentControllerAPI {
                         studentData.setBatchValue(batchValue);
 
                         String politicalStatu = dataFormatter.formatCellValue(row.getCell(12));//政治面貌
-                        studentData.setPoliticalStatu(politicalStatu);
+                        if (ObjectUtils.isEmpty(politicalStatu)) {
+                            studentData.setPoliticalStatu("群众");
+                        }else {
+                            studentData.setPoliticalStatu(politicalStatu);
+                        }
+
 
                         String nationality = dataFormatter.formatCellValue(row.getCell(13));//民族
                         studentData.setNationality(nationality);
@@ -1583,7 +1588,12 @@ public class WelcomeStudentController implements WelcomeStudentControllerAPI {
                         studentData.setBatchValue(batchValue);
 
                         String politicalStatu = dataFormatter.formatCellValue(row.getCell(12));//政治面貌
-                        studentData.setPoliticalStatu(politicalStatu);
+                        if (ObjectUtils.isEmpty(politicalStatu)) {
+                            studentData.setPoliticalStatu("群众");
+                        }else {
+                            studentData.setPoliticalStatu(politicalStatu);
+                        }
+
 
                         String nationality = dataFormatter.formatCellValue(row.getCell(13));//民族
                         studentData.setNationality(nationality);