wupy1108
Results
1
comments of
wupy1108
方法名:selectBetweenDate(Date startDate,Date endDate) 方法作用:根据startDate endDate查询有效的(历史)数据 数据库:mysql。 SQL代码[可选]: select * from country where country.start_time = now() OR country.end_time IS NULL ) 其他补充:目前我用example可以实现: example.createCriteria() .andLessThanOrEqualTo("startDate",date) .andEqualTo("employeeId",employeeId); example.and().andIsNull("endDate").orGreaterThanOrEqualTo("endDate",date);