/***文档注释***********************************************
 * 作者            ：
 * 创建日期     ：2019-07-19
 * 描述            ：客户满意度调查建议实绩表
 * 注意事项     ：
 * 遗留BUG   ：
 * 修改日期     ：
 * 修改人员     ：
 * 修改内容     ：
***********************************************************/
package market.Slm.CustomerInformation.impl;
import market.Com.vo.CommonPage;
import market.Com.vo.ResultModel;
import market.Slm.CustomerInformation.mapper.SlmCustomerSatSuggestMapper;
import market.Slm.CustomerInformation.service.SlmCustomerSatSuggestService;
import market.Slm.CustomerInformation.vo.SlmCustomerSatSuggest;

import com.hnshituo.basic.service.impl.BaseServiceImpl;
import com.hnshituo.basic.spring.remoting.annotation.RemoteService;

@RemoteService(path="SlmCustomerSatSuggestService")
public class SlmCustomerSatSuggestServiceImpl extends BaseServiceImpl<SlmCustomerSatSuggest,Object> implements SlmCustomerSatSuggestService {
	public ResultModel doQuery(CommonPage<SlmCustomerSatSuggest> sum){
		ResultModel rm=new ResultModel();
		try{
			SlmCustomerSatSuggest oci=sum.getObject();
			if(oci==null||oci.getActual_no()==null){
				rm.setState("500");
				rm.setMsgInfo("请传入正确参数!");;
				return rm;
			}
			rm.setState("200");
			rm.setData(this.getMapper(SlmCustomerSatSuggestMapper.class).findWithCondition(oci, null, null, 0,  0));
		}catch(Exception ex){
			rm.setState("500");
			rm.setMsgInfo("查询失败！");
		}
		return rm;
	}
}
