|
|
@@ -763,14 +763,13 @@ public class WelcomeBedController implements WelcomeBedControllerAPI {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public CommonResult submit(WelcomeBed welcomeBed) {
|
|
|
- String studentCard = welcomeBed.getStudentCard();
|
|
|
+ public CommonResult submit(String studentCard,WelcomeBed welcomeBed) {
|
|
|
// 先判断是否已经提交
|
|
|
LambdaQueryWrapper<WelcomeBed> wrapper = new LambdaQueryWrapper<>();
|
|
|
wrapper.eq(WelcomeBed::getStudentCard, studentCard);
|
|
|
WelcomeBed one = welcomeBedService.getOne(wrapper);
|
|
|
if (ObjectUtils.isNotEmpty(one)) {
|
|
|
- return CommonResult.fail("已提交,请勿重复提交");
|
|
|
+ return CommonResult.fail("当前用户已选择宿舍,请勿重复提交");
|
|
|
}
|
|
|
|
|
|
WelcomeBed wb = welcomeBedService.getBedById(welcomeBed.getId());
|