...
|
...
|
@@ -12,6 +12,7 @@ import com.yohoufo.common.alarm.UfoInfluxdbEvent; |
|
|
import com.yohoufo.common.alarm.UfoInfluxdbVo;
|
|
|
import com.yohoufo.common.constant.InfluxdbFieldEnum;
|
|
|
import com.yohoufo.common.constant.InfluxdbMeasurementEnum;
|
|
|
import com.yohoufo.common.constant.InfluxdbTagEnum;
|
|
|
import com.yohoufo.common.exception.UfoServiceException;
|
|
|
import com.yohoufo.common.utils.DateUtil;
|
|
|
import com.yohoufo.dal.order.SellerEnterApplyMapper;
|
...
|
...
|
@@ -278,8 +279,10 @@ public class SellerEnterApplyService { |
|
|
SellerLevelFuncBo slfb = sellerFuncService.getSellerLevelFunc(targetEst.getCode(), level);
|
|
|
storedSellerService.addUserAsStoredSeller(uid, targetEst, slfb);
|
|
|
|
|
|
EventBusPublisher.publishEvent(new UfoInfluxdbEvent(new UfoInfluxdbVo.Builder().setMeasurement(InfluxdbMeasurementEnum.MEASUREMENT_SELLER_ENTER)
|
|
|
.addInitField(InfluxdbFieldEnum.FIELD_COUNT).build())); // 统计入驻商家的记录
|
|
|
EventBusPublisher.publishEvent(new UfoInfluxdbEvent(new UfoInfluxdbVo.Builder()
|
|
|
.setMeasurement(InfluxdbMeasurementEnum.MEASUREMENT_SELLER_ENTER)
|
|
|
.addTag(InfluxdbTagEnum.TAG_TYPE, targetEst.getCode() == EntrySellerType.COMMON.getCode() ? 2 : 3)
|
|
|
.addInitField(InfluxdbFieldEnum.FIELD_COUNT).build())); // 统计入驻商家的记录 2代表普通入驻 3 代表超级卖家入驻
|
|
|
}else{
|
|
|
logger.warn("in upgradeLevel add StoredSeller fail, uid {} orderCode {}",
|
|
|
uid, orderCode);
|
...
|
...
|
@@ -298,8 +301,10 @@ public class SellerEnterApplyService { |
|
|
merchantOrderPaymentService.changeWalletToSuperSeller(uid);
|
|
|
}
|
|
|
|
|
|
EventBusPublisher.publishEvent(new UfoInfluxdbEvent(new UfoInfluxdbVo.Builder().setMeasurement(InfluxdbMeasurementEnum.MEASUREMENT_SELLER_ENTER)
|
|
|
.addInitField(InfluxdbFieldEnum.FIELD_COUNT).build())); // 统计入驻商家的记录
|
|
|
EventBusPublisher.publishEvent(new UfoInfluxdbEvent(new UfoInfluxdbVo.Builder()
|
|
|
.setMeasurement(InfluxdbMeasurementEnum.MEASUREMENT_SELLER_ENTER)
|
|
|
.addTag(InfluxdbTagEnum.TAG_TYPE, 1)
|
|
|
.addInitField(InfluxdbFieldEnum.FIELD_COUNT).build())); // 统计入驻商家的记录 1 代表升级
|
|
|
}else{
|
|
|
logger.warn("in upgradeLevel update StoredSeller fail, uid {} orderCode {}",
|
|
|
uid, orderCode);
|
...
|
...
|
|