|
|
@ -1,4 +1,4 @@
|
|
|
|
package ru.ulstu.grant.model.service;
|
|
|
|
package ru.ulstu.grant.service;
|
|
|
|
|
|
|
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
@ -8,10 +8,9 @@ import ru.ulstu.deadline.service.DeadlineService;
|
|
|
|
import ru.ulstu.file.service.FileService;
|
|
|
|
import ru.ulstu.file.service.FileService;
|
|
|
|
import ru.ulstu.grant.model.Grant;
|
|
|
|
import ru.ulstu.grant.model.Grant;
|
|
|
|
import ru.ulstu.grant.model.GrantDto;
|
|
|
|
import ru.ulstu.grant.model.GrantDto;
|
|
|
|
import ru.ulstu.grant.model.repository.GrantRepository;
|
|
|
|
import ru.ulstu.grant.repository.GrantRepository;
|
|
|
|
import ru.ulstu.project.model.Project;
|
|
|
|
import ru.ulstu.project.model.Project;
|
|
|
|
import ru.ulstu.project.model.ProjectDto;
|
|
|
|
import ru.ulstu.project.model.ProjectDto;
|
|
|
|
import ru.ulstu.project.repository.ProjectRepository;
|
|
|
|
|
|
|
|
import ru.ulstu.project.service.ProjectService;
|
|
|
|
import ru.ulstu.project.service.ProjectService;
|
|
|
|
|
|
|
|
|
|
|
|
import java.io.IOException;
|
|
|
|
import java.io.IOException;
|
|
|
@ -144,7 +143,7 @@ public class GrantService {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public GrantDto findGrant(int id) {
|
|
|
|
public GrantDto findGrant(int id) {
|
|
|
|
return new ru.ulstu.grant.model.GrantDto(grantRepository.getOne(id));
|
|
|
|
return new GrantDto(grantRepository.getOne(id));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void closeFailedGrants() {
|
|
|
|
public void closeFailedGrants() {
|