...
|
...
|
@@ -13,6 +13,7 @@ import com.yohoufo.order.model.request.SellerGoodsListRequest; |
|
|
import com.yohoufo.order.model.response.OrderSubmitResp;
|
|
|
import com.yohoufo.order.service.impl.SellerOrderService;
|
|
|
import com.yohoufo.order.service.impl.SkupListService;
|
|
|
import com.yohoufo.order.service.seller.changePrice.NotEntrySellerChangePriceService;
|
|
|
import com.yohoufo.order.utils.LoggerUtils;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
...
|
...
|
@@ -37,6 +38,9 @@ public class SellerGoodsController { |
|
|
@Autowired
|
|
|
private SellerOrderService sellerOrderService;
|
|
|
|
|
|
@Autowired
|
|
|
private NotEntrySellerChangePriceService notEntrySellerChangePriceService;
|
|
|
|
|
|
@RequestMapping(params = "method=ufo.seller.entryPrdList")
|
|
|
@ResponseBody
|
|
|
public ApiResponse getEntryGoodsList(@RequestParam("type") int type,
|
...
|
...
|
@@ -122,7 +126,7 @@ public class SellerGoodsController { |
|
|
.price(price).build();
|
|
|
logger.info("in ufo.notEntrySeller.computeChangePricece, req {}", req);
|
|
|
try {
|
|
|
SoldPrdComputeBo computeBo = sellerOrderService.computeChangePrice4NES(req);
|
|
|
SoldPrdComputeBo computeBo = notEntrySellerChangePriceService.computeChangePrice(req);
|
|
|
return new ApiResponse.ApiResponseBuilder().code(200).data(computeBo).message("算费成功").build();
|
|
|
} catch (Exception ex) {
|
|
|
logger.error("exception happened in ufo.notEntrySeller.computeChangePrice, req {}", req, ex);
|
...
|
...
|
@@ -140,7 +144,7 @@ public class SellerGoodsController { |
|
|
.uid(uid).skup(skup).price(price).build();
|
|
|
logger.info("in ufo.notEntrySeller.changePrice, req {}", req);
|
|
|
try {
|
|
|
OrderSubmitResp result = sellerOrderService.changePrice4NES(req);
|
|
|
OrderSubmitResp result = notEntrySellerChangePriceService.changePrice(req);
|
|
|
return new ApiResponse.ApiResponseBuilder()
|
|
|
.data(result).code(200)
|
|
|
.message(result.getTips()).build();
|
...
|
...
|
|