门店号管理

dev_0531
LegnaYet 6 years ago
parent 245ecf0da3
commit c6443159b2

@ -69,7 +69,7 @@ public class BehaviorDTOMessageGroupConsumer implements WorkHandler<BehaviorDTOM
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
//todo 分开写便于同步历史数据 最大跨度30天 最久当天往前180天 上线时改为System.currentTimeMillis() //todo 分开写便于同步历史数据 最大跨度30天 最久当天往前180天 上线时改为System.currentTimeMillis()
wxCusInfoReqDO.setStart_time(statDate.getTime() / 1000); wxCusInfoReqDO.setStart_time(statDate.getTime() / 1000);
wxCusInfoReqDO.setEnd_time(DateUtils.addDay(statDate,1).getTime() / 1000); wxCusInfoReqDO.setEnd_time(statDate.getTime() / 1000);
WxCusInfoRespDO wxCusInfoRespDO = getWxCusInfo(wxCusInfoReqDO); WxCusInfoRespDO wxCusInfoRespDO = getWxCusInfo(wxCusInfoReqDO);
if (wxCusInfoRespDO == null) { if (wxCusInfoRespDO == null) {
return; return;

@ -23,14 +23,14 @@ public class DateUtils {
public static List<Date> getdays(Date startDay, Date endDay) { public static List<Date> getdays(Date startDay, Date endDay) {
List<Date> timeList = new ArrayList<Date>(); List<Date> timeList = new ArrayList<Date>();
Date d1 = formatHourMinuteAndSecondToZero(startDay);// 定义起始日期 Date d1 = startDay;// 定义起始日期
Date d2 = formatHourMinuteAndSecondToZero(endDay);// 定义结束日期 Date d2 = endDay;// 定义结束日期
Calendar dd = Calendar.getInstance();// 定义日期实例 Calendar dd = Calendar.getInstance();// 定义日期实例
dd.setTime(d1);// 设置日期起始时间 dd.setTime(d1);// 设置日期起始时间
timeList.add(startDay); timeList.add(startDay);
while (dd.getTime().before(d2)) {// 判断是否到结束日期 while (dd.getTime().before(d2)) {// 判断是否到结束日期
dd.add(Calendar.DATE, 1);// 进行当前日期月份加1 dd.add(Calendar.DATE, 1);// 进行当前日期月份加1
timeList.add(formatHourMinuteAndSecondToZero(dd.getTime())); timeList.add(dd.getTime());
} }
return timeList; return timeList;

Loading…
Cancel
Save