@ -83,12 +83,7 @@ public class GrantController {
@PostMapping(value = "/grant", params = "attachPaper")
public String attachPaper(GrantDto grantDto) {
if (!grantDto.getPaperIds().isEmpty()) {
grantDto.getPapers().clear();
grantDto.setPapers(grantService.getGrantPapers(grantDto.getPaperIds()));
} else {
}
grantService.attachPaper(grantDto);
return GRANT_PAGE;
@ -176,4 +176,12 @@ public class GrantService {
return paperService.findAll();
public void attachPaper(GrantDto grantDto) {
grantDto.setPapers(getGrantPapers(grantDto.getPaperIds()));