📄 tseradviseserviceimpl.java.svn-base
字号:
/*
* $Workfile: TesrAdviseServiceImpl.java$
* Copyright (c) 2007 Jama, International.
* All rights reserved.
* Creator Fan
* Last Changed by: $Author: Fan$
* On: $Date: 2007-8-29 下午05:17:40$
* $Revision: 1$
*/
package com.jama.rcrm.service.business;
import java.util.List;
import com.jama.common.taglib.QueryInfo;
import com.jama.rcrm.service.business.dto.TserAdviseAccessDto;
import com.jama.rcrm.service.dao.TserAdviseDao;
import com.jama.rcrm.service.ServiceConstants;
public class TserAdviseServiceImpl implements TserAdviseService
{
private TserAdviseDao tserAdviseDao;
public void setTserAdviseDao(TserAdviseDao tserAdviseDao){
this.tserAdviseDao=tserAdviseDao;
}
/**
* 分页查找所有没有回访的记录
* @param queryInfo
* @return
* @throws Exception
*/
public List findAllTserAdviseAccessByPage(QueryInfo queryInfo) throws Exception
{
List list=null;
list=tserAdviseDao.findAllTserAdviseAccessByPage(queryInfo);
return list;
}
/**
* 根据投诉id查找要回访的记录
* @param guid
* @return
* @throws Exception
*/
public TserAdviseAccessDto findTserAdviseAccessByGuid(String guid)throws Exception
{
TserAdviseAccessDto dto=tserAdviseDao.findTserAdviseAccessByGuid(guid);
return dto;
}
/**
* 修改需要回访的记录
* @param tserAdviseAccessDto
* @return
* @throws Exception
*/
public boolean modifyTserAdviserAccess(TserAdviseAccessDto tserAdviseAccessDto) throws Exception
{
boolean istrue=false;
if(tserAdviseAccessDto.getProcess().equals(String.valueOf(ServiceConstants.STATUS_YES)))
{
tserAdviseAccessDto.setProcess(String.valueOf(ServiceConstants.STATUS_AEND));
}
istrue=tserAdviseDao.modifyTserAdviserAccess(tserAdviseAccessDto);
return istrue;
}
/**
* 分页拿到所有投诉记录集(历史投诉类别)
* @param queryInfo
* @return
* @throws Exception
*/
public List findAllTserAdviseList(QueryInfo queryInfo,String process) throws Exception
{
List list=null;
list=tserAdviseDao.findAllTserAdviseList(queryInfo, process);
return list;
}
/**
* 分页拿到所有已经处理完成但没有归档的投诉记录集(投诉登记列表)
* @param queryInfo
* @return
* @throws Exception
*/
public List findAllTserAdviseNotPigeonhole(QueryInfo queryInfo,String process) throws Exception
{
List list=null;
list=tserAdviseDao.findAllTserAdviseNotPigeonhole(queryInfo, process);
return list;
}
/**
* 添加一条新的投诉登记记录
* @param dto
* @return
* @throws Exception
*/
public boolean addTserAdviser(TserAdviseAccessDto dto) throws Exception
{
boolean istrue=false;
istrue=tserAdviseDao.addTserAdviser(dto);
return istrue;
}
/**
* 修改投诉信息
* @param dto
* @return
* @throws Exception
*/
public boolean modifyTserAdvise(TserAdviseAccessDto dto) throws Exception
{
boolean istrue=false;
istrue=tserAdviseDao.modifyTserAdvise(dto);
return istrue;
}
/**
* 按id查询相符的一条投诉记录
* @param guid
* @return
*/
public TserAdviseAccessDto findTserAdviseInfoByGuid(String guid) throws Exception
{
return tserAdviseDao.findTserAdviseInfoByGuid(guid);
}
/**
* 按条件查找所有投诉记录集(历史投诉列表的详细查询)
* @param queryInfo
* @param cusName
* @param telPhone
* @param startDate
* @param endDate
* @return
* @throws Exception
*/
public List findListOfAll(QueryInfo queryInfo,String cusName,String telPhone,String startDate,String endDate) throws Exception
{
List list=null;
list=tserAdviseDao.findListOfAll(queryInfo, cusName,telPhone,startDate,endDate);
return list;
}
/**
* 修改当前处理状态
* @param adviseGuid
* @param process
* @throws Exception
*/
public void modifyProcess(String adviseGuid, String process)
throws Exception
{
tserAdviseDao.modifyProcess(adviseGuid, process);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -