This commit is contained in:
Artem.Arefev 2019-06-11 01:20:34 +04:00
parent cbae48c23e
commit e81ee4d36b
2 changed files with 5 additions and 4 deletions

View File

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

View File

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