/** * 批量删除酒店会员 * * @param userIds 需要删除的酒店会员主键 * @return 结果 */ @Override public int deleteHotelUserByUserIds(Long[] userIds) { for (Long id:userIds ) { Assert.notNull(hotelUserMapper.selectHotelUserByUserId(id),"参数异常"); } return hotelUserMapper.deleteHotelUserByUserIds(userIds); } /** * 删除酒店会员信息 * * @param userId 酒店会员主键 * @return 结果 */ @Override public int deleteHotelUserByUserId(Long userId) { // 1.防御性编程 HotelUser hotelUser = hotelUserMapper.selectHotelUserByUserId(userId); Assert.notNull(hotelUser,"参数异常"); return hotelUserMapper.deleteHotelUserByUserId(userId); }
标签:return,删除,userIds,userId,用户,Long,hotelUserMapper From: https://www.cnblogs.com/romablog/p/17917270.html