|
|
|
@ -2,6 +2,7 @@ package com.dxhy.order.consumer.modules.order.service.impl; |
|
|
|
|
|
|
|
|
|
import cn.hutool.core.collection.CollectionUtil; |
|
|
|
|
import cn.hutool.core.util.ObjectUtil; |
|
|
|
|
import com.dxhy.base.constant.OrderSeparationException; |
|
|
|
|
import com.dxhy.order.baseservice.module.thirdservice.user.model.DeptEntity; |
|
|
|
|
import com.dxhy.order.baseservice.module.thirdservice.user.service.UserInfoService; |
|
|
|
|
import com.dxhy.order.constant.ConfigureConstant; |
|
|
|
@ -11,15 +12,14 @@ import com.dxhy.order.consumer.dao.OrderProcessInfoMapper; |
|
|
|
|
import com.dxhy.order.consumer.modules.order.model.bo.YwlxCountBO; |
|
|
|
|
import com.dxhy.order.consumer.modules.order.model.bo.YwlxCountTotalBO; |
|
|
|
|
import com.dxhy.order.consumer.modules.order.service.OrderProcessService; |
|
|
|
|
import com.dxhy.order.invoice.module.invoice.dao.OrderInfoMapper; |
|
|
|
|
import com.dxhy.order.invoice.module.invoice.service.OrderInvoiceInfoService; |
|
|
|
|
import com.dxhy.order.model.OrderInvoiceInfo; |
|
|
|
|
import com.dxhy.order.model.OrderProcessInfo; |
|
|
|
|
import com.dxhy.order.model.OrderProcessInfoExt; |
|
|
|
|
import com.dxhy.order.model.PageUtils; |
|
|
|
|
import com.dxhy.order.model.*; |
|
|
|
|
import com.github.pagehelper.PageHelper; |
|
|
|
|
import com.github.pagehelper.PageInfo; |
|
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
|
|
|
|
@ -50,6 +50,9 @@ public class OrderProcessServiceImpl implements OrderProcessService { |
|
|
|
|
private OrderInvoiceInfoService orderInvoiceInfoService; |
|
|
|
|
@Resource |
|
|
|
|
private UserInfoService userInfoService; |
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
private OrderInfoMapper orderInfoMapper; |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public OrderProcessInfo selectOrderProcessInfoByProcessId(String id, List<String> shList) { |
|
|
|
@ -130,7 +133,23 @@ public class OrderProcessServiceImpl implements OrderProcessService { |
|
|
|
|
public int updateOrderProcessInfoByProcessId(OrderProcessInfo orderProcessInfo, List<String> shList) { |
|
|
|
|
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()); |
|
|
|
|
if (orderInfo == null) { |
|
|
|
|
throw new RuntimeException("删除SAP推送单据,数据异常"); |
|
|
|
|
} |
|
|
|
|
orderInfo.setFpqqlsh(orderProcessInfo.getFpqqlsh()); |
|
|
|
|
int rs = orderInfoMapper.updateOrderInfoByOrderId(orderInfo, null); |
|
|
|
|
if (rs == 0) { |
|
|
|
|
throw new RuntimeException("删除SAP推送单据,数据异常"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
orderProcessInfoMapper.updateOrderProcessInfoByProcessId(orderProcessInfo, shList); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 根据销方税号,订单号,发票请求流水号进行查询orderprocess信息 |
|
|
|
|
* |
|
|
|
|