|
|
package com.yohoufo.order.controller;
|
|
|
|
|
|
import com.yohobuy.ufo.model.order.constants.OrderConstant;
|
|
|
import com.yohobuy.ufo.model.order.constants.SkupType;
|
|
|
import com.yohoufo.common.ApiResponse;
|
|
|
import com.yohoufo.order.constants.BidTimeLimit;
|
...
|
...
|
@@ -11,7 +10,6 @@ import com.yohoufo.order.service.impl.BuyerBidPublishService; |
|
|
import com.yohoufo.order.service.impl.BuyerBidPriceService;
|
|
|
import com.yohoufo.order.service.seller.processor.PriceComputePrepareProcessor;
|
|
|
import com.yohoufo.order.utils.LoggerUtils;
|
|
|
import com.yohoufo.order.utils.MathUtils;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
...
|
...
|
@@ -19,9 +17,6 @@ import org.springframework.web.bind.annotation.RequestParam; |
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import java.util.LinkedList;
|
|
|
import java.util.List;
|
|
|
|
|
|
@RestController
|
|
|
@RequestMapping(value = "/shopping/bid")
|
|
|
public class BuyerBidController {
|
...
|
...
|
@@ -44,30 +39,7 @@ public class BuyerBidController { |
|
|
*/
|
|
|
@RequestMapping(params = "method=ufo.buyer.bid.config")
|
|
|
public ApiResponse config() {
|
|
|
BidConfigResponse response = new BidConfigResponse();
|
|
|
List<PromotionFormula> promotionFormulaList = new LinkedList<>();
|
|
|
|
|
|
//商品金额
|
|
|
PromotionFormula goodsFormula = new PromotionFormula();
|
|
|
goodsFormula.setPromotion(OrderConstant.GOODS_PRICE);
|
|
|
goodsFormula.setPromotionAmount(MathUtils.formatCurrencyStr(0));
|
|
|
promotionFormulaList.add(goodsFormula);
|
|
|
|
|
|
//运费
|
|
|
PromotionFormula expressFormula = new PromotionFormula();
|
|
|
expressFormula.setPromotion(OrderConstant.DELIVERY_DESC);
|
|
|
expressFormula.setPromotionAmount(MathUtils.formatCurrencyStr(0));
|
|
|
promotionFormulaList.add(expressFormula);
|
|
|
|
|
|
//最终金额
|
|
|
PromotionFormula finalAmountFormula = new PromotionFormula();
|
|
|
finalAmountFormula.setPromotion(OrderConstant.GOODS_REAL_PRICE);
|
|
|
finalAmountFormula.setPromotionAmount(MathUtils.formatCurrencyStr(0));
|
|
|
promotionFormulaList.add(finalAmountFormula);
|
|
|
|
|
|
response.setPromotionFormulaList(promotionFormulaList);
|
|
|
|
|
|
return new ApiResponse.ApiResponseBuilder().code(200).data(response).message("ok").build();
|
|
|
return new ApiResponse.ApiResponseBuilder().code(200).data(new BidConfigResponse()).message("ok").build();
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
|