update("delete from r_chat_room_shop_member where chat_room_id = ?",newInteger[]{chatRoomId});
for(IntegerattendUserId:attendUsers){
for(IntegerattendUserId:attendUsers){
insert("insert or replace into r_chat_room_shop_member (chat_room_id, shop_member_id) values (?,?)",newInteger[]{chatRoomId,attendUserId});
insert("insert or replace into r_chat_room_shop_member (chat_room_id, shop_member_id) values (?,?)",newInteger[]{chatRoomId,attendUserId});
}
}
}
}
publicvoiddeleteChatRoomUsers(IntegerchatRoomId){
update("delete from r_chat_room_shop_member where chat_room_id = ?",newInteger[]{chatRoomId});
}
publicbooleanupdateChatRoom(ChatRoomDtodto){
publicbooleanupdateChatRoom(ChatRoomDtodto){
longcount=update("update t_chat_room set chat_room_name=?, type=?, unread_count=?, user_count=?, favorite_register_date=? where chat_room_id=?",dto.getUpdateValues());
longcount=update("update t_chat_room set chat_room_name=?, type=?, unread_count=?, user_count=?, favorite_register_date=? where chat_room_id=?",dto.getUpdateValues());