/**
* Copyright © 2015-2020 JeePlus All rights reserved.
*/
package com.jeeplus.modules.iim.service;
import java.util.List;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.jeeplus.common.persistence.Page;
import com.jeeplus.common.service.CrudService;
import com.jeeplus.modules.iim.dao.ChatHistoryDao;
import com.jeeplus.modules.iim.entity.ChatHistory;
/**
* 聊天记录Service
* @author jeeplus
* @version 2015-12-29
*/
@Service
@Transactional(readOnly = true)
public class ChatHistoryService extends CrudService {
public ChatHistory get(String id) {
return super.get(id);
}
public List findList(ChatHistory chatHistory) {
return super.findList(chatHistory);
}
public Page findPage(Page page, ChatHistory entity) {
entity.setPage(page);
page.setList(dao.findLogList(entity));
return page;
}
@Transactional(readOnly = false)
public void save(ChatHistory chatHistory) {
super.save(chatHistory);
}
@Transactional(readOnly = false)
public void delete(ChatHistory chatHistory) {
super.delete(chatHistory);
}
public int findUnReadCount(ChatHistory chatHistory){
return dao.findUnReadCount(chatHistory);
}
}