|
@@ -236,7 +236,7 @@ public class WelcomeDormitoryController implements WelcomeDormitoryControllerAPI
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (welcomeBeds != null && welcomeBeds.size() > 0) {
|
|
if (welcomeBeds != null && welcomeBeds.size() > 0) {
|
|
|
- boolean insertBeds = welcomeBedService.saveBatch(welcomeBeds);
|
|
|
|
|
|
|
+ boolean insertBeds = welcomeBedService.saveOrUpdateBatch(welcomeBeds);
|
|
|
if (!insertBeds) {
|
|
if (!insertBeds) {
|
|
|
return CommonResult.fail("编辑失败");
|
|
return CommonResult.fail("编辑失败");
|
|
|
}
|
|
}
|