package market.Slm.FundManagement.mapper;
import java.util.HashMap;
import java.util.List;

import market.Slm.FundManagement.vo.SlmFundSettleBill;

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

import com.hnshituo.orm.GenericMapper;

@SuppressWarnings("rawtypes")
public interface SlmFundSettleBillMapper extends GenericMapper<SlmFundSettleBill,Object> {

	String findMaxId(String id);
	
	List<SlmFundSettleBill> 
	doQueryWith(@Param("param1")SlmFundSettleBill sfsb,String startTime, String endTime,String startTime2, String endTime2,String flag, @Param("param7") int i,@Param("param8") int j);

	List<HashMap> doQueryCmReportGrossProfitDetail(String condition);
	
	//查询红字开票的原料卷号
	@Select("${sql}")
	public List<HashMap> doQueryAddDetail(@Param("sql")String sql);
	
	List<SlmFundSettleBill> findCountByBillNo(String billNo);
	
	List<HashMap> doQueryAllSettle(String startTime, String endTime);
}
