package market.Qms.com.service.impl;

import java.util.List;

import market.Qms.com.mapper.BasePhyMapper;
import market.Qms.com.service.BasePhyService;
import market.Qms.com.vo.BasePhy;
import market.Qms.common.ReturnMsg;

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

@RemoteService(serviceInterface=BasePhyService.class)
public class BasePhyServiceImpl extends BaseServiceImpl<BasePhy, String> implements BasePhyService {

	@Override
	public ReturnMsg<List<BasePhy>> GetValidPhy() {
		// TODO Auto-generated method stub
		ReturnMsg<List<BasePhy>> msg=new ReturnMsg<>();
		try{
			BasePhy chem=new BasePhy();
			chem.setValidflag("1");
			List<BasePhy> list=this.getMapper(BasePhyMapper.class).find(chem, 0, 0);
			msg.setResult(list);
			msg.setSuccess(true);
			msg.setMessage("获取数据成功");
		}catch(Exception ex){
			msg.setMessage(ex.getMessage());
			msg.setSuccess(false);
		}
		return msg;
	}

}
