Commit 2dd524be by 吕明尚

更改

parent 3925ddc6
...@@ -166,6 +166,9 @@ public class SRoomServiceImpl extends ServiceImpl<SRoomMapper, SRoom> implements ...@@ -166,6 +166,9 @@ public class SRoomServiceImpl extends ServiceImpl<SRoomMapper, SRoom> implements
SRoomPackList.add(SRoomPack); SRoomPackList.add(SRoomPack);
}); });
roomPackService.saveBatch(SRoomPackList); roomPackService.saveBatch(SRoomPackList);
} else {
//删除原有套餐
roomPackService.deleteRoomPackByRoomId(sRoom.getId());
} }
sRoom.setUpdateTime(DateUtils.getNowDate()); sRoom.setUpdateTime(DateUtils.getNowDate());
return sRoomMapper.updateSRoom(sRoom); return sRoomMapper.updateSRoom(sRoom);
......
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