Authored by tanling

极速卖家

... ... @@ -1076,6 +1076,22 @@ public class InBoxFacade extends BaseNoticeFacade{
}
}
public void noticeFastDeliverySeller(Integer uid, BigDecimal theshold){
String logPrefix = "notice fast delivery seller";
try{
newNotice(uid)
.withLogPrefix(logPrefix)
.withInBox(InboxBusinessTypeEnum.FAST_DELIVERY_SELLER_PART_FUNC, theshold)
.withSms(InboxBusinessTypeEnum.SMS_FAST_DELIVERY_SELLER_PERMISSION, theshold)
.send();
}catch (Exception e){
}
}
public void noticeSuperSellerDegrade(Integer uid, SuperEnterStageLevel sesl, BigDecimal leftInWallet) {
String logPrefix = "notice super seller degrade";
try {
... ...
... ... @@ -475,6 +475,20 @@ public class SellerEnterApplyService {
logger.info("in changeLevel4Super ready change StoredSeller targetFuncLevel func, uid {} currentEnterType {}",
uid, currentEnterType);
// 扣保证金 极速卖家场景-触发阀值场景
if (sellerBo.isFastDeliverySuper()){
if (left.compareTo(set.getPrepaymentAmount())<0){
inBoxFacade.noticeFastDeliverySeller(uid, set.getPrepaymentAmount());
}else if(left.compareTo(set.getGoodsOnOffShelveAmount())<0 && left.compareTo(set.getHiddenGoodsAmount())>=0){
inBoxFacade.noticeFastDeliverySeller(uid, set.getGoodsOnOffShelveAmount());
}else if(left.compareTo(set.getHiddenGoodsAmount())<0){
inBoxFacade.noticeFastDeliverySeller(uid, set.getHiddenGoodsAmount());
}
return 0;
}
int result = 0;
if (sellerBo.isNormalSuper()) {
SellerLevelFuncBo bslfb = slfSupplier.get();
... ... @@ -493,7 +507,10 @@ public class SellerEnterApplyService {
inBoxFacade.noticeSuperSellerDegrade(uid, targetSESL, bslfb.getWalletThreshold());
}
processLargeSettlementSuperWhenWalletChange(sellerWrapper, left, slfSupplier);
if (sellerBo.isLargeSettlementSuper() ){
processLargeSettlementSuperWhenWalletChange(sellerWrapper, left, slfSupplier);
}
return result;
}
... ...
... ... @@ -303,6 +303,7 @@ public class SellerService {
List<EntrySellerType> targetESTs = new ArrayList<>(2);
targetESTs.add(EntrySellerType.SUPER_ENTRY);
targetESTs.add(EntrySellerType.LARGE_SETTLEMENT);
targetESTs.add(EntrySellerType.FAST_DELIVERY_SUPER);
if (!targetESTs.contains(currentEST)){
logger.warn("processAfterWalletChange user was {} , uid {}", currentEST , uid);
return ;
... ...