xml里的
 <select id="selectDate" resultClass="Daycount">
select * from daycount where theday between #theday1# and #theday2#
</select>dao里的public List<Daycount> findDate(Date d1, Date d2) {
// TODO Auto-generated method stub
List<Daycount> list = null;
try {
list =  (List<Daycount>) client.queryForObject("selectDate", d1, d2);
} catch (SQLException e) {
e.printStackTrace();
}

return list;
}