/***文档注释***********************************************
 * 作者               :                   龙文航
 * 创建日期      :                   2017.12.6
 * 描述               :                   物流管理-理货单管理
 * 注意事项      :                   无
 * 遗留BUG :                   无
 * 修改日期      :                   
 * 修改人员      :                   
 * 修改内容      :                   
***********************************************************/
package market.Lms.Logistics.mapper;

import java.util.List;

import market.Lms.Logistics.vo.SpmDistrbuteMain;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import com.hnshituo.orm.GenericMapper;

public interface SpmDistrbuteMainMapper extends GenericMapper<SpmDistrbuteMain,Object> {
	public List<SpmDistrbuteMain> doQueryWebBySQL(int beginindex,int endindex,String deliveryno);
	
	public int doQueryWebBySQLCount(String deliveryno);
	
	public List<SpmDistrbuteMain> doQueryWebBySQlLoad(int beginindex,int endindex,String starttime,String endtime,String distrbuteno,String storageattr,String carno, String string);
	
	public int doQueryWebBySQlLoadCount(String starttime,String endtime,String distrbuteno,String storageattr,String carno, String string);
	
	public List<SpmDistrbuteMain> doQueryWebBySQlLoadF(int beginindex,int endindex,String starttime,String endtime,String distrbuteno,String storageattr,String carno, String string);
	
	public int doQueryWebBySQlLoadCountF(String starttime,String endtime,String distrbuteno,String storageattr,String carno, String string);
	
	
	public void doDelete(String distrbuteno);
	
	public List<SpmDistrbuteMain> doQueryCarno(String str);
	
	@Update("update SPM_DISTRBUTE_MAIN m set m.carno=#{carno} where m.deliveryno=#{deliveryno}")
	public void doExitCarNo(@Param("carno")String carno, @Param("deliveryno")String deliveryno);
	
	public List<SpmDistrbuteMain> _find(String sdm);
}
