...
|
...
|
@@ -100,16 +100,7 @@ public class SellerWrapper { |
|
|
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;
|
|
|
}
|
...
|
...
|
@@ -135,6 +126,53 @@ public class SellerWrapper { |
|
|
return this;
|
|
|
}
|
|
|
|
|
|
SellerWrapper attatchAssetPolicy(){
|
|
|
if (sellerBo!=null){
|
|
|
SellerAssetPolicy sellerAssetPolicy = null;
|
|
|
if (sellerBo.isSuper()){
|
|
|
sellerAssetPolicy = SellerAssetPolicy.builder()
|
|
|
.earnestMoneyPolicy(SellerAssetPolicy.EarnestMoneyPolicy.builder().payment(Payment.WALLET).free(true).build())
|
|
|
.penaltyMoneyPolicy(SellerAssetPolicy.PenaltyMoneyPolicy.builder().payment(Payment.WALLET).necessary(true).build())
|
|
|
.goodsIncomePolicy(SellerAssetPolicy.GoodsIncomePolicy.builder().payment(Payment.ALIPAY).settlementType(SettlementType.ONE_TIME_TRADE).build())
|
|
|
.build();
|
|
|
}else if (sellerBo.isLargeSettlementSuper()){
|
|
|
sellerAssetPolicy = SellerAssetPolicy.builder()
|
|
|
.earnestMoneyPolicy(SellerAssetPolicy.EarnestMoneyPolicy.builder().payment(Payment.WALLET).free(true).build())
|
|
|
.penaltyMoneyPolicy(SellerAssetPolicy.PenaltyMoneyPolicy.builder().payment(Payment.WALLET).necessary(true).build())
|
|
|
.goodsIncomePolicy(SellerAssetPolicy.GoodsIncomePolicy.builder()
|
|
|
.settlementType(SettlementType.FIXED_AMOUNT).build())
|
|
|
.build();
|
|
|
|
|
|
}else if (sellerBo.isCommonEntry()){
|
|
|
sellerAssetPolicy = SellerAssetPolicy.builder()
|
|
|
.earnestMoneyPolicy(SellerAssetPolicy.EarnestMoneyPolicy.builder().payment(Payment.WALLET).free(false).build())
|
|
|
.penaltyMoneyPolicy(SellerAssetPolicy.PenaltyMoneyPolicy.builder().payment(Payment.WALLET).necessary(true).build())
|
|
|
.goodsIncomePolicy(SellerAssetPolicy.GoodsIncomePolicy.builder().payment(Payment.ALIPAY)
|
|
|
.settlementType(SettlementType.ONE_TIME_TRADE).build())
|
|
|
.build();
|
|
|
}else if (sellerBo.isNotEntry()){
|
|
|
sellerAssetPolicy = SellerAssetPolicy.builder()
|
|
|
.earnestMoneyPolicy(SellerAssetPolicy.EarnestMoneyPolicy.builder().free(false).build())
|
|
|
.penaltyMoneyPolicy(SellerAssetPolicy.PenaltyMoneyPolicy.builder().payment(Payment.ALIPAY).necessary(true).build())
|
|
|
.goodsIncomePolicy(SellerAssetPolicy.GoodsIncomePolicy.builder().payment(Payment.ALIPAY)
|
|
|
.settlementType(SettlementType.ONE_TIME_TRADE).build())
|
|
|
.build();
|
|
|
}else {
|
|
|
sellerAssetPolicy = SellerAssetPolicy.builder()
|
|
|
.earnestMoneyPolicy(SellerAssetPolicy.EarnestMoneyPolicy.builder().free(false).build())
|
|
|
.penaltyMoneyPolicy(SellerAssetPolicy.PenaltyMoneyPolicy.builder().payment(Payment.ALIPAY).necessary(true).build())
|
|
|
.goodsIncomePolicy(SellerAssetPolicy.GoodsIncomePolicy.builder().payment(Payment.ALIPAY)
|
|
|
.settlementType(SettlementType.ONE_TIME_TRADE).build())
|
|
|
.build();
|
|
|
}
|
|
|
sellerBo.setSellerAssetPolicy(sellerAssetPolicy);
|
|
|
}
|
|
|
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public SellerBo buildSellerBo(){
|
|
|
return sellerBo;
|
|
|
}
|
...
|
...
|
|