WIP: Resolve "Статистика по активностям" #232

Draft
arefiev1997 wants to merge 11 commits from 93-activites-analytics into dev
2 changed files with 5 additions and 4 deletions
Showing only changes of commit e81ee4d36b - Show all commits

View File

@ -4,7 +4,8 @@ public class ActivityElement {
private int startedCount = 0;
private int completedCount = 0;
public ActivityElement() {}
public ActivityElement() {
}
public ActivityElement(int startedCount, int completedCount) {
this.startedCount = startedCount;
@ -28,10 +29,10 @@ public class ActivityElement {
}
public void incrementStartedCount() {
this.startedCount ++;
this.startedCount++;
}
public void incrementCompletedCount() {
this.completedCount ++;
this.completedCount++;
}
}

View File

@ -165,7 +165,7 @@ public class GrantService extends BaseService {
if (grant.getLeader() != oldLeader) {
grantNotificationService.sendLeaderChangeNotification(grant, oldLeader);
}
if(grant.getStatus() != oldStatus) {
if (grant.getStatus() != oldStatus) {
activityService.createActivity(new ArrayList<>(grant.getAuthors()), grant.getCommonActivityState());
}
eventService.updateGrantDeadlines(grant);