package market.Qms.qcm.mapper;
import java.util.List;

import market.Qms.qcm.vo.QcmJhyPhyresult;

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

import com.hnshituo.orm.GenericMapper;

public interface QcmJhyPhyresultMapper extends GenericMapper<QcmJhyPhyresult,Object> {
	/**
	 * 获取今日最大编号
	 * @param currentDate
	 * @return
	 */
	String GetMaxId(String currentDate);
	@Select("select * from QCM_JHY_PHY_RESULT where SPECIMEN_NO=#{quote_specimen_no} and ${condition}")
	List<QcmJhyPhyresult> findByCondition(@Param("quote_specimen_no") String quote_specimen_no,@Param("condition") String condition);

	@Select("select max(t.seq) from QCM_JHY_PHY_RESULT t where t.SPECIMEN_NO=#{specimen_no}")
	Long findMaxSeq(@Param("specimen_no")String specimen_no);
}
