Authored by sailing-PC\sailing

fix

... ... @@ -6,6 +6,7 @@ import com.yohobuy.ufo.model.order.req.SellerOrderComputeReq;
import com.yohobuy.ufo.model.order.req.SellerOrderSubmitReq;
import com.yohoufo.common.ApiResponse;
import com.yohoufo.common.exception.GatewayException;
import com.yohoufo.order.service.handler.SellerOrderComputeHandler;
import com.yohoufo.order.service.impl.SellerOrderCancelService;
import com.yohoufo.order.service.impl.SellerOrderService;
import org.slf4j.Logger;
... ... @@ -135,4 +136,14 @@ public class SellerOrderController {
}
return new ApiResponse.ApiResponseBuilder().data(result).code(200).message(msg).build();
}
@Autowired
private SellerOrderComputeHandler sellerOrderComputeHandler;
@RequestMapping(params = "method=ufo.skup.earnestMoneyRange")
@ResponseBody
public ApiResponse getEarnestMoneyRange(){
return new ApiResponse.ApiResponseBuilder()
.data(sellerOrderComputeHandler.getEarnestMoneyrange())
.message("get EarnestMoneyrange success").build();
}
}
... ...
... ... @@ -28,6 +28,10 @@ public class SellerOrderComputeHandler {
EARNESTMONEYRANGE[1] = new BigDecimal(earnestmoney_max);
}
public BigDecimal[] getEarnestMoneyrange(){
return EARNESTMONEYRANGE;
}
public SellerOrderComputeResult compute(BigDecimal prdPrice){
//保证金(28-200(按照卖家发布商品的货款金额5%计算,最低28,封顶200))
... ...