|
|
|
@ -9,6 +9,8 @@ import com.dxhy.order.constant.*; |
|
|
|
|
import com.dxhy.order.consumer.constant.InterfaceNameEnum; |
|
|
|
|
import com.dxhy.order.consumer.dao.InterfaceRequestDataMapper; |
|
|
|
|
import com.dxhy.order.consumer.dao.OrderProcessInfoMapper; |
|
|
|
|
import com.dxhy.order.consumer.model.page.PageRequestVO; |
|
|
|
|
import com.dxhy.order.consumer.modules.order.controller.OrderInvoiceController; |
|
|
|
|
import com.dxhy.order.consumer.modules.order.service.OrderProcessService; |
|
|
|
|
import com.dxhy.order.consumer.openapi.protocol.po.EsOutput; |
|
|
|
|
import com.dxhy.order.consumer.openapi.protocol.po.IsInput; |
|
|
|
@ -28,6 +30,7 @@ import com.dxhy.order.invoice.config.InvoiceConfig; |
|
|
|
|
import com.dxhy.order.invoice.utils.HttpInvoiceRequestUtilQd; |
|
|
|
|
import com.dxhy.order.model.InterfaceRequestData; |
|
|
|
|
import com.dxhy.order.model.OrderProcessInfo; |
|
|
|
|
import com.dxhy.order.model.R; |
|
|
|
|
import com.dxhy.order.model.newsk.InvoiceRequestParam; |
|
|
|
|
import com.dxhy.order.utils.DecimalCalculateUtil; |
|
|
|
|
import com.dxhy.order.utils.DistributedKeyMaker; |
|
|
|
@ -69,6 +72,8 @@ public class InterfaceServiceImplV6 implements InterfaceServiceV6 { |
|
|
|
|
private InterfaceRequestDataMapper interfaceRequestDataMapper; |
|
|
|
|
@Resource |
|
|
|
|
private OrderProcessInfoMapper orderProcessInfoMapper; |
|
|
|
|
@Resource |
|
|
|
|
private OrderInvoiceController orderInvoiceController; |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public DdpcxxRspV5 generateQdInvoiceV6(DdpcxxReqBO ddpcxxReq, String secretId, String kpjh) { |
|
|
|
@ -124,6 +129,7 @@ public class InterfaceServiceImplV6 implements InterfaceServiceV6 { |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public PoCommonResponseParam updateOrderStatus(PoCommonRequestParam requestParam, String secretId) { |
|
|
|
|
//SAP驳回即删除订单
|
|
|
|
|
PoCommonResponseParam poCommonResponseParam = new PoCommonResponseParam(); |
|
|
|
|
EsOutput esOutput = new EsOutput(); |
|
|
|
|
IsInput is_input = requestParam.getIS_INPUT(); |
|
|
|
@ -141,14 +147,20 @@ public class InterfaceServiceImplV6 implements InterfaceServiceV6 { |
|
|
|
|
esOutput.setZMESSAGE("根据报账单号未查询到唯一结算单"); |
|
|
|
|
}else { |
|
|
|
|
OrderProcessInfo orderProcessInfo = orderProcessInfos.get(0); |
|
|
|
|
List<PageRequestVO> pageRequestList = new ArrayList<>(); |
|
|
|
|
PageRequestVO pageRequestVO = new PageRequestVO(); |
|
|
|
|
pageRequestVO.setOrderProcessId(orderProcessInfo.getId()); |
|
|
|
|
pageRequestVO.setXhfNsrsbh(orderProcessInfo.getXhfNsrsbh()); |
|
|
|
|
pageRequestList.add(pageRequestVO); |
|
|
|
|
R back = orderInvoiceController.updateOrderStatus(pageRequestList, "back"); |
|
|
|
|
if("0000".equals(back.get(OrderManagementConstant.CODE))){ |
|
|
|
|
orderProcessInfo.setBhzt(ConfigureConstant.STRING_1); |
|
|
|
|
int i = orderProcessInfoMapper.updateOrderProcessInfoByFpqqlsh(orderProcessInfo, null); |
|
|
|
|
if(i == 1){ |
|
|
|
|
esOutput.setZTYPE(OrderInfoContentEnum.INVOICE_ERROR_CODE_OP_S.getKey()); |
|
|
|
|
esOutput.setZMESSAGE("驳回状态更新成功"); |
|
|
|
|
}else { |
|
|
|
|
}else{ |
|
|
|
|
esOutput.setZTYPE(OrderInfoContentEnum.INVOICE_ERROR_CODE_OP_E.getKey()); |
|
|
|
|
esOutput.setZMESSAGE("驳回状态更新失败"); |
|
|
|
|
esOutput.setZMESSAGE(back.get(OrderManagementConstant.MESSAGE).toString()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
poCommonResponseParam.setES_OUTPUT(esOutput); |
|
|
|
|