Authored by sailing-PC\sailing

fix

@@ -6,6 +6,7 @@ import com.yohobuy.ufo.model.order.req.SellerOrderComputeReq; @@ -6,6 +6,7 @@ import com.yohobuy.ufo.model.order.req.SellerOrderComputeReq;
6 import com.yohobuy.ufo.model.order.req.SellerOrderSubmitReq; 6 import com.yohobuy.ufo.model.order.req.SellerOrderSubmitReq;
7 import com.yohoufo.common.ApiResponse; 7 import com.yohoufo.common.ApiResponse;
8 import com.yohoufo.common.exception.GatewayException; 8 import com.yohoufo.common.exception.GatewayException;
  9 +import com.yohoufo.order.service.handler.SellerOrderComputeHandler;
9 import com.yohoufo.order.service.impl.SellerOrderCancelService; 10 import com.yohoufo.order.service.impl.SellerOrderCancelService;
10 import com.yohoufo.order.service.impl.SellerOrderService; 11 import com.yohoufo.order.service.impl.SellerOrderService;
11 import org.slf4j.Logger; 12 import org.slf4j.Logger;
@@ -135,4 +136,14 @@ public class SellerOrderController { @@ -135,4 +136,14 @@ public class SellerOrderController {
135 } 136 }
136 return new ApiResponse.ApiResponseBuilder().data(result).code(200).message(msg).build(); 137 return new ApiResponse.ApiResponseBuilder().data(result).code(200).message(msg).build();
137 } 138 }
  139 +
  140 + @Autowired
  141 + private SellerOrderComputeHandler sellerOrderComputeHandler;
  142 + @RequestMapping(params = "method=ufo.skup.earnestMoneyRange")
  143 + @ResponseBody
  144 + public ApiResponse getEarnestMoneyRange(){
  145 + return new ApiResponse.ApiResponseBuilder()
  146 + .data(sellerOrderComputeHandler.getEarnestMoneyrange())
  147 + .message("get EarnestMoneyrange success").build();
  148 + }
138 } 149 }
@@ -28,6 +28,10 @@ public class SellerOrderComputeHandler { @@ -28,6 +28,10 @@ public class SellerOrderComputeHandler {
28 EARNESTMONEYRANGE[1] = new BigDecimal(earnestmoney_max); 28 EARNESTMONEYRANGE[1] = new BigDecimal(earnestmoney_max);
29 } 29 }
30 30
  31 + public BigDecimal[] getEarnestMoneyrange(){
  32 + return EARNESTMONEYRANGE;
  33 + }
  34 +
31 public SellerOrderComputeResult compute(BigDecimal prdPrice){ 35 public SellerOrderComputeResult compute(BigDecimal prdPrice){
32 36
33 //保证金(28-200(按照卖家发布商品的货款金额5%计算,最低28,封顶200)) 37 //保证金(28-200(按照卖家发布商品的货款金额5%计算,最低28,封顶200))