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
06f6d5b9
Commit
06f6d5b9
authored
Feb 01, 2021
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
审批工单接口修改
parent
b516bab4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletions
+7
-1
AuditLogApiServiceImpl.java
...enterprise/service/outer/impl/AuditLogApiServiceImpl.java
+6
-1
TabAuditLogMapper.xml
...e-service/src/main/resources/mapper/TabAuditLogMapper.xml
+1
-0
No files found.
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/AuditLogApiServiceImpl.java
View file @
06f6d5b9
...
...
@@ -330,7 +330,8 @@ public class AuditLogApiServiceImpl implements AuditLogApiService {
Date
currDate
=
new
Date
();
if
(
CollectionUtils
.
isNotEmpty
(
auditLogList
))
{
for
(
TabAuditLog
auditLog
:
auditLogList
)
{
if
(
DateUtil
.
compareDate
(
currDate
,
auditLog
.
getAuditExpireTime
()))
{
//因为过期时间数据目前是必有的,所以需要判读状态,再去判断过期时间
if
(
DataSecurityAuditEnum
.
WAIT
.
getCode
().
equals
(
auditLog
.
getAuditResult
())
&&
DateUtil
.
compareDate
(
currDate
,
auditLog
.
getAuditExpireTime
()))
{
auditLog
.
setAuditResult
(
DataSecurityAuditEnum
.
OVER_TIME
.
getCode
());
}
}
...
...
@@ -349,6 +350,10 @@ public class AuditLogApiServiceImpl implements AuditLogApiService {
if
(!
isCanCloseStatus
)
{
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"工单不能关闭"
);
}
//超时
if
(
DateUtil
.
compareDate
(
new
Date
(),
record
.
getAuditExpireTime
()))
{
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"工单不能关闭"
);
}
int
updateNum
=
auditLogService
.
closeAudit
(
auditLogId
);
if
(
updateNum
>
0
)
{
return
ServiceResponse
.
success
();
...
...
gic-platform-enterprise-service/src/main/resources/mapper/TabAuditLogMapper.xml
View file @
06f6d5b9
...
...
@@ -316,6 +316,7 @@
<if
test=
"auditResult != null"
>
<if
test=
"auditResult == 3"
>
and audit_expire_time
<
now()
and audit_result = 0
</if>
<if
test=
"auditResult != 3"
>
and audit_result = #{auditResult}
...
...
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