Authored by caoyan

确认收货优化

... ... @@ -2616,7 +2616,18 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService, ApplicationCon
updateDeptNo(null, sellerWaybillCode, phoneUid);
pkg.setDepotNo(depotNo);
return abnormalPackageMapper.insert(pkg);
int num = abnormalPackageMapper.insert(pkg);
//记录操作日志
List<BuyerOrder> orderList = queryOrderByQueryStr(sellerWaybillCode, null, null);
if(CollectionUtils.isEmpty(orderList)) {
return num;
}
for(BuyerOrder order : orderList) {
saveOrderOperateRecord(order.getOrderCode(), new UserHelper(), OperateTypeEnum.OPERATE_TYPE_SET_TO_ABNORMAL.getCode(), "");
}
return num;
}
@Override
... ...