...
|
...
|
@@ -733,6 +733,25 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { |
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public void updateSellerDeliveryDeal(BuyerOrderReq req){
|
|
|
String orderCode = req.getOrderCode();
|
|
|
BuyerOrder buyerOrder = buyerOrderMapper.selectByOrderCode(orderCode);
|
|
|
if (null == buyerOrder) {
|
|
|
throw new ServiceException(400, "订单不存在");
|
|
|
}
|
|
|
if(1==buyerOrder.getSellerDeliveryDeal()){
|
|
|
return ;
|
|
|
}
|
|
|
//更新
|
|
|
buyerOrderMapper.updateSellerDeliveryDealByOrderCode(Long.valueOf(orderCode),buyerOrder.getUid());
|
|
|
//记录一条操作记录
|
|
|
int operateType =OperateTypeEnum.SELLER_DELIVERY_DEAL_FLAG.getCode();
|
|
|
UserHelper userHelper = new UserHelper();
|
|
|
saveOrderOperateRecord(buyerOrder.getOrderCode(), userHelper, operateType, "");
|
|
|
LOGGER.info("updateSellerDeliveryDeal saveOrderOperateRecord operateType={} ,order code ={} ,userHelper = {}",operateType,buyerOrder.getOrderCode() ,userHelper);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public void cancelBuyerOrder(String orderCode) {
|
|
|
BuyerOrder buyerOrder = buyerOrderMapper.selectByOrderCode(orderCode);
|
|
|
if (null == buyerOrder) {
|
...
|
...
|
@@ -2387,6 +2406,7 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { |
|
|
|
|
|
resp.setSkup(skup);
|
|
|
|
|
|
resp.setSellerDeliveryDeal(item.getSellerDeliveryDeal());
|
|
|
resp.setSellerDeliveryDealDesc(1==item.getSellerDeliveryDeal()?"已处理":"未处理");
|
|
|
|
|
|
resp.setSellerWaybillCode(null == expressInfoMap.get(item.getOrderCode()) ? "" : expressInfoMap.get(item.getOrderCode()).getWaybillCode());
|
...
|
...
|
|