开始日期和结束日期记录未显示在结果列表中:
public List<Cdetail> findRecord(Date strtDate, String purpose, Date clsDate) {
return em.createQuery("select c from Cdetail c where c.cts >= :strtDate and c.cts <= :clsDate and c.purpose=:purpose ")
.setParameter("strtDate", strtDate)
.setParameter("clsDate", clsDate)
.setParameter("purpose", purpose)
.getResultList();
}