Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
sso
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
曲欣亮
sso
Commits
08410493
Commit
08410493
authored
Jul 10, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
edb1ab1a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ProFormaInvoiceServiceImpl.java
...om/egolm/sso/service/impl/ProFormaInvoiceServiceImpl.java
+3
-3
No files found.
src/main/java/com/egolm/sso/service/impl/ProFormaInvoiceServiceImpl.java
View file @
08410493
package
com
.
egolm
.
sso
.
service
.
impl
;
import
java.io.IOException
;
import
java.text.SimpleDateFormat
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.HashMap
;
...
...
@@ -32,6 +31,7 @@ import com.egolm.sso.bean.Z_MT_SD_005_PERFORM_INVOICE.SUMMARY_GENERAL;
import
com.egolm.sso.bean.Z_MT_SD_005_PERFORM_INVOICE.Z_DT_SD_005_PERFORM_INVOICE
;
import
com.egolm.sso.service.CommonService
;
import
com.egolm.sso.service.ProFormaInvoiceService
;
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
;
...
...
@@ -52,7 +52,7 @@ public class ProFormaInvoiceServiceImpl implements ProFormaInvoiceService {
@Transactional
public
void
execute
(
String
xml
)
{
Date
now
=
new
Date
();
String
dateString
=
new
SimpleDateFormat
(
"yyyyMMdd"
).
format
(
now
);
String
dateString
=
DateUtil
.
formatDate
(
now
,
DateUtil
.
FMT_DATE
);
Z_MT_SD_005_PERFORM_INVOICE
bean
=
XMLUtil
.
toBeanByJxab
(
xml
,
Z_MT_SD_005_PERFORM_INVOICE
.
class
);
Map
<
String
,
Object
>
headMap
=
new
HashMap
<
String
,
Object
>();
Z_DT_SD_005_PERFORM_INVOICE
Z_DT_SD_005_PERFORM_INVOICE
=
bean
.
getZ_DT_SD_005_PERFORM_INVOICE
();
...
...
@@ -109,7 +109,7 @@ public class ProFormaInvoiceServiceImpl implements ProFormaInvoiceService {
headMap
.
put
(
"BATCH"
,
dateString
+
"-"
+
common
.
getNextval
(
"T_PERFORM_INVOICE_HEADER_BATCH_"
+
dateString
));
headMap
.
put
(
"SEND_STATUS"
,
'N'
);
headMap
.
put
(
"SEND_TIME"
,
now
);
headMap
.
put
(
"TRACE_NO"
,
"sapproformainvoice"
+
new
SimpleDateFormat
(
"yyyyMMddHHmmss"
).
format
(
now
));
headMap
.
put
(
"TRACE_NO"
,
"sapproformainvoice"
+
DateUtil
.
formatDate
(
now
,
DateUtil
.
FMT_DATETIME
));
headMap
.
put
(
"CREATED"
,
now
);
headMap
.
put
(
"CREATEDBY"
,
"system"
);
headMap
.
put
(
"UPDATED"
,
null
);
...
...
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