Commit b481740d authored by yanzg's avatar yanzg

处理分页重复提示BUG

parent 375df04c
......@@ -250,6 +250,21 @@ public class DateHelper {
return begin;
}
/**
* 获取当天的日期
*
* @param date 需要的日期
* @return 返回的日期
*/
public static Date initMillSecond(Date date) {
Calendar c = Calendar.getInstance();
c.setTime(date);
//当前起始日期
Calendar begin = Calendar.getInstance();
begin.set(Calendar.MILLISECOND, 0);
return begin.getTime();
}
private static void setDayEnd(Calendar cal) {
cal.set(Calendar.HOUR_OF_DAY, 23);
cal.set(Calendar.MINUTE, 59);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment