Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
chejia-smart-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6378c78a
authored
Apr 13, 2021
by
111-PC\111
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]场景使用次数修改
1 parent
38c0bdda
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/main/java/com/glsx/admin/controller/SceneTemplateController.java
src/main/java/com/glsx/admin/controller/SceneTemplateController.java
View file @
6378c78
...
...
@@ -58,11 +58,11 @@ public class SceneTemplateController extends BaseController {
userEventTrackAmountRequest
.
setFunctionType
(
4
);
List
<
UserEventTrackAmount
>
eventTrackByUserFunctionList
=
userEventTrackAmountService
.
getEventTrackByFunctionList
(
userEventTrackAmountRequest
);
log
.
info
(
"返回的结果list{}"
,
eventTrackByUserFunctionList
.
toString
());
list
.
forEach
(
index
->
{
if
(
CollectionUtils
.
isNotEmpty
(
eventTrackByUserFunctionList
))
{
List
<
UserEventTrackAmount
>
collect
=
eventTrackByUserFunctionList
.
stream
().
filter
(
ind
->
ind
.
getFunctionId
().
equals
(
index
.
getId
())).
collect
(
Collectors
.
toList
());
List
<
UserEventTrackAmount
>
collect
=
eventTrackByUserFunctionList
.
stream
().
filter
(
ind
->
ind
.
getFunctionId
().
equals
(
index
.
getId
()
+
""
)).
collect
(
Collectors
.
toList
());
if
(
CollectionUtils
.
isNotEmpty
(
collect
))
{
log
.
info
(
"返回结果"
);
index
.
setViewTimes
(
collect
.
get
(
0
).
getFunctionCount
().
longValue
());
}
else
{
index
.
setViewTimes
(
0L
);
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment