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

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

import market.Lms.Equipment.vo.YdmEquipmentApplylist;

import com.hnshituo.orm.GenericMapper;

public interface YdmEquipmentApplylistMapper extends GenericMapper<YdmEquipmentApplylist,Object> {

	//计划申报--申报查询
	List<YdmEquipmentApplylist> doQueryApplyList(YdmEquipmentApplylist object,
			String v_man, String sTime, String eTime,String v_storage, int i, int j);
	long doQueryApplyListCount(YdmEquipmentApplylist object, String v_man,
			String sTime, String eTime, String v_storage);


	//计划申报--生成唯一编号
	String getNo(String string);
	
	//计划申报--修改申报
	void doUpdateApplylist(YdmEquipmentApplylist object);

	//计划申报--删除申报
	void doDelete(YdmEquipmentApplylist object);
	
	
	//申报审批--审批申报
	void doUpdateApplylistApproval(YdmEquipmentApplylist yealGetState);
		
	//申报审批--撤销审报
	void doUpdateApplylistRecall(YdmEquipmentApplylist yealGetState);
	
	//申报审批--查询申报
	List<YdmEquipmentApplylist> doQueryApplyListApproval(
			YdmEquipmentApplylist object, String sTime,
			String eTime, String sWhere);

	long doQueryApplyListApprovalCount(YdmEquipmentApplylist object,
			String sTime, String eTime, String sWhere);
	
	
	@Update("${sql}")
	public void doApproveEquipmentApplylistCancelApp(@Param("sql")String sql);
	
	
	
	
}
