|
@@ -168,8 +168,8 @@ public class WelcomeBedController implements WelcomeBedControllerAPI {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
- public CommonResult queryPageBeds(int currentPage, int pageCount, Integer schoolId, Integer buildId, Integer dormitoryId, String sex, Integer isCheck, Integer collegeId, Integer majorId, Integer classstrId) {
|
|
|
|
|
- PageUtils<WelcomeBed> result = welcomeBedService.queryPageWelcomeBeds(currentPage, pageCount, schoolId, buildId, dormitoryId, sex, isCheck, collegeId, majorId, classstrId);
|
|
|
|
|
|
|
+ public CommonResult queryPageBeds(int currentPage, int pageCount, Integer schoolId, Integer buildId, Integer dormitoryId, String sex, Integer isCheck, Integer collegeId, Integer majorId, Integer classstrId,Integer retentionState) {
|
|
|
|
|
+ PageUtils<WelcomeBed> result = welcomeBedService.queryPageWelcomeBeds(currentPage, pageCount, schoolId, buildId, dormitoryId, sex, isCheck, collegeId, majorId, classstrId,retentionState);
|
|
|
return CommonResult.ok(result);
|
|
return CommonResult.ok(result);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -602,7 +602,7 @@ public class WelcomeBedController implements WelcomeBedControllerAPI {
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public CommonResult downloadBedExcel() {
|
|
public CommonResult downloadBedExcel() {
|
|
|
- return CommonResult.ok("200", "操作成功", "https://chtech.ncjti.edu.cn/alumnus/home/image/床位信息管理.xlsx");
|
|
|
|
|
|
|
+ return CommonResult.ok("200", "操作成功", "https://chtech.ncjti.edu.cn/welcome/homeimage/床位信息管理.xlsx");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -670,6 +670,9 @@ public class WelcomeBedController implements WelcomeBedControllerAPI {
|
|
|
if (wb == null) {
|
|
if (wb == null) {
|
|
|
return CommonResult.fail("床位已失效,选择失败!");
|
|
return CommonResult.fail("床位已失效,选择失败!");
|
|
|
}
|
|
}
|
|
|
|
|
+ if (wb.getIsCheck()==1) {
|
|
|
|
|
+ return CommonResult.fail("该床位已被其他人入住");
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
if (StringUtils.hasText(wb.getStudentCard()) && !wb.getStudentCard().equals(welcomeBed.getStudentCard())) {
|
|
if (StringUtils.hasText(wb.getStudentCard()) && !wb.getStudentCard().equals(welcomeBed.getStudentCard())) {
|
|
|
return CommonResult.fail("该床位已被其他人入住,选择失败!");
|
|
return CommonResult.fail("该床位已被其他人入住,选择失败!");
|
|
@@ -759,6 +762,10 @@ public class WelcomeBedController implements WelcomeBedControllerAPI {
|
|
|
if (ObjectUtils.isEmpty(bed)) {
|
|
if (ObjectUtils.isEmpty(bed)) {
|
|
|
return CommonResult.fail("不存在该床铺");
|
|
return CommonResult.fail("不存在该床铺");
|
|
|
}
|
|
}
|
|
|
|
|
+ if (bed.getIsCheck()==1) {
|
|
|
|
|
+ return CommonResult.fail("该床位已被其他人入住");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
bed.setIsCheck(1);
|
|
bed.setIsCheck(1);
|
|
|
bed.setStudentCard(welcomeStudent.getCardId());
|
|
bed.setStudentCard(welcomeStudent.getCardId());
|
|
|
bed.setCardNum(welcomeStudent.getAdmissNum());
|
|
bed.setCardNum(welcomeStudent.getAdmissNum());
|
|
@@ -904,6 +911,15 @@ public class WelcomeBedController implements WelcomeBedControllerAPI {
|
|
|
if (ObjectUtils.isEmpty(sourceBed) || ObjectUtils.isEmpty(changeBed)) {
|
|
if (ObjectUtils.isEmpty(sourceBed) || ObjectUtils.isEmpty(changeBed)) {
|
|
|
return CommonResult.fail("床位不存在");
|
|
return CommonResult.fail("床位不存在");
|
|
|
}
|
|
}
|
|
|
|
|
+ String studentCard = sourceBed.getStudentCard();
|
|
|
|
|
+ String cardNum = sourceBed.getCardNum();
|
|
|
|
|
+ Integer classstrId = sourceBed.getClassstrId();
|
|
|
|
|
+ String classstr = sourceBed.getClassstr();
|
|
|
|
|
+ String name = sourceBed.getName();
|
|
|
|
|
+ Integer majorId = sourceBed.getMajorId();
|
|
|
|
|
+ sourceBed.getMajor();
|
|
|
|
|
+// welcomeBeds.add(changeBed);
|
|
|
|
|
+
|
|
|
return null;
|
|
return null;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|