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
66e11a01
Commit
66e11a01
authored
Jul 30, 2020
by
陶光胜
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' into 'master'
Developer See merge request
!28
parents
fa0010c1
4d3ee58b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
7 deletions
+22
-7
AuditLogApiServiceImpl.java
...enterprise/service/outer/impl/AuditLogApiServiceImpl.java
+10
-2
TabDownloadLogMapper.xml
...ervice/src/main/resources/mapper/TabDownloadLogMapper.xml
+3
-0
IndexModuleController.java
.../gic/enterprise/web/controller/IndexModuleController.java
+9
-5
No files found.
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/AuditLogApiServiceImpl.java
View file @
66e11a01
...
...
@@ -36,6 +36,7 @@ import org.springframework.transaction.annotation.Transactional;
import
java.util.Date
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
/**
...
...
@@ -371,12 +372,19 @@ public class AuditLogApiServiceImpl implements AuditLogApiService {
String
url
;
if
(
AuditTypeEnum
.
HAOBAN
.
getCode
().
equals
(
auditLogDTO
.
getAuditType
()))
{
url
=
String
.
format
(
"%s%s?auditLogId=%d&openid=%s"
,
config
.
getHost
(),
auditLogDTO
.
getAuditUrl
(),
auditLogDTO
.
getAuditLogId
(),
auditorDTO
.
getOpenid
());
if
(
StringUtils
.
isNotBlank
(
auditLogDTO
.
getExtraInfo
()))
{
JSONObject
jsonObject
=
JSON
.
parseObject
(
auditLogDTO
.
getExtraInfo
());
StringBuilder
sb
=
new
StringBuilder
();
for
(
Map
.
Entry
<
String
,
Object
>
entry
:
jsonObject
.
entrySet
())
{
sb
.
append
(
"&"
).
append
(
entry
.
getKey
()).
append
(
"="
).
append
(
entry
.
getValue
());
}
url
+=
sb
.
toString
();
}
}
else
{
url
=
String
.
format
(
"%s/damo-system/wechat-approve.html?auditLogId=%d&openid=%s"
,
config
.
getHost
(),
auditLogDTO
.
getAuditLogId
(),
auditorDTO
.
getOpenid
());
}
logger
.
info
(
"微信跳转 url:{}"
,
url
);
ServiceResponse
<
String
>
serviceResponse
=
this
.
wxTemplateRouterApiService
.
sendForDownloadData
(
auditorDTO
.
getOpenid
(),
url
,
keyWord
);
logger
.
info
(
"微信跳转结果:{},{}"
,
serviceResponse
.
getResult
(),
serviceResponse
.
getMessage
());
logger
.
info
(
"微信跳转结果:{},{}"
,
serviceResponse
.
isSuccess
(),
serviceResponse
.
getMessage
());
}
}
gic-platform-enterprise-service/src/main/resources/mapper/TabDownloadLogMapper.xml
View file @
66e11a01
...
...
@@ -215,6 +215,9 @@
<include
refid=
"Base_Column_List"
/>
from tab_download_log
where status = 1
<if
test=
"enterpriseId != null "
>
and enterprise_id = #{enterpriseId}
</if>
<if
test=
"startTime != null and startTime != '' "
>
and create_time
>
#{startTime}
</if>
...
...
gic-platform-enterprise-web/src/main/java/com/gic/enterprise/web/controller/IndexModuleController.java
View file @
66e11a01
...
...
@@ -416,12 +416,16 @@ public class IndexModuleController {
Integer
enterpriseId
=
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
();
List
<
Integer
>
authStoreIdList
=
new
ArrayList
<>();
if
(
UserDetailUtils
.
getUserDetail
().
getUserInfo
().
getSuperAdmin
()
!=
1
){
ServiceResponse
<
List
<
Integer
>>
authResponse
=
this
.
storeWidgetApiService
.
listStoreIdByStoreWidgetId
(
enterpriseId
,
UserDetailUtils
.
getUserDetail
().
getUserResourceInfo
().
getStoreResource
().
intValue
());
if
(
authResponse
.
isSuccess
()){
authStoreIdList
=
authResponse
.
getResult
();
}
if
(
CollectionUtils
.
isEmpty
(
authStoreIdList
)){
if
(
UserDetailUtils
.
getUserDetail
().
getUserResourceInfo
().
getStoreResource
()
==
null
)
{
authStoreIdList
.
add
(-
1
);
}
else
{
ServiceResponse
<
List
<
Integer
>>
authResponse
=
this
.
storeWidgetApiService
.
listStoreIdByStoreWidgetId
(
enterpriseId
,
UserDetailUtils
.
getUserDetail
().
getUserResourceInfo
().
getStoreResource
().
intValue
());
if
(
authResponse
.
isSuccess
()){
authStoreIdList
=
authResponse
.
getResult
();
}
if
(
CollectionUtils
.
isEmpty
(
authStoreIdList
)){
authStoreIdList
.
add
(-
1
);
}
}
}
return
authStoreIdList
;
...
...
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