Authored by chenchao

未上架的寄存商品

... ... @@ -1074,13 +1074,19 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService {
int rows = 0;
boolean isInstockDepositOrder = dscNode.isInstockDepositOrder();
if (isInstockDepositOrder){
if(isExistSkup)
try {
rows = depositService.changeOwner(sellerUid, skup, orderCode, buyerUid, true) ? 1 : 0;
}catch (Exception ex){
logger.warn("processOrderDeliverByDepositGoods fail, processInstockDepositOrderAfterDeliver invoke depositService.changeOwner fail, sellerUid {}, orderCode {},skup {}",
sellerUid, orderCode, skup, ex);
rows = 0;
//上架的寄存商品
if(isExistSkup){
try {
rows = depositService.changeOwner(sellerUid, skup, orderCode, buyerUid, true) ? 1 : 0;
}catch (Exception ex){
logger.warn("processOrderDeliverByDepositGoods fail, processInstockDepositOrderAfterDeliver invoke depositService.changeOwner fail, sellerUid {}, orderCode {},skup {} depositCode {}",
sellerUid, orderCode, skup,depositCode, ex);
rows = 0;
}
}else {
//TODO 未上架的寄存商品
logger.warn("processOrderDeliverByDepositGoods miss direction changeOwner cannot process, orderCode {} depositCode {}", orderCode, depositCode);
throw new UfoServiceException(400, "未上架的寄存商品暂不支持发货");
}
}else {
rows = depositService.updateDepositWaitToPick(ownerUid, depositCode, orderCode, Optional.ofNullable(preparedData.getBuyerOrderGoods())
... ...