Authored by chenchao

lc

... ... @@ -14,6 +14,7 @@ import java.math.BigDecimal;
*/
@Data
public class SellerOrderContext {
private int uid;
... ...
... ... @@ -29,6 +29,7 @@ public class SellerOrderComputeHandler extends AbsSellerOrderComputeHandler impl
* @return
*/
protected EarnestMoney calEarnestMoney(BigDecimal prdPrice){
BigDecimal[] EARNEST_MONEY_RANGE = orderDynamicConfig.getEMR();
EarnestMoney earnestMoney = new EarnestMoney();
// earnestMoney.rate 动态可配
... ...
... ... @@ -308,6 +308,7 @@ public class SellerOrderDetailService extends AbsOrderDetailService implements I
private String buildOverPriceTips(int storageId, BigDecimal prdPrice){
final String defaultResult = "";
try{
PrdPrice prdPriceRange = productProxyService.getPrdPriceRange(null, storageId);
logger.info("in buildOverPriceTips, prdPrice {}, storageId {} prdPriceRange {}", prdPrice, storageId, prdPriceRange);
boolean isOverflow = sellerOrderPrepareProcessor.isOverSuggestMaxPrice(prdPriceRange.getSuggestMaxPrice(), prdPrice);
... ...
... ... @@ -76,6 +76,8 @@ public class SellerOrderService implements IOrderListService, IOrderDetailServi
private final Logger log = LoggerUtils.getSellerOrderLogger();
@Autowired
private SellerOrderMapper sellerOrderMapper;
... ...
... ... @@ -39,6 +39,8 @@ import java.util.stream.Collectors;
public abstract class AbstractChangePricePrepareProcessor<T extends SellerBaseChangeReq> {
protected final Logger logger = LoggerUtils.getSellerOrderLogger();
@Autowired
private BuyerOrderGoodsMapper buyerOrderGoodsMapper;
... ...
... ... @@ -41,6 +41,7 @@ import java.util.Objects;
public class SellerOrderPrepareProcessor {
private final Logger log = LoggerUtils.getSellerOrderLogger();
@Autowired
private UserProxyService userProxyService;
... ...
... ... @@ -27,6 +27,7 @@ import java.util.Objects;
*/
@Service
public class ImportPublishExcutor implements PublishExcutor<BatchImportPrdReq, SellerOrderSubmitHandler.ForkJoinResult>{
@Builder
@Data
private static class ImPrdNode{
... ...
... ... @@ -11,4 +11,5 @@ public interface OrderComputeHandler {
SellerOrderComputeResult compute(BigDecimal prdPrice, SellerOrderComputeResult personalComputeConfig);
}
... ...
... ... @@ -19,6 +19,7 @@ import java.util.Optional;
*/
@Component
public class SellerAdvanceOrderComputeHandler extends AbsSellerOrderComputeHandler implements OrderComputeHandler {
@Autowired
private MetaConfigService metaConfigService;
... ...
... ... @@ -14,6 +14,7 @@ import java.util.Objects;
* Created by chao.chen on 2018/12/20.
*/
public class OrderAssist {
public static final String Y = "Y", N = "N";
public static String overFlowPriceKey(Integer storageId, BigDecimal salePrice){
... ...
... ... @@ -20,6 +20,7 @@ public class SellerOrderServiceTest {
SellerOrderComputeHandler sos = new SellerOrderComputeHandler();
BigDecimal prdPrice = new BigDecimal(100D);
SellerOrderComputeResult bo = sos.compute(prdPrice, null);
System.out.println("in testBuildSoldPrdComputeBo :"+ JSONObject.toJSONString(bo));
}
}
... ...