Authored by wujiexiang

Merge branch 'hotfix-PlatformServiceFee' into test6.9.22

package com.yohoufo.order.service.support;
import com.yoho.core.common.utils.DateUtil;
import com.yohoufo.common.utils.DateUtil;
import com.yohobuy.ufo.model.order.common.EntrySellerType;
import com.yohobuy.ufo.model.order.constants.OrderConstant;
import com.yohobuy.ufo.model.order.constants.SkupType;
... ...
... ... @@ -13,6 +13,8 @@ import org.junit.Assert;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import java.math.BigDecimal;
/**
* 卖家订单统计
*/
... ... @@ -50,4 +52,11 @@ public class SellerOrderQuantityStatsTest extends BaseWebTest {
//0.05 最大比例
Assert.assertTrue(sellerPlatformServiceFee.getFeeRate().doubleValue() < 0.05);
}
@Test
public void test_currentPeriod_feeRate_is_null_for_advance() {
BigDecimal feeRate = sellerPlatformServiceFeeSupport.getPlatformServiceFeeRate(uid, SkupType.ADVANCE);
Assert.assertTrue(feeRate == null);
}
}
... ...