|
|
|
@@ -1,6 +1,8 @@ |
|
|
|
package com.simple.schedule; |
|
|
|
|
|
|
|
import com.simple.common.IdWorker; |
|
|
|
import com.simple.domain.po.WxCouponOrder; |
|
|
|
import com.simple.domain.po.WxDateAmountRecord; |
|
|
|
import com.simple.domain.po.WxMall; |
|
|
|
import com.simple.domain.po.WxMerchant; |
|
|
|
import com.simple.mapper.*; |
|
|
|
@@ -90,6 +92,30 @@ public class DaliyAmountSchedule { |
|
|
|
"TOTAL ORDER=" + total_price); |
|
|
|
|
|
|
|
|
|
|
|
Date now = new Date(); |
|
|
|
Calendar cal = Calendar.getInstance(); |
|
|
|
cal.setTime(now); // 将时分秒,毫秒域清零 |
|
|
|
cal.set(Calendar.HOUR_OF_DAY, 0); |
|
|
|
cal.set(Calendar.MINUTE, 0); |
|
|
|
cal.set(Calendar.SECOND, 0); |
|
|
|
cal.set(Calendar.MILLISECOND, 0); |
|
|
|
now = cal.getTime(); |
|
|
|
|
|
|
|
WxDateAmountRecord dateAmountRecord = new WxDateAmountRecord(); |
|
|
|
dateAmountRecord.setId(IdWorker.get().nextId()); |
|
|
|
dateAmountRecord.setCreateDate(new Date()); |
|
|
|
dateAmountRecord.setUpdateDate(new Date()); |
|
|
|
dateAmountRecord.setPayPrice(total_price); |
|
|
|
dateAmountRecord.setMerchantId(merchant.getId()); |
|
|
|
dateAmountRecord.setTenantId(merchant.getTenantId()); |
|
|
|
dateAmountRecord.setType(0); |
|
|
|
dateAmountRecord.setDate(now); |
|
|
|
dateAmountRecord.setDayOfWeek(cal.get(Calendar.DAY_OF_WEEK)); |
|
|
|
dateAmountRecord.setMonth(cal.get(Calendar.MONTH)); |
|
|
|
dateAmountRecord.setWeekOfYear(cal.getWeekYear()); |
|
|
|
|
|
|
|
wxDateAmountRecordService.saveDaliyAmount(dateAmountRecord); |
|
|
|
|
|
|
|
list= wxCouponOrderMapper.findListOfVerifiedByDate(dateMap); |
|
|
|
logger.info("find " + list.size() + " coupon order from " + startDate + " to " + new Date()); |
|
|
|
total_price = 0; |
|
|
|
@@ -101,7 +127,9 @@ public class DaliyAmountSchedule { |
|
|
|
"from " + startDate + " to " + new Date() +"\n" + |
|
|
|
"TOTAL VERIFIED=" + total_price); |
|
|
|
|
|
|
|
//daliy amount 落表 |
|
|
|
dateAmountRecord.setPayPrice(total_price); |
|
|
|
dateAmountRecord.setType(1); |
|
|
|
wxDateAmountRecordService.saveDaliyAmount(dateAmountRecord); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|