夏文涛 1 year ago
parent
commit
599fd2736d
1 changed files with 20 additions and 20 deletions
  1. 20 20
      src/main/java/com/template/controller/WelcomeStudentController.java

+ 20 - 20
src/main/java/com/template/controller/WelcomeStudentController.java

@@ -889,35 +889,35 @@ public class WelcomeStudentController implements WelcomeStudentControllerAPI {
                         }
                         }
                         String batchValue = dataFormatter.formatCellValue(row.getCell(11));//批次
                         String batchValue = dataFormatter.formatCellValue(row.getCell(11));//批次
                         if (!batchValue.equals("批次")) {
                         if (!batchValue.equals("批次")) {
-                            return CommonResult.fail("导入数据第十列为批次");
+                            return CommonResult.fail("导入数据第十列为批次");
                         }
                         }
                         String politicalStatu = dataFormatter.formatCellValue(row.getCell(12));//政治面貌
                         String politicalStatu = dataFormatter.formatCellValue(row.getCell(12));//政治面貌
                         if (!politicalStatu.equals("政治面貌")) {
                         if (!politicalStatu.equals("政治面貌")) {
-                            return CommonResult.fail("导入数据第十列为政治面貌");
+                            return CommonResult.fail("导入数据第十列为政治面貌");
                         }
                         }
                         String nationality = dataFormatter.formatCellValue(row.getCell(13));//民族
                         String nationality = dataFormatter.formatCellValue(row.getCell(13));//民族
                         if (!nationality.equals("民族")) {
                         if (!nationality.equals("民族")) {
-                            return CommonResult.fail("导入数据第十列为民族");
+                            return CommonResult.fail("导入数据第十列为民族");
                         }
                         }
                         String phone = dataFormatter.formatCellValue(row.getCell(14));//手机号码
                         String phone = dataFormatter.formatCellValue(row.getCell(14));//手机号码
                         if (!phone.equals("手机号码")) {
                         if (!phone.equals("手机号码")) {
-                            return CommonResult.fail("导入数据第十列为手机号码");
+                            return CommonResult.fail("导入数据第十列为手机号码");
                         }
                         }
                         String nativePlace = dataFormatter.formatCellValue(row.getCell(15));//籍贯
                         String nativePlace = dataFormatter.formatCellValue(row.getCell(15));//籍贯
-                        if (!nativePlace.equals("籍贯")) {
-                            return CommonResult.fail("导入数据第十列为籍贯");
+                        if (!nativePlace.contains("籍贯")) {
+                            return CommonResult.fail("导入数据第十列为籍贯");
                         }
                         }
                         String addressPlace = dataFormatter.formatCellValue(row.getCell(16));//家庭住址
                         String addressPlace = dataFormatter.formatCellValue(row.getCell(16));//家庭住址
-                        if (!addressPlace.equals("家庭住址")) {
-                            return CommonResult.fail("导入数据第十列为家庭住址");
+                        if (!addressPlace.contains("家庭住址")) {
+                            return CommonResult.fail("导入数据第十列为家庭住址");
                         }
                         }
                         String addressDetail = dataFormatter.formatCellValue(row.getCell(17));//详细住址
                         String addressDetail = dataFormatter.formatCellValue(row.getCell(17));//详细住址
                         if (!addressDetail.equals("详细住址")) {
                         if (!addressDetail.equals("详细住址")) {
-                            return CommonResult.fail("导入数据第十列为详细住址");
+                            return CommonResult.fail("导入数据第十列为详细住址");
                         }
                         }
                         String zipCode = dataFormatter.formatCellValue(row.getCell(18));//邮编
                         String zipCode = dataFormatter.formatCellValue(row.getCell(18));//邮编
                         if (!zipCode.equals("邮编")) {
                         if (!zipCode.equals("邮编")) {
-                            return CommonResult.fail("导入数据第十列为邮编");
+                            return CommonResult.fail("导入数据第十列为邮编");
                         }
                         }
 
 
                     } else {
                     } else {
@@ -1146,35 +1146,35 @@ public class WelcomeStudentController implements WelcomeStudentControllerAPI {
                         }
                         }
                         String batchValue = dataFormatter.formatCellValue(row.getCell(11));//批次
                         String batchValue = dataFormatter.formatCellValue(row.getCell(11));//批次
                         if (!batchValue.equals("批次")) {
                         if (!batchValue.equals("批次")) {
-                            return CommonResult.fail("导入数据第十列为批次");
+                            return CommonResult.fail("导入数据第十列为批次");
                         }
                         }
                         String politicalStatu = dataFormatter.formatCellValue(row.getCell(12));//政治面貌
                         String politicalStatu = dataFormatter.formatCellValue(row.getCell(12));//政治面貌
                         if (!politicalStatu.equals("政治面貌")) {
                         if (!politicalStatu.equals("政治面貌")) {
-                            return CommonResult.fail("导入数据第十列为政治面貌");
+                            return CommonResult.fail("导入数据第十列为政治面貌");
                         }
                         }
                         String nationality = dataFormatter.formatCellValue(row.getCell(13));//民族
                         String nationality = dataFormatter.formatCellValue(row.getCell(13));//民族
                         if (!nationality.equals("民族")) {
                         if (!nationality.equals("民族")) {
-                            return CommonResult.fail("导入数据第十列为民族");
+                            return CommonResult.fail("导入数据第十列为民族");
                         }
                         }
                         String phone = dataFormatter.formatCellValue(row.getCell(14));//手机号码
                         String phone = dataFormatter.formatCellValue(row.getCell(14));//手机号码
                         if (!phone.equals("手机号码")) {
                         if (!phone.equals("手机号码")) {
-                            return CommonResult.fail("导入数据第十列为手机号码");
+                            return CommonResult.fail("导入数据第十列为手机号码");
                         }
                         }
                         String nativePlace = dataFormatter.formatCellValue(row.getCell(15));//籍贯
                         String nativePlace = dataFormatter.formatCellValue(row.getCell(15));//籍贯
-                        if (!nativePlace.equals("籍贯")) {
-                            return CommonResult.fail("导入数据第十列为籍贯");
+                        if (!nativePlace.contains("籍贯")) {
+                            return CommonResult.fail("导入数据第十列为籍贯");
                         }
                         }
                         String addressPlace = dataFormatter.formatCellValue(row.getCell(16));//家庭住址
                         String addressPlace = dataFormatter.formatCellValue(row.getCell(16));//家庭住址
-                        if (!addressPlace.equals("家庭住址")) {
-                            return CommonResult.fail("导入数据第十列为家庭住址");
+                        if (!addressPlace.contains("家庭住址")) {
+                            return CommonResult.fail("导入数据第十列为家庭住址");
                         }
                         }
                         String addressDetail = dataFormatter.formatCellValue(row.getCell(17));//详细住址
                         String addressDetail = dataFormatter.formatCellValue(row.getCell(17));//详细住址
                         if (!addressDetail.equals("详细住址")) {
                         if (!addressDetail.equals("详细住址")) {
-                            return CommonResult.fail("导入数据第十列为详细住址");
+                            return CommonResult.fail("导入数据第十列为详细住址");
                         }
                         }
                         String zipCode = dataFormatter.formatCellValue(row.getCell(18));//邮编
                         String zipCode = dataFormatter.formatCellValue(row.getCell(18));//邮编
                         if (!zipCode.equals("邮编")) {
                         if (!zipCode.equals("邮编")) {
-                            return CommonResult.fail("导入数据第十列为邮编");
+                            return CommonResult.fail("导入数据第十列为邮编");
                         }
                         }
 
 
                     } else {
                     } else {