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
57be9c45
Commit
57be9c45
authored
Jul 19, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
8b7c0f86
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
0 deletions
+55
-0
DELETED_DOCUMENTS.java
...com/egolm/sso/services/dn_deletion/DELETED_DOCUMENTS.java
+18
-0
DNDeletionServiceImpl.java
...egolm/sso/services/dn_deletion/DNDeletionServiceImpl.java
+37
-0
No files found.
src/main/java/com/egolm/sso/services/dn_deletion/DELETED_DOCUMENTS.java
View file @
57be9c45
...
...
@@ -14,6 +14,8 @@ public class DELETED_DOCUMENTS {
String
DOCTYPE
;
String
DOCNUMBER
;
String
SALES_ORG
;
String
DELETED_BY
;
String
SOLD_TO
;
public
String
getTARGET_SYSTEM
()
{
return
TARGET_SYSTEM
;
...
...
@@ -47,4 +49,20 @@ public class DELETED_DOCUMENTS {
SALES_ORG
=
sALES_ORG
;
}
public
String
getDELETED_BY
()
{
return
DELETED_BY
;
}
public
void
setDELETED_BY
(
String
dELETED_BY
)
{
DELETED_BY
=
dELETED_BY
;
}
public
String
getSOLD_TO
()
{
return
SOLD_TO
;
}
public
void
setSOLD_TO
(
String
sOLD_TO
)
{
SOLD_TO
=
sOLD_TO
;
}
}
\ No newline at end of file
src/main/java/com/egolm/sso/services/dn_deletion/DNDeletionServiceImpl.java
View file @
57be9c45
package
com
.
egolm
.
sso
.
services
.
dn_deletion
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.Map
;
import
javax.jws.WebService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.jdbc.core.JdbcTemplate
;
import
org.springframework.stereotype.Component
;
import
org.springframework.transaction.annotation.Transactional
;
import
com.egolm.sso.services.CommonService
;
import
com.egolm.sso.util.DateUtil
;
import
com.egolm.sso.util.SqlUtil
;
import
com.egolm.sso.util.SqlUtil.Sql
;
@Component
@WebService
(
serviceName
=
"DNDeletionService"
,
targetNamespace
=
"http://dn_deletion.sso.egolm.com"
,
endpointInterface
=
"com.egolm.sso.services.dn_deletion.DNDeletionService"
)
public
class
DNDeletionServiceImpl
implements
DNDeletionService
{
@Autowired
JdbcTemplate
jdbcTemplate
;
@Autowired
CommonService
common
;
@Override
@Transactional
public
void
execute
(
DELETED_DOCUMENTS
DELETED_DOCUMENTS
)
{
Date
now
=
new
Date
();
String
dateString
=
DateUtil
.
formatDate
(
now
,
DateUtil
.
FMT_DATE
);
Map
<
String
,
Object
>
map
=
new
HashMap
<
String
,
Object
>();
map
.
put
(
"TARGET_SYSTEM"
,
DELETED_DOCUMENTS
.
getTARGET_SYSTEM
());
map
.
put
(
"DOCTYPE"
,
DELETED_DOCUMENTS
.
getDOCTYPE
());
map
.
put
(
"DOCNUMBER"
,
DELETED_DOCUMENTS
.
getDOCNUMBER
());
map
.
put
(
"SALES_ORG"
,
DELETED_DOCUMENTS
.
getSALES_ORG
());
map
.
put
(
"DELETED_BY"
,
DELETED_DOCUMENTS
.
getDELETED_BY
());
map
.
put
(
"SOLD_TO"
,
DELETED_DOCUMENTS
.
getSOLD_TO
());
map
.
put
(
"BATCH"
,
dateString
+
"-"
+
common
.
getNextval
(
"T_SO_DN_DELETION_BATCH"
+
dateString
));
map
.
put
(
"SEND_STATUS"
,
"N"
);
map
.
put
(
"SEND_TIME"
,
now
);
map
.
put
(
"CREATED"
,
now
);
map
.
put
(
"CREATEDBY"
,
"system"
);
map
.
put
(
"UPDATED"
,
now
);
map
.
put
(
"UPDATEDBY"
,
"system"
);
Sql
headerSql
=
SqlUtil
.
insertSql
(
"t_so_dn_deletion"
,
map
);
jdbcTemplate
.
update
(
headerSql
.
getSql
(),
headerSql
.
getArgs
());
}
}
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