Authored by chenchao

Merge branch 'test6.8.6' into dev_order_6.8.6

@@ -185,20 +185,20 @@ @@ -185,20 +185,20 @@
185 select 185 select
186 count(*) 186 count(*)
187 from seller_wallet_detail 187 from seller_wallet_detail
188 - where uid = #{uid,jdbcType=INTEGER} and is_batch = 0 and type in (1,31,32,33,34,61) 188 + where uid = #{uid,jdbcType=INTEGER} and is_batch = 0 and type in (1,31,32,33,34,35,61)
189 </select> 189 </select>
190 <select id="selectUserDetail" resultMap="BaseResultMap" > 190 <select id="selectUserDetail" resultMap="BaseResultMap" >
191 select 191 select
192 <include refid="Base_Column_List" /> 192 <include refid="Base_Column_List" />
193 from seller_wallet_detail 193 from seller_wallet_detail
194 - where uid = #{uid,jdbcType=INTEGER} and is_batch = 0 and type in (1,31,32,33,34,61) order by id desc limit #{start},#{count} 194 + where uid = #{uid,jdbcType=INTEGER} and is_batch = 0 and type in (1,31,32,33,34,35,61) order by id desc limit #{start},#{count}
195 </select> 195 </select>
196 196
197 <select id="selectUserPunishAmount" resultMap="BaseResultMap" > 197 <select id="selectUserPunishAmount" resultMap="BaseResultMap" >
198 select 198 select
199 uid, sum(amount) as amount 199 uid, sum(amount) as amount
200 from seller_wallet_detail 200 from seller_wallet_detail
201 - where uid = #{uid,jdbcType=INTEGER} and is_batch = 0 and type in (31,32,33,34) 201 + where uid = #{uid,jdbcType=INTEGER} and is_batch = 0 and type in (31,32,33,34,35)
202 </select> 202 </select>
203 <delete id="clearUserHistoryData"> 203 <delete id="clearUserHistoryData">
204 delete from seller_wallet_detail 204 delete from seller_wallet_detail
  1 +package com.yohoufo.order.mq.consumer;
  2 +
  3 +import com.yohoufo.order.event.SellerCancelDeliverEvent;
  4 +import com.yohoufo.order.mq.TopicConstants;
  5 +import com.yohoufo.order.service.impl.BuyerOrderCancelService;
  6 +import org.springframework.beans.factory.annotation.Autowired;
  7 +import org.springframework.stereotype.Component;
  8 +
  9 +/**
  10 + * 卖家超时发货
  11 + * Created by chenchao on 2018/9/30.
  12 + */
  13 +@Component
  14 +public class SellerOrderCancelDeliverDelayMsgConsumer120 extends JsonObjectMessageConsumer<SellerCancelDeliverEvent> {
  15 +
  16 + @Autowired
  17 + private BuyerOrderCancelService buyerOrderCancelService;
  18 +
  19 + @Override
  20 + public String getTopic() {
  21 + return TopicConstants.SELLER_ORDER_AUTO_CANCEL_DELIVER_120;
  22 + }
  23 +
  24 + @Override
  25 + public void handle(SellerCancelDeliverEvent event) {
  26 + buyerOrderCancelService.cancelForSellerSendOutTimeout(event.getUid(), event.getOrderCode(), event.getSkup(), event.getSellerOrderGoods());
  27 + }
  28 +}
@@ -39,7 +39,7 @@ consumer: @@ -39,7 +39,7 @@ consumer:
39 interval: 1440 39 interval: 1440
40 40
41 #春节期间发货时间延长的120小时 41 #春节期间发货时间延长的120小时
42 - - class: com.yohoufo.order.mq.consumer.SellerOrderCancelDeliverDelayMsgConsumer 42 + - class: com.yohoufo.order.mq.consumer.SellerOrderCancelDeliverDelayMsgConsumer120
43 topic: sellerOrder.autoCancelDeliver_120 43 topic: sellerOrder.autoCancelDeliver_120
44 delay: 44 delay:
45 interval: 7200 45 interval: 7200
@@ -40,7 +40,7 @@ consumer: @@ -40,7 +40,7 @@ consumer:
40 interval: 1440 40 interval: 1440
41 41
42 #春节期间发货时间延长的120小时 42 #春节期间发货时间延长的120小时
43 - - class: com.yohoufo.order.mq.consumer.SellerOrderCancelDeliverDelayMsgConsumer 43 + - class: com.yohoufo.order.mq.consumer.SellerOrderCancelDeliverDelayMsgConsumer120
44 topic: sellerOrder.autoCancelDeliver_120 44 topic: sellerOrder.autoCancelDeliver_120
45 delay: 45 delay:
46 interval: 7200 46 interval: 7200