Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-enterprise
Overview
Overview
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
base_platform_enterprise
gic-platform-enterprise
Commits
f35f8ec5
Commit
f35f8ec5
authored
Apr 21, 2020
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自动审批
parent
9c95442c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
7 deletions
+0
-7
RiskModeApiServiceImpl.java
...enterprise/service/outer/impl/RiskModeApiServiceImpl.java
+0
-7
No files found.
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/RiskModeApiServiceImpl.java
View file @
f35f8ec5
...
...
@@ -29,8 +29,6 @@ import org.redisson.api.RBucket;
import
org.redisson.api.RedissonClient
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.interceptor.TransactionAspectSupport
;
import
java.util.Date
;
import
java.util.HashMap
;
...
...
@@ -124,7 +122,6 @@ public class RiskModeApiServiceImpl implements RiskModeApiService {
}
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
ServiceResponse
<
Void
>
applyRiskMode
(
Integer
enterpriseId
,
Integer
userId
,
Integer
duration
,
String
applyReason
)
{
if
(
duration
==
null
)
{
return
EnterpriseServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
);
...
...
@@ -164,9 +161,6 @@ public class RiskModeApiServiceImpl implements RiskModeApiService {
auditLogDTO
.
setExtraInfo
(
JSON
.
toJSONString
(
map
));
auditLogDTO
.
setAuditType
(
AuditTypeEnum
.
RISK_MODE
.
getCode
());
ServiceResponse
<
Void
>
serviceResponse
=
auditLogApiService
.
apply
(
auditLogDTO
);
if
(!
serviceResponse
.
isSuccess
())
{
TransactionAspectSupport
.
currentTransactionStatus
().
setRollbackOnly
();
}
return
serviceResponse
;
}
}
\ 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