Authored by TANLING

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

... ... @@ -666,14 +666,6 @@ public class MerchantOrderPaymentService extends AbstractOrderPaymentService {
private void addOrdersPay(int payLevel,SellerWalletDetail swd) {
// 增加支付记录
OrdersPay ordersPay = new OrdersPay();
... ...
... ... @@ -9,6 +9,7 @@ import com.yoho.tools.common.beans.ApiResponse;
import com.yohobuy.ufo.model.order.bo.MerchantOrderAttachInfo;
import com.yohobuy.ufo.model.order.common.EntrySellerType;
import com.yohobuy.ufo.model.order.req.EntrySellerRecharge;
import com.yohoufo.common.alarm.CommonAlarmEventPublisher;
import com.yohoufo.common.alarm.EventBusPublisher;
import com.yohoufo.common.caller.UfoServiceCaller;
import com.yohoufo.common.utils.TimeUtils;
... ... @@ -128,7 +129,13 @@ public class EntrySellerRechargeServiceImpl implements IEntrySellerRechargeServi
}
// 4. 清理上次入驻的数据
// 非常重要,直接影响了退出入驻时,检查账户
try{
clearOldEntryData(orderCode, uid);
}catch (Exception e){
logger.error("clearOldEntryData failed,uid {}, orderCode {}", uid, orderCode);
CommonAlarmEventPublisher.publish("clearOldEntryData", "ufo.order.clearOldEntryData", "clear last entry data ,uid " + uid + ", orderCode "+ orderCode);
}
// 5. 增加入驻次数
addJoinHistory(uid, entrySellerRecharge.getCertNo());
... ...