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
56ff1bec
Commit
56ff1bec
authored
Apr 24, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into developer
parents
449b793a
330ebe8c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
AuditLogApiServiceImpl.java
...enterprise/service/outer/impl/AuditLogApiServiceImpl.java
+8
-6
IndexModuleController.java
.../gic/enterprise/web/controller/IndexModuleController.java
+1
-0
No files found.
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/AuditLogApiServiceImpl.java
View file @
56ff1bec
...
...
@@ -37,7 +37,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.Collections
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.stream.Collectors
;
...
...
@@ -118,12 +117,12 @@ public class AuditLogApiServiceImpl implements AuditLogApiService {
// 判断有没有审核员, 没有审核员就返回错误
ServiceResponse
<
List
<
AuditorDTO
>>
auditorResponse
=
auditorApiService
.
listAuditorByProject
(
auditLogDTO
.
getProjectItemId
(),
auditLogDTO
.
getApplyUserId
(),
auditLogDTO
.
getEnterpriseId
());
List
<
AuditorDTO
>
auditorList
=
Collections
.
emptyList
();
// 普通管理员需要判断是否有审核员
if
(!
auditorResponse
.
isSuccess
())
{
return
EnterpriseServiceResponse
.
failure
(
auditorResponse
.
getCode
(),
auditorResponse
.
getMessage
());
}
auditorList
=
auditorResponse
.
getResult
();
List
<
AuditorDTO
>
auditorList
=
auditorResponse
.
getResult
();
List
<
AuditorDTO
>
openidList
=
auditorList
.
stream
().
filter
(
e
->
StringUtils
.
isNotBlank
(
e
.
getOpenid
())).
collect
(
Collectors
.
toList
());
List
<
AuditorDTO
>
userIdList
=
auditorList
.
stream
().
filter
(
e
->
e
.
getUserId
()
!=
null
).
collect
(
Collectors
.
toList
());
if
(
CollectionUtils
.
isEmpty
(
openidList
)
&&
CollectionUtils
.
isEmpty
(
userIdList
))
{
...
...
@@ -150,6 +149,7 @@ public class AuditLogApiServiceImpl implements AuditLogApiService {
}
auditLogDTO
.
setAuditResult
(
DataSecurityAuditEnum
.
WAIT
.
getCode
());
Integer
auditLogId
=
auditLogService
.
save
(
auditLogDTO
);
auditLogDTO
.
setAuditLogId
(
auditLogId
);
for
(
AuditorDTO
auditorDTO
:
auditorList
)
{
if
(
StringUtils
.
isNotBlank
(
auditorDTO
.
getOpenid
()))
{
...
...
@@ -251,7 +251,7 @@ public class AuditLogApiServiceImpl implements AuditLogApiService {
String
url
=
config
.
getHost
()
+
"/damo-system/examine-logs"
;
String
result
=
auditLogDTO
.
getAuditResult
()
==
1
?
"已通过"
:
"未通过"
;
String
content
=
"您的操作"
+
result
+
"审核,可以在<a href='"
+
url
+
"'>审核日志</a>查看到本次审核记录"
;
this
.
pushMessageApiService
.
pushUserMessage
(
auditLog
DTO
.
getEnterpriseId
(),
auditLogDTO
.
getApplyUserId
(),
"系统消息"
,
"审核结果"
,
content
);
this
.
pushMessageApiService
.
pushUserMessage
(
auditLog
.
getEnterpriseId
(),
auditLog
.
getApplyUserId
(),
"系统消息"
,
"审核结果"
,
content
);
return
EnterpriseServiceResponse
.
success
();
}
...
...
@@ -342,9 +342,11 @@ public class AuditLogApiServiceImpl implements AuditLogApiService {
UserDTO
userDTO
=
userApiService
.
getUserById
(
auditLogDTO
.
getApplyUserId
()).
getResult
();
LoginUserTypeEnum
userTypeEnum
=
LoginUserTypeEnum
.
getByCode
(
userDTO
.
getLoginType
());
String
position
=
userTypeEnum
!=
null
?
userTypeEnum
.
getMessage
()
:
""
;
String
[]
keyWord
=
{
enterprise
.
getEnterpriseName
(),
audit
orDTO
.
getAudito
rName
(),
position
,
auditLogDTO
.
getProjectItemName
()};
String
[]
keyWord
=
{
enterprise
.
getEnterpriseName
(),
audit
LogDTO
.
getApplyUse
rName
(),
position
,
auditLogDTO
.
getProjectItemName
()};
// todo 跳转地址
this
.
wxTemplateRouterApiService
.
sendForDownloadData
(
auditorDTO
.
getOpenid
(),
String
.
format
(
"/wechat-approve.html?auditLogId=%d&openid=%s"
,
auditLogDTO
.
getAuditLogId
(),
auditorDTO
.
getOpenid
()),
keyWord
);
String
url
=
String
.
format
(
"%s/damo-system/wechat-approve.html?auditLogId=%d&openid=%s"
,
config
.
getHost
(),
auditLogDTO
.
getAuditLogId
(),
auditorDTO
.
getOpenid
());
logger
.
info
(
"微信跳转 url:{}"
,
url
);
this
.
wxTemplateRouterApiService
.
sendForDownloadData
(
auditorDTO
.
getOpenid
(),
url
,
keyWord
);
}
}
gic-platform-enterprise-web/src/main/java/com/gic/enterprise/web/controller/IndexModuleController.java
View file @
56ff1bec
...
...
@@ -345,6 +345,7 @@ public class IndexModuleController {
result
.
put
(
"card"
,
card
);
result
.
put
(
"service"
,
service
);
result
.
put
(
"applet"
,
applet
);
result
.
put
(
"isSingleArea"
,
card
.
size
()<=
1
&&
service
.
size
()<=
1
&&
applet
.
size
()<=
1
);
return
RestResponse
.
success
(
result
);
}
...
...
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