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
ff693850
Commit
ff693850
authored
Aug 13, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
8ff8c065
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
CommonService.java
src/main/java/com/egolm/sso/services/CommonService.java
+2
-4
No files found.
src/main/java/com/egolm/sso/services/CommonService.java
View file @
ff693850
...
@@ -23,6 +23,7 @@ import com.egolm.sso.util.SqlUtil.Sql;
...
@@ -23,6 +23,7 @@ import com.egolm.sso.util.SqlUtil.Sql;
import
com.egolm.sso.util.StringUtil
;
import
com.egolm.sso.util.StringUtil
;
@Service
@Service
@Transactional
(
propagation
=
Propagation
.
NOT_SUPPORTED
)
public
class
CommonService
{
public
class
CommonService
{
@Autowired
@Autowired
...
@@ -52,7 +53,6 @@ public class CommonService {
...
@@ -52,7 +53,6 @@ public class CommonService {
@Value
(
"${dataTracking.isOpen}"
)
@Value
(
"${dataTracking.isOpen}"
)
private
boolean
isOpen
;
private
boolean
isOpen
;
@Transactional
(
propagation
=
Propagation
.
NOT_SUPPORTED
)
public
Long
getNextval
(
String
sName
)
{
public
Long
getNextval
(
String
sName
)
{
try
{
try
{
Map
<
String
,
Object
>
seqMap
=
jdbcTemplate
.
queryForMap
(
"select * from x_sequence where name = ?"
,
sName
);
Map
<
String
,
Object
>
seqMap
=
jdbcTemplate
.
queryForMap
(
"select * from x_sequence where name = ?"
,
sName
);
...
@@ -86,7 +86,7 @@ public class CommonService {
...
@@ -86,7 +86,7 @@ public class CommonService {
}
}
}
}
@Transactional
(
propagation
=
Propagation
.
NOT_SUPPORTED
)
public
void
saveApiAccessLog
(
String
METHOD
,
String
ADDRESS
,
String
RESULT
)
{
public
void
saveApiAccessLog
(
String
METHOD
,
String
ADDRESS
,
String
RESULT
)
{
Date
now
=
new
Date
();
Date
now
=
new
Date
();
Map
<
String
,
Object
>
map
=
new
HashMap
<
String
,
Object
>();
Map
<
String
,
Object
>
map
=
new
HashMap
<
String
,
Object
>();
...
@@ -103,14 +103,12 @@ public class CommonService {
...
@@ -103,14 +103,12 @@ public class CommonService {
jdbcTemplate
.
update
(
sql
,
objs
);
jdbcTemplate
.
update
(
sql
,
objs
);
}
}
@Transactional
(
propagation
=
Propagation
.
NOT_SUPPORTED
)
public
String
getNextBatch
(
Date
day
,
String
sPrefix
,
String
sName
)
{
public
String
getNextBatch
(
Date
day
,
String
sPrefix
,
String
sName
)
{
String
dateString
=
DateUtil
.
formatDate
(
day
,
"yyyyMMdd"
);
String
dateString
=
DateUtil
.
formatDate
(
day
,
"yyyyMMdd"
);
sName
=
sPrefix
+
"_"
+
sName
+
"_"
+
dateString
;
sName
=
sPrefix
+
"_"
+
sName
+
"_"
+
dateString
;
return
dateString
+
"-"
+
this
.
getNextval
(
sName
);
return
dateString
+
"-"
+
this
.
getNextval
(
sName
);
}
}
@Transactional
(
propagation
=
Propagation
.
NOT_SUPPORTED
)
public
String
getNextTrace
(
Date
now
,
String
sPrefix
,
String
sName
)
{
public
String
getNextTrace
(
Date
now
,
String
sPrefix
,
String
sName
)
{
String
dateString
=
DateUtil
.
formatDate
(
now
,
DateUtil
.
FMT_DATE
);
String
dateString
=
DateUtil
.
formatDate
(
now
,
DateUtil
.
FMT_DATE
);
String
timeString
=
DateUtil
.
formatDate
(
now
,
"yyyyMMddHHmmssSSS"
);
String
timeString
=
DateUtil
.
formatDate
(
now
,
"yyyyMMddHHmmssSSS"
);
...
...
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