Explorar el Código

[daily count计算][B端首页]:count计算修改

release_toaliyun_real
Stormeye Wu hace 7 años
padre
commit
d8620bf27c
Se han modificado 3 ficheros con 6 adiciones y 6 borrados
  1. +3
    -3
      mallinkSchedule/src/main/java/com/iformall/schedule/DaliyAmountSchedule.java
  2. +1
    -1
      mallinkService/src/main/java/com/iformall/service/impl/WxCouponOrderServiceImpl.java
  3. +2
    -2
      mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml

+ 3
- 3
mallinkSchedule/src/main/java/com/iformall/schedule/DaliyAmountSchedule.java Ver fichero

@@ -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());


+ 1
- 1
mallinkService/src/main/java/com/iformall/service/impl/WxCouponOrderServiceImpl.java Ver fichero

@@ -163,7 +163,7 @@ public class WxCouponOrderServiceImpl implements WxCouponOrderService {
Map dateMap = new HashMap();
dateMap.put("startDate", startDate);
dateMap.put("endDate", endDate);
dateMap.put("merchantID", wxMerchant.getId());
dateMap.put("merchantId", wxMerchant.getId());

Map resultMap = new HashMap();



+ 2
- 2
mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml Ver fichero

@@ -226,7 +226,7 @@
select <include refid="allCouponOrderColumns" />
from wx_coupon_order co,wx_order o
where o.id = co.order_id
and o.merchant_id = #{merchantID}
and o.merchant_id = #{merchantId}
<if test="startDate != null">
AND co.create_date &gt; #{startDate,jdbcType=TIMESTAMP}
</if>
@@ -240,7 +240,7 @@
select <include refid="allCouponOrderColumns" />
from wx_coupon_order co,wx_order o
where o.id = co.order_id
and o.merchant_id = #{merchantID}
and o.merchant_id = #{merchantId}
<if test="startDate != null">
AND co.update_date &gt; #{startDate,jdbcType=TIMESTAMP}
</if>


Cargando…
Cancelar
Guardar