package market.Lms.Warehouse.mapper;


import java.util.List;

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

import market.Lms.Warehouse.vo.YdmHzTemp;




import market.Lms.Warehouse.vo.YdmProductDetail;

import com.hnshituo.orm.GenericMapper;

@SuppressWarnings("rawtypes")
public interface YdmHzTempMapper extends GenericMapper<YdmHzTemp, Object> {
	
	@Select("select * from YDM_HZ_TEMP where STATE = '5' order by CREATEDATE desc")
	List<YdmHzTemp> querySendLz();
	
	@Select("select * from YDM_HZ_TEMP where STATE = '-1' order by CREATEDATE ")
	List<YdmHzTemp> queryReceiveLz();
	
	@Select("select * from YDM_PRODUCT_DETAIL where MATERAILCOILNO = #{MATERAILCOILNO} and substr(COILNO, -1, 1) not in ('B', 'H') order by CREATEDATE desc ")
	List<YdmProductDetail> queryObject_attr(@Param("MATERAILCOILNO") String MATERAILCOILNO);
}
