|
@@ -295,24 +295,33 @@ public class WelcomeBedController implements WelcomeBedControllerAPI {
|
|
|
}
|
|
}
|
|
|
String classstr = dataFormatter.formatCellValue(row.getCell(8));//备注
|
|
String classstr = dataFormatter.formatCellValue(row.getCell(8));//备注
|
|
|
if (!classstr.equals("所属班级")) {
|
|
if (!classstr.equals("所属班级")) {
|
|
|
- return CommonResult.fail("导入数据第七列为所属班级");
|
|
|
|
|
|
|
+ return CommonResult.fail("导入数据第八列为所属班级");
|
|
|
}
|
|
}
|
|
|
- String isCheck = dataFormatter.formatCellValue(row.getCell(9));//备注
|
|
|
|
|
|
|
+ String instructor = dataFormatter.formatCellValue(row.getCell(9));//备注
|
|
|
|
|
+ if (!instructor.equals("辅导员")) {
|
|
|
|
|
+ return CommonResult.fail("导入数据第九列为辅导员");
|
|
|
|
|
+ }
|
|
|
|
|
+ String isCheck = dataFormatter.formatCellValue(row.getCell(10));//备注
|
|
|
if (!isCheck.equals("是否入住")) {
|
|
if (!isCheck.equals("是否入住")) {
|
|
|
- return CommonResult.fail("导入数据第七列为是否入住");
|
|
|
|
|
|
|
+ return CommonResult.fail("导入数据第十列为是否入住");
|
|
|
}
|
|
}
|
|
|
- String admissNum = dataFormatter.formatCellValue(row.getCell(10));//备注
|
|
|
|
|
|
|
+ String admissNum = dataFormatter.formatCellValue(row.getCell(11));//备注
|
|
|
if (!admissNum.equals("录取号")) {
|
|
if (!admissNum.equals("录取号")) {
|
|
|
- return CommonResult.fail("导入数据第七列为录取号");
|
|
|
|
|
|
|
+ return CommonResult.fail("导入数据第十一列为录取号");
|
|
|
}
|
|
}
|
|
|
- String name = dataFormatter.formatCellValue(row.getCell(11));//备注
|
|
|
|
|
|
|
+ String name = dataFormatter.formatCellValue(row.getCell(12));//备注
|
|
|
if (!name.equals("姓名")) {
|
|
if (!name.equals("姓名")) {
|
|
|
- return CommonResult.fail("导入数据第七列为姓名");
|
|
|
|
|
|
|
+ return CommonResult.fail("导入数据第十二列为姓名");
|
|
|
}
|
|
}
|
|
|
- String remark = dataFormatter.formatCellValue(row.getCell(12));//备注
|
|
|
|
|
|
|
+ String remark = dataFormatter.formatCellValue(row.getCell(13));//备注
|
|
|
if (!remark.equals("备注")) {
|
|
if (!remark.equals("备注")) {
|
|
|
- return CommonResult.fail("导入数据第七列为备注");
|
|
|
|
|
|
|
+ return CommonResult.fail("导入数据第十三列为备注");
|
|
|
|
|
+ }
|
|
|
|
|
+ String retentionState = dataFormatter.formatCellValue(row.getCell(14));//是否保留
|
|
|
|
|
+ if (!retentionState.equals("是否保留")) {
|
|
|
|
|
+ return CommonResult.fail("导入数据第十四列为是否保留");
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
} else {
|
|
} else {
|
|
|
WelcomeBed bedData = new WelcomeBed();
|
|
WelcomeBed bedData = new WelcomeBed();
|
|
|
|
|
|
|
@@ -330,10 +339,13 @@ public class WelcomeBedController implements WelcomeBedControllerAPI {
|
|
|
String college = dataFormatter.formatCellValue(row.getCell(6));//起始层数
|
|
String college = dataFormatter.formatCellValue(row.getCell(6));//起始层数
|
|
|
String major = dataFormatter.formatCellValue(row.getCell(7));//备注
|
|
String major = dataFormatter.formatCellValue(row.getCell(7));//备注
|
|
|
String classstr = dataFormatter.formatCellValue(row.getCell(8));//备注
|
|
String classstr = dataFormatter.formatCellValue(row.getCell(8));//备注
|
|
|
- String isCheck = dataFormatter.formatCellValue(row.getCell(9));//备注
|
|
|
|
|
- String admissNum = dataFormatter.formatCellValue(row.getCell(10));//备注
|
|
|
|
|
- String name = dataFormatter.formatCellValue(row.getCell(11));//备注
|
|
|
|
|
- String remark = dataFormatter.formatCellValue(row.getCell(12));//备注
|
|
|
|
|
|
|
+ String instructor = dataFormatter.formatCellValue(row.getCell(9));//辅导员
|
|
|
|
|
+ String isCheck = dataFormatter.formatCellValue(row.getCell(10));//备注
|
|
|
|
|
+ String admissNum = dataFormatter.formatCellValue(row.getCell(11));//备注
|
|
|
|
|
+ String name = dataFormatter.formatCellValue(row.getCell(12));//备注
|
|
|
|
|
+ String remark = dataFormatter.formatCellValue(row.getCell(13));//备注
|
|
|
|
|
+ String retentionState = dataFormatter.formatCellValue(row.getCell(14));//是否保留
|
|
|
|
|
+
|
|
|
|
|
|
|
|
bedData.setSchool(school);
|
|
bedData.setSchool(school);
|
|
|
|
|
|
|
@@ -382,6 +394,8 @@ public class WelcomeBedController implements WelcomeBedControllerAPI {
|
|
|
bedData.setCardNum(admissNum);
|
|
bedData.setCardNum(admissNum);
|
|
|
bedData.setName(name);
|
|
bedData.setName(name);
|
|
|
bedData.setRemark(remark);
|
|
bedData.setRemark(remark);
|
|
|
|
|
+ bedData.setRetentionState(Integer.valueOf(retentionState));
|
|
|
|
|
+ bedData.setInstructor(instructor);
|
|
|
result.add(bedData);
|
|
result.add(bedData);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -561,7 +575,7 @@ public class WelcomeBedController implements WelcomeBedControllerAPI {
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public CommonResult downloadBedExcel() {
|
|
public CommonResult downloadBedExcel() {
|
|
|
- return CommonResult.ok("200", "操作成功", "https://chtech.ncjti.edu.cn/alumnus/homeimage/床位信息管理.xlsx");
|
|
|
|
|
|
|
+ return CommonResult.ok("200", "操作成功", "https://chtech.ncjti.edu.cn/alumnus/home/image/床位信息管理.xlsx");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|