|
@ -11,6 +11,9 @@ import com.yihu.wlyy.service.BaseService;
|
|
|
import org.apache.commons.collections.map.HashedMap;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.data.domain.PageRequest;
|
|
|
import org.springframework.data.domain.Pageable;
|
|
|
import org.springframework.data.domain.Sort;
|
|
|
import org.springframework.jdbc.core.JdbcTemplate;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
@ -92,9 +95,21 @@ public class CustomerService extends BaseService{
|
|
|
return list;
|
|
|
}
|
|
|
|
|
|
public List<Message> getCallServiceMes(String doctor){
|
|
|
List<Message> mes = messageDao.findByReceiverCallService(doctor);
|
|
|
return mes;
|
|
|
// public List<Message> getCallServiceMes(String doctor,Integer page, Integer pagesize){
|
|
|
// Sort sort = new Sort(Sort.Direction.DESC, "createTime");
|
|
|
// // 分页信息
|
|
|
// Pageable pageRequest = new PageRequest(page - 1, pagesize, sort);
|
|
|
//
|
|
|
// List<Message> mes = messageDao.findByReceiverCallService(doctor);
|
|
|
// return mes;
|
|
|
// }
|
|
|
|
|
|
public List<Message> getCallServiceMes(String doctor,Integer page, Integer pagesize) throws Exception {
|
|
|
// 排序
|
|
|
Sort sort = new Sort(Sort.Direction.DESC, "createTime");
|
|
|
// 分页信息
|
|
|
Pageable pageRequest = new PageRequest(page - 1, pagesize, sort);
|
|
|
return messageDao.getMessageByType(doctor,12, pageRequest);
|
|
|
}
|
|
|
|
|
|
public Map<String,Object> getCallServiceInfo(String code){
|