...
|
...
|
@@ -364,7 +364,7 @@ public class ErpFastDeliveryServiceImpl implements IErpFastDeliveryService { |
|
|
public List<FastDeliveryBatchOnShelfResp> batchOnShelf(FastDeliveryBatchOnShelfReq req) {
|
|
|
|
|
|
// 1.检查入口参数
|
|
|
checkBatchOnShelf(req);
|
|
|
checkBatchOnShelf(req, true);
|
|
|
|
|
|
// 2.检查用户权限(极速发货权限)
|
|
|
SellerWrapper sellerWrapper = checkFastDeliveryAuth(req.getUid());
|
...
|
...
|
@@ -438,6 +438,9 @@ public class ErpFastDeliveryServiceImpl implements IErpFastDeliveryService { |
|
|
* @return
|
|
|
*/
|
|
|
public List<StorageCheckResp> getStorageInfo(FastDeliveryBatchOnShelfReq req){
|
|
|
// 1.检查入口参数
|
|
|
checkBatchOnShelf(req, false);
|
|
|
|
|
|
return productProxyService.getStorageInfoList(buildStorageReq(req));
|
|
|
}
|
|
|
|
...
|
...
|
@@ -512,7 +515,7 @@ public class ErpFastDeliveryServiceImpl implements IErpFastDeliveryService { |
|
|
}
|
|
|
|
|
|
|
|
|
private void checkBatchOnShelf(FastDeliveryBatchOnShelfReq req) {
|
|
|
private void checkBatchOnShelf(FastDeliveryBatchOnShelfReq req, boolean checkPrice) {
|
|
|
|
|
|
if (req.getUid() < 0){
|
|
|
logger.warn("uid is empty");
|
...
|
...
|
@@ -532,9 +535,11 @@ public class ErpFastDeliveryServiceImpl implements IErpFastDeliveryService { |
|
|
throw new UfoServiceException(400, "商品信息不合法");
|
|
|
}
|
|
|
|
|
|
// 价格已9结尾
|
|
|
BigDecimal salePrice = priceComputePrepareProcessor.checkAndAcquireSalePrice(productInfo.getPrice(), SkupType.FAST_DELIVERY);
|
|
|
productInfo.setConvertedPrice(salePrice);
|
|
|
if (checkPrice){
|
|
|
// 价格已9结尾
|
|
|
BigDecimal salePrice = priceComputePrepareProcessor.checkAndAcquireSalePrice(productInfo.getPrice(), SkupType.FAST_DELIVERY);
|
|
|
productInfo.setConvertedPrice(salePrice);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
} |
...
|
...
|
|