|
|
package com.yohoufo.order.service.impl;
|
|
|
|
|
|
import com.yohobuy.ufo.model.enums.StoredSellerStatusEnum;
|
|
|
import com.yohobuy.ufo.model.order.bo.SellerAssetPolicy;
|
|
|
import com.yohobuy.ufo.model.order.bo.SellerBo;
|
|
|
import com.yohobuy.ufo.model.order.common.EntrySellerType;
|
|
|
import com.yohobuy.ufo.model.order.common.Payment;
|
|
|
import com.yohobuy.ufo.model.order.common.SuperEnterStageLevel;
|
|
|
import com.yohobuy.ufo.model.order.constants.SettlementType;
|
|
|
import com.yohoufo.common.exception.UfoServiceException;
|
|
|
import com.yohoufo.dal.order.model.SellerLevelFunc;
|
|
|
import com.yohoufo.dal.order.model.StoredSeller;
|
...
|
...
|
@@ -96,6 +99,17 @@ public class SellerWrapper { |
|
|
sellerBo.setNormalSuper(sellerTypeNode.isNormalSuper());
|
|
|
sellerBo.setSuper(sellerTypeNode.isSuper());
|
|
|
sellerBo.setNotEntry(sellerTypeNode.isNotEntry());
|
|
|
sellerBo.setLargeSettlementSuper(sellerTypeNode.isLargeSettlementSuper());
|
|
|
if (sellerTypeNode.isLargeSettlementSuper()){
|
|
|
SellerAssetPolicy sellerAssetPolicy = SellerAssetPolicy.builder()
|
|
|
.payment(Payment.WALLET)
|
|
|
.earnestMoneyPolicy(SellerAssetPolicy.EarnestMoneyPolicy.builder().free(true).build())
|
|
|
.penaltyMoneyPolicy(SellerAssetPolicy.PenaltyMoneyPolicy.builder().necessary(true).build())
|
|
|
.goodsIncomePolicy(SellerAssetPolicy.GoodsIncomePolicy.builder()
|
|
|
.settlementType(SettlementType.FIXED_AMOUNT).build())
|
|
|
.build();
|
|
|
sellerBo.setSellerAssetPolicy(sellerAssetPolicy);
|
|
|
}
|
|
|
}
|
|
|
return this;
|
|
|
}
|
...
|
...
|
|