|
@@ -102,20 +102,20 @@ public class BusBookingRoomsController extends JeecgController<BusBookingRooms,
|
|
|
busBookingRoomsService.updateById(busBookingRooms);
|
|
busBookingRoomsService.updateById(busBookingRooms);
|
|
|
return Result.OK("编辑成功!");
|
|
return Result.OK("编辑成功!");
|
|
|
}
|
|
}
|
|
|
-// /**
|
|
|
|
|
-// * 设置为主房
|
|
|
|
|
-// *
|
|
|
|
|
-// * @param busBookingRooms
|
|
|
|
|
-// * @return
|
|
|
|
|
-// */
|
|
|
|
|
-// @AutoLog(value = "预定关联房间-设置为主房")
|
|
|
|
|
-// @ApiOperation(value="预定关联房间-设置为主房", notes="预定关联房间-设置为主房")
|
|
|
|
|
-// //@RequiresPermissions("business:bus_booking_rooms:edit")
|
|
|
|
|
-// @RequestMapping(value = "/set", method = {RequestMethod.PUT,RequestMethod.POST})
|
|
|
|
|
-// public Result<String> edit(@RequestBody BusBookingRooms busBookingRooms) {
|
|
|
|
|
-// busBookingRoomsService.updateById(busBookingRooms);
|
|
|
|
|
-// return Result.OK("编辑成功!");
|
|
|
|
|
-// }
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 设置为主房
|
|
|
|
|
+ *
|
|
|
|
|
+ * @param busBookingRooms
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
|
|
+ @AutoLog(value = "预定关联房间-设置为主房")
|
|
|
|
|
+ @ApiOperation(value="预定关联房间-设置为主房", notes="预定关联房间-设置为主房")
|
|
|
|
|
+ //@RequiresPermissions("business:bus_booking_rooms:edit")
|
|
|
|
|
+ @RequestMapping(value = "/set-main", method = {RequestMethod.PUT,RequestMethod.POST})
|
|
|
|
|
+ public Result<String> setMain(@RequestBody BusBookingRooms busBookingRooms) {
|
|
|
|
|
+ busBookingRoomsService.setMain(busBookingRooms.getId());
|
|
|
|
|
+ return Result.OK("编辑成功!");
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 通过id删除
|
|
* 通过id删除
|