#91 -- Add markup page menu item #94

Merged
romanov73 merged 29 commits from 91-markup into master 2023-04-23 23:43:14 +04:00
2 changed files with 2 additions and 3 deletions
Showing only changes of commit 80904e6221 - Show all commits

View File

@ -71,9 +71,8 @@ public class AssessmentService {
Map<String, Double> variableValues = new HashMap<>();
timeSeries
.stream()
.filter(ts -> (ts.getTimeSeriesType() == dbRule.getFirstAntecedent()
.filter(ts -> ts.getTimeSeriesType() == dbRule.getFirstAntecedent()
|| ts.getTimeSeriesType() == dbRule.getSecondAntecedent())
&& ts.getValues().size() > 0)
.forEach(ts -> variableValues.put(ts.getTimeSeriesType().name(), timeSeriesService
.getLastTimeSeriesTendency(ts)
.orElse(ts.getValues().get(ts.getValues().size() - 1).getValue())));

View File

@ -54,7 +54,7 @@ public class RuleController {
}
@GetMapping(DELETE_RULE)
public String deleteRule(Model model, @RequestParam Integer id) {
public String deleteRule(@RequestParam Integer id) {
ruleService.deleteById(id);
return "redirect:/" + LIST_RULE;
}