WIP: Resolve "Статистика по активностям" #232
@ -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++;
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user