package market.Lms.Equipment.mapper;
import java.util.HashMap;
import java.util.List;

import market.Lms.Equipment.vo.YdmEquipmentApplylist;
import market.Lms.Equipment.vo.YdmEquipmentDetail;
import market.Lms.Equipment.vo.YdmEquipmentLendlist;
import market.Lms.Equipment.vo.YdmEquipmentOutlist;

import org.apache.ibatis.annotations.Param;

import com.hnshituo.orm.GenericMapper;

@SuppressWarnings("all")
public interface YdmEquipmentOutlistMapper extends GenericMapper<YdmEquipmentOutlist,Object> {
	public List<HashMap> findPurbsuoms();
	public List<HashMap> findProNameByMatclasscode(@Param("matcode")String matcode);
	public String findProNameByItemName(@Param("matcode")String matcode);//产品名字查id
	public List<HashMap> findSupp();
	public String findBySuppName(@Param("suppname")String suppname);//供应商查供应商编号
	public List<HashMap> findButtressBy1006();
	public List<HashMap> findPurBsUoms();
	
	public List<YdmEquipmentOutlist> selectForOutlist(@Param("whereStr")String whereStr);
	
	public List<YdmEquipmentApplylist> selectForApplylist(@Param("whereStr")String whereStr);
	public List<YdmEquipmentDetail> selectDetail(@Param("detail")YdmEquipmentApplylist detail);
	public List<YdmEquipmentOutlist> selectOutlist(@Param("outlist")YdmEquipmentApplylist outlist);
	
	public List<YdmEquipmentDetail> selectDetailUnplan(@Param("strWhere")String strWhere);
	public List<YdmEquipmentOutlist> selectOutlistUnplan(@Param("strWhere")String strWhere);
	
	
	public YdmEquipmentApplylist selectOneApply(String apply_bill_no);
	public void updateApplylist(@Param("apply")YdmEquipmentApplylist apply);
	public void updateApplynull(@Param("apply")YdmEquipmentApplylist apply);
	public void updateApply(@Param("apply")YdmEquipmentApplylist apply);
	
	public List<YdmEquipmentDetail> selectDetailOne(@Param("detail")YdmEquipmentDetail detail);
	public List<YdmEquipmentDetail> selectDetailOneChuKu(@Param("strWhere")String strWhere);
	
	public void updateDetail(@Param("detail")YdmEquipmentDetail detail);
	public void deleteDetail(@Param("detail")YdmEquipmentDetail detail);
	
	public YdmEquipmentLendlist selectLendlist(@Param("out_bill_no")String out_bill_no);
	public void deleteLendlist(@Param("out_bill_no")String out_bill_no);
	public void deleteOutlist(@Param("out_bill_no")String out_bill_no);
	
	public String selectMaxLendbillno(String lend_bill_no);
	public String selectMaxOutbillno(String out_bill_no);
	
	//按维修编号删除数据
	public void deleteByMaintain_NO(@Param("maintain_bill_no")String maintain_bill_no);
	public List<YdmEquipmentDetail> selectDetailOne(String string);
}
