/***文档注释***********************************************
 * 作者               :                   易鑫
 * 创建日期      :                   2017.12.06
 * 描述               :        			分条拼料信息表
 * 注意事项      :                   无
 * 遗留BUG :                   无
 * 修改日期      :                   
 * 修改人员      :                   
 * 修改内容      :                   
***********************************************************/
package market.Mes.Lengthwise.Design.impl;
import market.Com.vo.CommonPage;
import market.Com.vo.ResultModel;
import market.Mes.Lengthwise.Design.mapper.PlnLengthwiseDsnMultinfoMapper;
import market.Mes.Lengthwise.Design.service.PlnLengthwiseDsnMultinfoService;
import market.Mes.Lengthwise.Design.vo.PlnLengthwiseDsnMultinfo;

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

@RemoteService(path="PlnLengthwiseDsnMultinfoService")
public class PlnLengthwiseDsnMultinfoServiceImpl extends BaseServiceImpl<PlnLengthwiseDsnMultinfo,Object> implements PlnLengthwiseDsnMultinfoService {
	public ResultModel doQueryWeb(CommonPage<PlnLengthwiseDsnMultinfo> sum){
		ResultModel rm=new ResultModel();
		try{
			if(sum.getObject()==null){
				rm.setState("500");
				rm.setMsgInfo("请传入参数！");
				return rm;
			}
			rm.setData(this.getMapper(PlnLengthwiseDsnMultinfoMapper.class).find(sum.getObject(), 0, 0));
			rm.setState("200");
		}catch(Exception ex){
			ex.printStackTrace();
			rm.setState("500");
			rm.setMsgInfo("查询失败!"+ex.getMessage());
		}
		
		return rm;
	}
}
