Commit 6378c78a by 111-PC\111

[+]场景使用次数修改

1 parent 38c0bdda
......@@ -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);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!