From e3da8c710f5cbcca05d926b72456261f326d16ff Mon Sep 17 00:00:00 2001 From: Anton Romanov Date: Sat, 25 Apr 2020 23:17:47 +0400 Subject: [PATCH] fix sout --- src/main/java/ru/ulstu/grant/service/GrantService.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main/java/ru/ulstu/grant/service/GrantService.java b/src/main/java/ru/ulstu/grant/service/GrantService.java index 87de64e..4b2c9d5 100644 --- a/src/main/java/ru/ulstu/grant/service/GrantService.java +++ b/src/main/java/ru/ulstu/grant/service/GrantService.java @@ -197,7 +197,6 @@ public class GrantService extends BaseService { private boolean saveFromKias(GrantDto grantDto) throws IOException { grantDto.setName(grantDto.getTitle()); String title = checkUniqueName(grantDto, grantDto.getId()); //проверка уникальности имени - System.out.println(title); if (title != null) { Grant grantFromDB = grantRepository.findFirstByTitle(title); //грант с таким же названием из бд if (checkSameDeadline(grantDto, grantFromDB.getId())) { //если дедайны тоже совпадают @@ -226,9 +225,7 @@ public class GrantService extends BaseService { private boolean checkSameDeadline(GrantDto grantDto, Integer id) { Date date = DateUtils.clearTime(grantDto.getDeadlines().get(0).getDate()); //дата с сайта киас - System.out.println(date); Date foundGrantDate = DateUtils.clearTime(deadlineService.findByGrantIdAndDate(id, date)); - System.out.println(foundGrantDate); return foundGrantDate != null && foundGrantDate.compareTo(date) == 0; }