Commit 5fca7826 authored by shiyu's avatar shiyu

取消分销选品池上新发送通知

parent ef112251
......@@ -76,14 +76,14 @@ public class NewItemNoticeJob {
}
logger.info(">>>>>>>>>>>>>>>>>>>>>>> 发送商品上新通知定时作业, 开始执行 <<<<<<<<<<<<<<<<<<<<<");
try {
//查询后台的上新商品,给分销商发送上新通知
SupplierItemRequestDto supplierItemRequestDto = new SupplierItemRequestDto();
supplierItemRequestDto.setCreatorId(CommConsts.SYSTEM_ACCOUNT);
//查询时间范围为昨天晚上八点之后
LocalDateTime now = LocalDateTime.now();
LocalDateTime yesterday = now.minusDays(1);
LocalDateTime yesterdayEvening = yesterday.withHour(20).withMinute(0).withSecond(0);
Date yesterdayDate = DateUtils.fromLocalDateTime(yesterdayEvening);
/* //查询后台的上新商品,给分销商发送上新通知
SupplierItemRequestDto supplierItemRequestDto = new SupplierItemRequestDto();
supplierItemRequestDto.setCreatorId(CommConsts.SYSTEM_ACCOUNT);
supplierItemRequestDto.setStartCreateTime(yesterdayDate);
long newItemNumForDistributor = supplierItemDao.countOfNewItem(supplierItemRequestDto);
if (newItemNumForDistributor > 0) {
......@@ -110,7 +110,7 @@ public class NewItemNoticeJob {
logger.info(">>>>>>>>>>>>>> 选品池上新,通知分销商成功 <<<<<<<<<<<<<<<<");
} else {
logger.info(">>>>>>>>>>>>>> 选品池没有上新,无需发送通知 <<<<<<<<<<<<<<<<");
}
}*/
//用户关注列表中有上新藏品,发送通知
SupplierItemRequestDto supplierItemDto = new SupplierItemRequestDto();
......@@ -141,8 +141,6 @@ public class NewItemNoticeJob {
}
}
}
} catch (Exception e) {
logger.error("商品上新通知定时作业 error {}", e);
} finally {
......
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