|
|
|
@@ -43,8 +43,8 @@ public class DaliyAmountSchedule { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//@Scheduled(cron = "0 0 1 * * ?") // 每天凌晨1点盘点前一天的数据 |
|
|
|
@Scheduled(cron = "*/30 * * * * ?") // 测试10秒中一次 |
|
|
|
@Scheduled(cron = "0 0 1 * * ?") // 每天凌晨1点盘点前一天的数据 |
|
|
|
//@Scheduled(cron = "*/30 * * * * ?") // 测试10秒中一次 |
|
|
|
@Transactional(propagation = Propagation.REQUIRED, readOnly = false, rollbackFor = {Exception.class}) |
|
|
|
public void daliyAmountSchedule() { |
|
|
|
|
|
|
|
@@ -85,7 +85,7 @@ public class DaliyAmountSchedule { |
|
|
|
Map dateMap = new HashMap(); |
|
|
|
dateMap.put("startDate", startDate); |
|
|
|
dateMap.put("endDate", endDate); |
|
|
|
dateMap.put("merchantID",merchant.getId()); |
|
|
|
dateMap.put("merchantId",merchant.getId()); |
|
|
|
|
|
|
|
List<WxCouponOrder> list = wxCouponOrderMapper.findListOfOrderedByDate(dateMap); |
|
|
|
logger.info("find " + list.size() + " coupon order from " + startDate + " to " + new Date()); |
|
|
|
|