feature:发票已开具的订单,重新提交时直接返回S

release
gaorl 2 years ago
parent 7ec4c029d2
commit c87fedc4f1
  1. 4
      order-management-consumer/src/main/java/com/dxhy/order/consumer/openapi/service/impl/InterfaceServiceImplV6.java
  2. 2
      order-management-consumer/src/main/java/com/dxhy/order/consumer/utils/BeanTransitionUtils.java

@ -302,7 +302,9 @@ public class InterfaceServiceImplV6 implements InterfaceServiceV6 {
ddpcxxRspV5.setZTXX(InterfaceEnum.INTERFACE_V5_GENERATEINVOICE_702001.getMessage()); ddpcxxRspV5.setZTXX(InterfaceEnum.INTERFACE_V5_GENERATEINVOICE_702001.getMessage());
} else if(StringUtils.equals(InterfaceEnum.INTERFACE_V5_STATUS_009999.getKey(),ddpcxxRspV5.getZTDM())){ } else if(StringUtils.equals(InterfaceEnum.INTERFACE_V5_STATUS_009999.getKey(),ddpcxxRspV5.getZTDM())){
ddpcxxRspV5.setZTDM(InterfaceEnum.INTERFACE_V5_GENERATEINVOICE_029999.getKey()); ddpcxxRspV5.setZTDM(InterfaceEnum.INTERFACE_V5_GENERATEINVOICE_029999.getKey());
} else { } else if(StringUtils.equals(OrderInfoContentEnum.INVOICE_ERROR_CODE_010002_V3.getKey(),ddpcxxRspV5.getZTDM())){
ddpcxxRspV5.setZTDM(InterfaceEnum.INTERFACE_V5_GENERATEINVOICE_010000.getKey());
}else {
ddpcxxRspV5.setZTDM(InterfaceEnum.INTERFACE_V5_GENERATEINVOICE_019999.getKey()); ddpcxxRspV5.setZTDM(InterfaceEnum.INTERFACE_V5_GENERATEINVOICE_019999.getKey());
} }
return ddpcxxRspV5; return ddpcxxRspV5;

@ -3603,7 +3603,7 @@ public class BeanTransitionUtils {
EsOutput esOutput = new EsOutput(); EsOutput esOutput = new EsOutput();
esOutput.setBSKEY(ddpcxxRspV5.getDDQQPCH()); esOutput.setBSKEY(ddpcxxRspV5.getDDQQPCH());
esOutput.setSAPKEY(ddpcxxRspV5.getDDQQPCH()); esOutput.setSAPKEY(ddpcxxRspV5.getDDQQPCH());
if (OrderInfoContentEnum.INVOICE_ERROR_CODE_010000_V3.getKey().equals(ddpcxxRspV5.getZTDM())||OrderInfoContentEnum.INVOICE_ERROR_CODE_010002_V3.getKey().equals(ddpcxxRspV5.getZTDM())) { if (OrderInfoContentEnum.INVOICE_ERROR_CODE_010000_V3.getKey().equals(ddpcxxRspV5.getZTDM())) {
esOutput.setZTYPE(OrderInfoContentEnum.INVOICE_ERROR_CODE_OP_S.getKey()); esOutput.setZTYPE(OrderInfoContentEnum.INVOICE_ERROR_CODE_OP_S.getKey());
} else { } else {
esOutput.setZTYPE(OrderInfoContentEnum.INVOICE_ERROR_CODE_OP_E.getKey()); esOutput.setZTYPE(OrderInfoContentEnum.INVOICE_ERROR_CODE_OP_E.getKey());

Loading…
Cancel
Save