|
|
@ -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,7 +147,7 @@ public class OrderProcessServiceImpl implements OrderProcessService { |
|
|
|
throw new RuntimeException("删除SAP推送单据,数据异常"); |
|
|
|
throw new RuntimeException("删除SAP推送单据,数据异常"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return orderProcessInfoMapper.updateOrderProcessInfoByProcessId(orderProcessInfo, shList); |
|
|
|
orderProcessInfoMapper.updateOrderProcessInfoByProcessId(orderProcessInfo, shList); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|