|
@@ -45,6 +45,7 @@ public class CaseExtendsDroolsVarifyLogicImpl implements CaseExtendsDroolsVarify
|
|
List<Long> userHasBuyTheme = user2ThemeService.findByUserId(userId).stream().map(User2Theme::getThemeId).collect(Collectors.toList());
|
|
List<Long> userHasBuyTheme = user2ThemeService.findByUserId(userId).stream().map(User2Theme::getThemeId).collect(Collectors.toList());
|
|
List<Long> themeHasTheCase = themeService.getThemeEntityRelationsByEntityId(caseExtendsVO.getId(),EntityTypeEnum.CASE).stream().map(ThemeEntityRelations::getThemeId).collect(Collectors.toList());
|
|
List<Long> themeHasTheCase = themeService.getThemeEntityRelationsByEntityId(caseExtendsVO.getId(),EntityTypeEnum.CASE).stream().map(ThemeEntityRelations::getThemeId).collect(Collectors.toList());
|
|
List<Long> roleList = user2RoleService.getByUserId(userId).stream().map(User2Role::getRoleId).collect(Collectors.toList());
|
|
List<Long> roleList = user2RoleService.getByUserId(userId).stream().map(User2Role::getRoleId).collect(Collectors.toList());
|
|
|
|
+ caseExtendsVO.setThemeIds(themeHasTheCase);
|
|
boolean hasBuy = themeHasTheCase.stream()
|
|
boolean hasBuy = themeHasTheCase.stream()
|
|
.filter(userHasBuyTheme::contains).collect(Collectors.toList()).size() != 0;
|
|
.filter(userHasBuyTheme::contains).collect(Collectors.toList()).size() != 0;
|
|
KieSession kieSession = droolsWithDBService.getKieBase("theme").newKieSession();
|
|
KieSession kieSession = droolsWithDBService.getKieBase("theme").newKieSession();
|