Showing
1 changed file
with
4 additions
and
4 deletions
@@ -839,10 +839,10 @@ public class UnionServiceImpl implements IUnionService,ApplicationEventPublisher | @@ -839,10 +839,10 @@ public class UnionServiceImpl implements IUnionService,ApplicationEventPublisher | ||
839 | 839 | ||
840 | int startHour = (int) (time.getTimeInMillis()/1000); | 840 | int startHour = (int) (time.getTimeInMillis()/1000); |
841 | int count = 0; | 841 | int count = 0; |
842 | - log.info("queryActivateCount getTodayCount startHour is {}", new Date(startHour * 1000L)); | 842 | + log.info("queryActivateCount getTodayCount startHour is {}", format.format(new Date(startHour * 1000L))); |
843 | if (startHour != start) { | 843 | if (startHour != start) { |
844 | int e = Math.min(startHour + 3600, end); | 844 | int e = Math.min(startHour + 3600, end); |
845 | - log.info("queryActivateCount getTodayCount param is {}, {}", new Date(start * 1000L), new Date(e * 1000L)); | 845 | + log.info("queryActivateCount getTodayCount param is {}, {}", format.format(new Date(start * 1000L)), format.format(new Date(e * 1000L))); |
846 | count += unionClickLogsDAO.queryCountInfo(unionType, apptype, start, e); | 846 | count += unionClickLogsDAO.queryCountInfo(unionType, apptype, start, e); |
847 | start = e; | 847 | start = e; |
848 | } | 848 | } |
@@ -852,13 +852,13 @@ public class UnionServiceImpl implements IUnionService,ApplicationEventPublisher | @@ -852,13 +852,13 @@ public class UnionServiceImpl implements IUnionService,ApplicationEventPublisher | ||
852 | while (start < end) { | 852 | while (start < end) { |
853 | Integer c = 0; | 853 | Integer c = 0; |
854 | if (start + 3600 < end) { | 854 | if (start + 3600 < end) { |
855 | - log.info("queryActivateCount getTodayCount from redis param is {}", new Date(start * 1000L)); | 855 | + log.info("queryActivateCount getTodayCount from redis param is {}", format.format(new Date(start * 1000L))); |
856 | c = map.get(start); | 856 | c = map.get(start); |
857 | if (c == null) { | 857 | if (c == null) { |
858 | c = 0; | 858 | c = 0; |
859 | } | 859 | } |
860 | } else { | 860 | } else { |
861 | - log.info("queryActivateCount getTodayCount from db param is {}, {}", new Date(start * 1000L), | 861 | + log.info("queryActivateCount getTodayCount from db param is {}, {}", format.format(new Date(start * 1000L)), |
862 | new Date(end * 1000L)); | 862 | new Date(end * 1000L)); |
863 | c = unionClickLogsDAO.queryCountInfo(unionType, apptype, start, end); | 863 | c = unionClickLogsDAO.queryCountInfo(unionType, apptype, start, end); |
864 | } | 864 | } |
-
Please register or login to post a comment