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 47d79de8
authored
Apr 12, 2021
by
111-PC\111
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]场景使用次数修改
1 parent
c8caf246
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 @
47d79de
...
@@ -66,9 +66,9 @@ public class SceneTemplateController extends BaseController{
...
@@ -66,9 +66,9 @@ public class SceneTemplateController extends BaseController{
if
(
CollectionUtils
.
isNotEmpty
(
eventTrackByUserFunctionList
))
{
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
))
{
if
(
CollectionUtils
.
isNotEmpty
(
collect
))
{
index
.
set
UseCount
(
collect
.
get
(
0
).
getFunctionCount
());
index
.
set
ViewTimes
(
collect
.
get
(
0
).
getFunctionCount
().
longValue
());
}
else
{
}
else
{
index
.
set
UseCount
(
0
);
index
.
set
ViewTimes
(
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