package market.Lms.Equipment.mapper;

import java.util.List;

import market.Lms.Equipment.vo.YdmEquipmentDetail;
import market.Lms.Equipment.vo.YdmEquipmentInlist;
import market.Pms.Order.vo.PurOrderC;

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

import com.hnshituo.orm.GenericMapper;

public interface YdmEquipmentDetailMapper extends GenericMapper<YdmEquipmentDetail, Object> {

	List<YdmEquipmentDetail> doquery(String param1, String param2,
			String param3, String param4, String param5, String param6,
			String param7,String param8,String param9);
	
	List<YdmEquipmentDetail> doqueryStock(String param1, String param2,
			String param3, String param4, String param5);

	String getCode(String string);

	String GetMax();

	String GetOut();

	List<YdmEquipmentDetail> doQueryEquipment(YdmEquipmentDetail yed,
			String startDate, String endDate);

	long doQueryEquipmentCount(YdmEquipmentDetail yed, String startDate,
			String endDate);

	// 库存查询
	List<YdmEquipmentDetail> doQuerySortCode(String param1,String param2,String param3);

	// List<YdmEquipmentDetail> doQuerySortCode(YdmEquipmentDetail
	// ydmEquipmentDetail);
	// List<YdmEquipmentDetail> doQuerySortCode(YdmEquipmentDetail
	// ydmEquipmentDetail, int i, int j);
	// long doQuerySortCodeCount(YdmEquipmentDetail object);

	void doUpdate(YdmEquipmentDetail yed);

	void doDelete(YdmEquipmentDetail yed);

	int findMaxObject_no();

	void doUpdateQuantity(YdmEquipmentDetail yed2);

	// 库存查询1-gjw
	List<YdmEquipmentDetail> doQueryYdmEd(YdmEquipmentDetail yed);

	// 更新库存数据
	void doUpdateYdmEd(YdmEquipmentDetail yed, String objectNo, String state);

	void doUpdateYdmEde(YdmEquipmentInlist yed, String objectNo, String state);

	// 在库数量
	double doQueryQuantity(String objectNo, String state);
	@Update("${sql}")
	void doUpdate1(@Param("sql")String sql);
	@Delete("${sql}")
	void doDelete1(@Param("sql")String sql);
	
	void updateSetReg(@Param("yed")YdmEquipmentDetail yed);
	
	List<PurOrderC> doQuerypur(String pur_order_no,String mat_code);
	

}
