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
1f85689f
Commit
1f85689f
authored
Aug 19, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
09368344
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
8 deletions
+4
-8
CommonService.java
src/main/java/com/egolm/sso/services/CommonService.java
+2
-7
application-dev.yml
src/main/resources/application-dev.yml
+2
-1
No files found.
src/main/java/com/egolm/sso/services/CommonService.java
View file @
1f85689f
...
...
@@ -14,7 +14,6 @@ import org.springframework.stereotype.Service;
import
org.springframework.transaction.annotation.Propagation
;
import
org.springframework.transaction.annotation.Transactional
;
import
com.egolm.sso.SapServiceApplication
;
import
com.egolm.sso.config.XRException
;
import
com.egolm.sso.util.DateUtil
;
import
com.egolm.sso.util.SqlUtil
;
...
...
@@ -52,12 +51,8 @@ public class CommonService {
@Value
(
"${dataTracking.isOpen}"
)
private
boolean
isOpen
;
private
Long
getNextval
(
String
sName
)
{
CommonService
common
=
SapServiceApplication
.
getBean
(
CommonService
.
class
);
return
common
.
getNextval2
(
sName
);
}
private
Long
getNextval2
(
String
sName
)
{
public
Long
getNextval
(
String
sName
)
{
//JdbcTemplate jdbcTemplate = SapServiceApplication.getBean(JdbcTemplate.class);
try
{
Map
<
String
,
Object
>
seqMap
=
jdbcTemplate
.
queryForMap
(
"select * from x_sequence where name = ?"
,
sName
);
Integer
id
=
(
Integer
)
seqMap
.
get
(
"id"
);
...
...
src/main/resources/application-dev.yml
View file @
1f85689f
...
...
@@ -7,4 +7,5 @@ spring:
initialSize
:
1
maxWait
:
60000
minIdle
:
1
dataTracking.isOpen
:
false
\ No newline at end of file
dataTracking.isOpen
:
false
wsUsedAuth
:
false
\ No newline at end of file
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