Procházet zdrojové kódy

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

liu před 1 měsícem
rodič
revize
e67a70d859

+ 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);