Commit 7f6096eb authored by Quxl's avatar Quxl

x

parent a154ecaf
...@@ -94,6 +94,7 @@ ...@@ -94,6 +94,7 @@
<dependency> <dependency>
<groupId>mysql</groupId> <groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId> <artifactId>mysql-connector-java</artifactId>
<version>5.1.34</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>dom4j</groupId> <groupId>dom4j</groupId>
......
...@@ -152,7 +152,7 @@ public class ConfirmQuotationServiceImpl implements ConfirmQuotationService { ...@@ -152,7 +152,7 @@ public class ConfirmQuotationServiceImpl implements ConfirmQuotationService {
String xmlFullName = xmlRoot + "/sap/" + xmlName + "/" + DateUtil.formatDate(new Date(), DateUtil.FMT_DATE) + "/" + (isSuccess?"success":"error") + "/" + xmlName + "-" + common.getNextval(xmlName + "_" + dateString) + ".XML"; String xmlFullName = xmlRoot + "/sap/" + xmlName + "/" + DateUtil.formatDate(new Date(), DateUtil.FMT_DATE) + "/" + (isSuccess?"success":"error") + "/" + xmlName + "-" + common.getNextval(xmlName + "_" + dateString) + ".XML";
FileUtil.writeText(xmlFullName, xml); FileUtil.writeText(xmlFullName, xml);
} catch (Exception e) { } catch (Exception e) {
throw new XRException("报文保存失败", e); throw new XRException(ThrowableUtil.getCaused(e).getMessage(), e);
} }
} }
} }
......
...@@ -69,7 +69,7 @@ public class DNDeletionServiceImpl implements DNDeletionService { ...@@ -69,7 +69,7 @@ public class DNDeletionServiceImpl implements DNDeletionService {
String xmlFullName = xmlRoot + "/sap/" + xmlName + "/" + DateUtil.formatDate(new Date(), DateUtil.FMT_DATE) + "/" + (isSuccess?"success":"error") + "/" + xmlName + "-" + common.getNextval(xmlName + "_" + dateString) + ".XML"; String xmlFullName = xmlRoot + "/sap/" + xmlName + "/" + DateUtil.formatDate(new Date(), DateUtil.FMT_DATE) + "/" + (isSuccess?"success":"error") + "/" + xmlName + "-" + common.getNextval(xmlName + "_" + dateString) + ".XML";
FileUtil.writeText(xmlFullName, xml); FileUtil.writeText(xmlFullName, xml);
} catch (Exception e) { } catch (Exception e) {
throw new XRException("报文保存失败", e); throw new XRException(ThrowableUtil.getCaused(e).getMessage(), e);
} }
} }
} }
......
...@@ -128,7 +128,7 @@ public class MaterialMasterServiceImpl implements MaterialMasterService { ...@@ -128,7 +128,7 @@ public class MaterialMasterServiceImpl implements MaterialMasterService {
String xmlFullName = xmlRoot + "/sap/" + xmlName + "/" + DateUtil.formatDate(new Date(), DateUtil.FMT_DATE) + "/" + (isSuccess?"success":"error") + "/" + xmlName + "-" + common.getNextval(xmlName + "_" + dateString) + ".XML"; String xmlFullName = xmlRoot + "/sap/" + xmlName + "/" + DateUtil.formatDate(new Date(), DateUtil.FMT_DATE) + "/" + (isSuccess?"success":"error") + "/" + xmlName + "-" + common.getNextval(xmlName + "_" + dateString) + ".XML";
FileUtil.writeText(xmlFullName, xml); FileUtil.writeText(xmlFullName, xml);
} catch (Exception e) { } catch (Exception e) {
throw new XRException("报文保存失败", e); throw new XRException(ThrowableUtil.getCaused(e).getMessage(), e);
} }
} }
} }
......
...@@ -185,7 +185,7 @@ public class PrformaInvoiceServiceImpl implements PrformaInvoiceService { ...@@ -185,7 +185,7 @@ public class PrformaInvoiceServiceImpl implements PrformaInvoiceService {
String xmlFullName = xmlRoot + "/sap/" + xmlName + "/" + DateUtil.formatDate(new Date(), DateUtil.FMT_DATE) + "/" + (isSuccess?"success":"error") + "/" + xmlName + "-" + common.getNextval(xmlName + "_" + dateString) + ".XML"; String xmlFullName = xmlRoot + "/sap/" + xmlName + "/" + DateUtil.formatDate(new Date(), DateUtil.FMT_DATE) + "/" + (isSuccess?"success":"error") + "/" + xmlName + "-" + common.getNextval(xmlName + "_" + dateString) + ".XML";
FileUtil.writeText(xmlFullName, xml); FileUtil.writeText(xmlFullName, xml);
} catch (Exception e) { } catch (Exception e) {
throw new XRException("报文保存失败", e); throw new XRException(ThrowableUtil.getCaused(e).getMessage(), e);
} }
} }
} }
......
...@@ -103,7 +103,7 @@ public class PriceListServiceImpl implements PriceListService { ...@@ -103,7 +103,7 @@ public class PriceListServiceImpl implements PriceListService {
String xmlFullName = xmlRoot + "/sap/" + xmlName + "/" + DateUtil.formatDate(new Date(), DateUtil.FMT_DATE) + "/" + (isSuccess?"success":"error") + "/" + xmlName + "-" + common.getNextval(xmlName + "_" + dateString) + ".XML"; String xmlFullName = xmlRoot + "/sap/" + xmlName + "/" + DateUtil.formatDate(new Date(), DateUtil.FMT_DATE) + "/" + (isSuccess?"success":"error") + "/" + xmlName + "-" + common.getNextval(xmlName + "_" + dateString) + ".XML";
FileUtil.writeText(xmlFullName, xml); FileUtil.writeText(xmlFullName, xml);
} catch (Exception e) { } catch (Exception e) {
throw new XRException("报文保存失败", e); throw new XRException(ThrowableUtil.getCaused(e).getMessage(), e);
} }
} }
} }
......
...@@ -152,7 +152,7 @@ public class ShippingNotificationServiceImpl implements ShippingNotificationServ ...@@ -152,7 +152,7 @@ public class ShippingNotificationServiceImpl implements ShippingNotificationServ
String xmlFullName = xmlRoot + "/sap/" + xmlName + "/" + DateUtil.formatDate(new Date(), DateUtil.FMT_DATE) + "/" + (isSuccess?"success":"error") + "/" + xmlName + "-" + common.getNextval(xmlName + "_" + dateString) + ".XML"; String xmlFullName = xmlRoot + "/sap/" + xmlName + "/" + DateUtil.formatDate(new Date(), DateUtil.FMT_DATE) + "/" + (isSuccess?"success":"error") + "/" + xmlName + "-" + common.getNextval(xmlName + "_" + dateString) + ".XML";
FileUtil.writeText(xmlFullName, xml); FileUtil.writeText(xmlFullName, xml);
} catch (Exception e) { } catch (Exception e) {
throw new XRException("报文保存失败", e); throw new XRException(ThrowableUtil.getCaused(e).getMessage(), e);
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment