|
|
@ -131,7 +131,12 @@ public class OrderProcessServiceImpl implements OrderProcessService { |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public int updateOrderProcessInfoByProcessId(OrderProcessInfo orderProcessInfo, List<String> shList) { |
|
|
|
public int updateOrderProcessInfoByProcessId(OrderProcessInfo orderProcessInfo, List<String> shList) { |
|
|
|
if (OrderInfoEnum.SYS_SOURCE_SAP.getKey().equals(orderProcessInfo.getXtly())) { |
|
|
|
return orderProcessInfoMapper.updateOrderProcessInfoByProcessId(orderProcessInfo, shList); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public void deleteOrderProcessInfoAndOrderInfoByProcessId(OrderProcessInfo orderProcessInfo, List<String> shList) { |
|
|
|
|
|
|
|
if (StringUtils.isNotBlank(orderProcessInfo.getXtly())&&OrderInfoEnum.SYS_SOURCE_SAP.getKey().equals(orderProcessInfo.getXtly())) { |
|
|
|
OrderInfo orderInfo = orderInfoMapper.queryOrderInfoByProcessId(orderProcessInfo.getId()); |
|
|
|
OrderInfo orderInfo = orderInfoMapper.queryOrderInfoByProcessId(orderProcessInfo.getId()); |
|
|
|
if (orderInfo == null) { |
|
|
|
if (orderInfo == null) { |
|
|
|
throw new RuntimeException("删除SAP推送单据,数据异常"); |
|
|
|
throw new RuntimeException("删除SAP推送单据,数据异常"); |
|
|
@ -142,9 +147,9 @@ public class OrderProcessServiceImpl implements OrderProcessService { |
|
|
|
throw new RuntimeException("删除SAP推送单据,数据异常"); |
|
|
|
throw new RuntimeException("删除SAP推送单据,数据异常"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return orderProcessInfoMapper.updateOrderProcessInfoByProcessId(orderProcessInfo, shList); |
|
|
|
orderProcessInfoMapper.updateOrderProcessInfoByProcessId(orderProcessInfo, shList); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 根据销方税号,订单号,发票请求流水号进行查询orderprocess信息 |
|
|
|
* 根据销方税号,订单号,发票请求流水号进行查询orderprocess信息 |
|
|
|
* |
|
|
|
* |
|
|
|