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 c8caf246
authored
Apr 12, 2021
by
111-PC\111
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]场景使用次数修改
1 parent
61ec1661
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
src/main/java/com/glsx/admin/controller/SceneTemplateController.java
src/main/java/com/glsx/admin/controller/SceneTemplateController.java
View file @
c8caf24
...
@@ -60,14 +60,17 @@ public class SceneTemplateController extends BaseController{
...
@@ -60,14 +60,17 @@ public class SceneTemplateController extends BaseController{
try
{
try
{
eventTrackByUserFunctionList
=
userEventTrackAmountService
.
getEventTrackByUserFunctionList
(
userEventTrackAmountRequest
);
eventTrackByUserFunctionList
=
userEventTrackAmountService
.
getEventTrackByUserFunctionList
(
userEventTrackAmountRequest
);
}
catch
(
ServiceException
e
)
{
}
catch
(
ServiceException
e
)
{
log
.
info
(
"调用异常,{}"
,
e
);
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
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
.
setUseCount
(
collect
.
get
(
0
).
getFunctionCount
());
index
.
setUseCount
(
collect
.
get
(
0
).
getFunctionCount
());
}
else
{
}
else
{
index
.
setUseCount
(
0
);
index
.
setUseCount
(
0
);
}
}
}
});
});
}
}
return
R
.
ok
().
putPageData
(
templateFeignClient
.
getPageList
(
sceneTemplate
));
return
R
.
ok
().
putPageData
(
templateFeignClient
.
getPageList
(
sceneTemplate
));
...
...
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