Authored by TANLING

清理前次入驻数据失败告警

@@ -666,14 +666,6 @@ public class MerchantOrderPaymentService extends AbstractOrderPaymentService { @@ -666,14 +666,6 @@ public class MerchantOrderPaymentService extends AbstractOrderPaymentService {
666 666
667 667
668 668
669 -  
670 -  
671 -  
672 -  
673 -  
674 -  
675 -  
676 -  
677 private void addOrdersPay(int payLevel,SellerWalletDetail swd) { 669 private void addOrdersPay(int payLevel,SellerWalletDetail swd) {
678 // 增加支付记录 670 // 增加支付记录
679 OrdersPay ordersPay = new OrdersPay(); 671 OrdersPay ordersPay = new OrdersPay();
@@ -9,6 +9,7 @@ import com.yoho.tools.common.beans.ApiResponse; @@ -9,6 +9,7 @@ import com.yoho.tools.common.beans.ApiResponse;
9 import com.yohobuy.ufo.model.order.bo.MerchantOrderAttachInfo; 9 import com.yohobuy.ufo.model.order.bo.MerchantOrderAttachInfo;
10 import com.yohobuy.ufo.model.order.common.EntrySellerType; 10 import com.yohobuy.ufo.model.order.common.EntrySellerType;
11 import com.yohobuy.ufo.model.order.req.EntrySellerRecharge; 11 import com.yohobuy.ufo.model.order.req.EntrySellerRecharge;
  12 +import com.yohoufo.common.alarm.CommonAlarmEventPublisher;
12 import com.yohoufo.common.alarm.EventBusPublisher; 13 import com.yohoufo.common.alarm.EventBusPublisher;
13 import com.yohoufo.common.caller.UfoServiceCaller; 14 import com.yohoufo.common.caller.UfoServiceCaller;
14 import com.yohoufo.common.utils.TimeUtils; 15 import com.yohoufo.common.utils.TimeUtils;
@@ -128,7 +129,13 @@ public class EntrySellerRechargeServiceImpl implements IEntrySellerRechargeServi @@ -128,7 +129,13 @@ public class EntrySellerRechargeServiceImpl implements IEntrySellerRechargeServi
128 } 129 }
129 130
130 // 4. 清理上次入驻的数据 131 // 4. 清理上次入驻的数据
131 - clearOldEntryData(orderCode, uid); 132 + // 非常重要,直接影响了退出入驻时,检查账户
  133 + try{
  134 + clearOldEntryData(orderCode, uid);
  135 + }catch (Exception e){
  136 + logger.error("clearOldEntryData failed,uid {}, orderCode {}", uid, orderCode);
  137 + CommonAlarmEventPublisher.publish("clearOldEntryData", "ufo.order.clearOldEntryData", "clear last entry data ,uid " + uid + ", orderCode "+ orderCode);
  138 + }
132 139
133 // 5. 增加入驻次数 140 // 5. 增加入驻次数
134 addJoinHistory(uid, entrySellerRecharge.getCertNo()); 141 addJoinHistory(uid, entrySellerRecharge.getCertNo());