Commit 70ee5aa0 by 吕明尚

使用中换房,修改新房间状态

parent 08c85999
......@@ -614,6 +614,10 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
sRoom.setId(sOrder.getRoomId());
sRoom.setStatus(RoomStatusEnum.FREE.getValue());
roomService.updateById(sRoom);
//修改新房间状态
sRoom.setId(dto.getRoomId());
sRoom.setStatus(RoomStatusEnum.HOLD.getValue());
roomService.updateById(sRoom);
}
sOrder.setRoomId(dto.getRoomId());
return updateById(sOrder);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment