Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
sap-service
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
曲欣亮
sap-service
Commits
314ebd73
Commit
314ebd73
authored
Aug 01, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
e6ee2c5f
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
0 deletions
+16
-0
ConfirmQuotationServiceImpl.java
...rvices/confirm_quotation/ConfirmQuotationServiceImpl.java
+3
-0
DNDeletionServiceImpl.java
...egolm/sso/services/dn_deletion/DNDeletionServiceImpl.java
+3
-0
MaterialMasterServiceImpl.java
...o/services/material_master/MaterialMasterServiceImpl.java
+2
-0
PrformaInvoiceServiceImpl.java
...o/services/prforma_invoice/PrformaInvoiceServiceImpl.java
+3
-0
PriceListServiceImpl.java
...m/egolm/sso/services/price_list/PriceListServiceImpl.java
+2
-0
ShippingNotificationServiceImpl.java
...hipping_notfirmation/ShippingNotificationServiceImpl.java
+3
-0
No files found.
src/main/java/com/egolm/sso/services/confirm_quotation/ConfirmQuotationServiceImpl.java
View file @
314ebd73
...
...
@@ -28,6 +28,7 @@ import com.egolm.sso.util.FileUtil;
import
com.egolm.sso.util.StringUtil
;
import
com.egolm.sso.util.ThrowableUtil
;
import
com.egolm.sso.util.XMLUtil
;
import
com.google.gson.Gson
;
@Component
@WebService
(
serviceName
=
"ConfirmQuotationService"
,
targetNamespace
=
"http://confirm_quotation.sso.egolm.com"
,
endpointInterface
=
"com.egolm.sso.services.confirm_quotation.ConfirmQuotationService"
)
...
...
@@ -170,6 +171,8 @@ public class ConfirmQuotationServiceImpl implements ConfirmQuotationService {
String
xml
=
XMLUtil
.
toXml
(
Z_MT_SD_008_SO_CONFIRM_QUOTATION
);
String
xmlFullName
=
xmlRoot
+
"/sap/"
+
xmlName
+
"/"
+
DateUtil
.
formatDate
(
new
Date
(),
DateUtil
.
FMT_DATE
)
+
"/"
+
(
isSuccess
?
"success"
:
"error"
)
+
"/"
+
xmlName
+
"-"
+
DateUtil
.
formatDate
(
now
,
"yyyyMMddHHmmssSSS"
)
+
".XML"
;
FileUtil
.
writeText
(
xmlFullName
,
xml
);
String
json
=
new
Gson
().
toJson
(
Z_MT_SD_008_SO_CONFIRM_QUOTATION
);
FileUtil
.
writeText
(
xmlFullName
+
".JSON"
,
json
);
}
catch
(
Exception
e
)
{
throw
new
XRException
(
ThrowableUtil
.
getCaused
(
e
).
getMessage
(),
e
);
}
...
...
src/main/java/com/egolm/sso/services/dn_deletion/DNDeletionServiceImpl.java
View file @
314ebd73
...
...
@@ -20,6 +20,7 @@ import com.egolm.sso.util.SqlUtil;
import
com.egolm.sso.util.StringUtil
;
import
com.egolm.sso.util.ThrowableUtil
;
import
com.egolm.sso.util.SqlUtil.Sql
;
import
com.google.gson.Gson
;
import
com.egolm.sso.util.XMLUtil
;
@Component
...
...
@@ -79,6 +80,8 @@ public class DNDeletionServiceImpl implements DNDeletionService {
String
xml
=
XMLUtil
.
toXml
(
DELETED_DOCUMENTS
);
String
xmlFullName
=
xmlRoot
+
"/sap/"
+
xmlName
+
"/"
+
DateUtil
.
formatDate
(
new
Date
(),
DateUtil
.
FMT_DATE
)
+
"/"
+
(
isSuccess
?
"success"
:
"error"
)
+
"/"
+
xmlName
+
"-"
+
DateUtil
.
formatDate
(
now
,
"yyyyMMddHHmmssSSS"
)
+
".XML"
;
FileUtil
.
writeText
(
xmlFullName
,
xml
);
String
json
=
new
Gson
().
toJson
(
DELETED_DOCUMENTS
);
FileUtil
.
writeText
(
xmlFullName
+
".JSON"
,
json
);
}
catch
(
Exception
e
)
{
throw
new
XRException
(
ThrowableUtil
.
getCaused
(
e
).
getMessage
(),
e
);
}
...
...
src/main/java/com/egolm/sso/services/material_master/MaterialMasterServiceImpl.java
View file @
314ebd73
...
...
@@ -129,6 +129,8 @@ public class MaterialMasterServiceImpl implements MaterialMasterService {
String
xml
=
XMLUtil
.
toXml
(
Z_MT_SD_001_MATERIAL_MASTER
);
String
xmlFullName
=
xmlRoot
+
"/sap/"
+
xmlName
+
"/"
+
DateUtil
.
formatDate
(
new
Date
(),
DateUtil
.
FMT_DATE
)
+
"/"
+
(
isSuccess
?
"success"
:
"error"
)
+
"/"
+
xmlName
+
"-"
+
DateUtil
.
formatDate
(
now
,
"yyyyMMddHHmmssSSS"
)
+
".XML"
;
FileUtil
.
writeText
(
xmlFullName
,
xml
);
String
json
=
new
Gson
().
toJson
(
Z_MT_SD_001_MATERIAL_MASTER
);
FileUtil
.
writeText
(
xmlFullName
+
".JSON"
,
json
);
}
catch
(
Exception
e
)
{
throw
new
XRException
(
ThrowableUtil
.
getCaused
(
e
).
getMessage
(),
e
);
}
...
...
src/main/java/com/egolm/sso/services/prforma_invoice/PrformaInvoiceServiceImpl.java
View file @
314ebd73
...
...
@@ -34,6 +34,7 @@ import com.egolm.sso.util.DateUtil;
import
com.egolm.sso.util.FileUtil
;
import
com.egolm.sso.util.SqlUtil
;
import
com.egolm.sso.util.SqlUtil.Sql
;
import
com.google.gson.Gson
;
import
com.egolm.sso.util.StringUtil
;
import
com.egolm.sso.util.ThrowableUtil
;
import
com.egolm.sso.util.XMLUtil
;
...
...
@@ -254,6 +255,8 @@ public class PrformaInvoiceServiceImpl implements PrformaInvoiceService {
String
xml
=
XMLUtil
.
toXml
(
Z_MT_SD_005_PERFORM_INVOICE
);
String
xmlFullName
=
xmlRoot
+
"/sap/"
+
xmlName
+
"/"
+
DateUtil
.
formatDate
(
new
Date
(),
DateUtil
.
FMT_DATE
)
+
"/"
+
(
isSuccess
?
"success"
:
"error"
)
+
"/"
+
xmlName
+
"-"
+
DateUtil
.
formatDate
(
now
,
"yyyyMMddHHmmssSSS"
)
+
".XML"
;
FileUtil
.
writeText
(
xmlFullName
,
xml
);
String
json
=
new
Gson
().
toJson
(
Z_MT_SD_005_PERFORM_INVOICE
);
FileUtil
.
writeText
(
xmlFullName
+
".JSON"
,
json
);
}
catch
(
Exception
e
)
{
throw
new
XRException
(
ThrowableUtil
.
getCaused
(
e
).
getMessage
(),
e
);
}
...
...
src/main/java/com/egolm/sso/services/price_list/PriceListServiceImpl.java
View file @
314ebd73
...
...
@@ -112,6 +112,8 @@ public class PriceListServiceImpl implements PriceListService {
String
xml
=
XMLUtil
.
toXml
(
Z_MT_SD_002_PRICE_LIST
);
String
xmlFullName
=
xmlRoot
+
"/sap/"
+
xmlName
+
"/"
+
DateUtil
.
formatDate
(
new
Date
(),
DateUtil
.
FMT_DATE
)
+
"/"
+
(
isSuccess
?
"success"
:
"error"
)
+
"/"
+
xmlName
+
"-"
+
DateUtil
.
formatDate
(
now
,
"yyyyMMddHHmmssSSS"
)
+
".XML"
;
FileUtil
.
writeText
(
xmlFullName
,
xml
);
String
json
=
new
Gson
().
toJson
(
Z_MT_SD_002_PRICE_LIST
);
FileUtil
.
writeText
(
xmlFullName
+
".JSON"
,
json
);
}
catch
(
Exception
e
)
{
throw
new
XRException
(
ThrowableUtil
.
getCaused
(
e
).
getMessage
(),
e
);
}
...
...
src/main/java/com/egolm/sso/services/shipping_notfirmation/ShippingNotificationServiceImpl.java
View file @
314ebd73
...
...
@@ -31,6 +31,7 @@ import com.egolm.sso.util.FileUtil;
import
com.egolm.sso.util.StringUtil
;
import
com.egolm.sso.util.ThrowableUtil
;
import
com.egolm.sso.util.XMLUtil
;
import
com.google.gson.Gson
;
@Component
@WebService
(
serviceName
=
"ShippingNotificationService"
,
targetNamespace
=
"http://shipping_notfirmation.sso.egolm.com"
,
endpointInterface
=
"com.egolm.sso.services.shipping_notfirmation.ShippingNotificationService"
)
...
...
@@ -180,6 +181,8 @@ public class ShippingNotificationServiceImpl implements ShippingNotificationServ
String
xml
=
XMLUtil
.
toXml
(
Z_MT_SD_007_SHIPPING_NOTFIRMATION_FILE
);
String
xmlFullName
=
xmlRoot
+
"/sap/"
+
xmlName
+
"/"
+
DateUtil
.
formatDate
(
new
Date
(),
DateUtil
.
FMT_DATE
)
+
"/"
+
(
isSuccess
?
"success"
:
"error"
)
+
"/"
+
xmlName
+
"-"
+
DateUtil
.
formatDate
(
now
,
"yyyyMMddHHmmssSSS"
)
+
".XML"
;
FileUtil
.
writeText
(
xmlFullName
,
xml
);
String
json
=
new
Gson
().
toJson
(
Z_MT_SD_007_SHIPPING_NOTFIRMATION_FILE
);
FileUtil
.
writeText
(
xmlFullName
+
".JSON"
,
json
);
}
catch
(
Exception
e
)
{
throw
new
XRException
(
ThrowableUtil
.
getCaused
(
e
).
getMessage
(),
e
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment