|
@@ -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 {
|