From dc49ef798aa39d57c1c2ef9a7d2a1cce54dbf27a Mon Sep 17 00:00:00 2001 From: "yang.xie" Date: Sat, 3 Dec 2022 16:38:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E7=88=AC=E8=99=AB=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E5=90=8C=E6=AD=A5=E6=95=B0=E6=8D=AE=E5=BA=93=20?= =?UTF-8?q?=E5=8A=A0=E5=85=A5spring=20batch=E5=81=9A=E6=9C=AA=E6=9D=A5?= =?UTF-8?q?=E7=9A=84=E6=94=B9=E5=8A=A8=E5=87=86=E5=A4=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../visatrack/api/service/impl/MyFavouredVisaCaseService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/northtecom/visatrack/api/service/impl/MyFavouredVisaCaseService.java b/src/main/java/com/northtecom/visatrack/api/service/impl/MyFavouredVisaCaseService.java index 77b5eff..b903144 100644 --- a/src/main/java/com/northtecom/visatrack/api/service/impl/MyFavouredVisaCaseService.java +++ b/src/main/java/com/northtecom/visatrack/api/service/impl/MyFavouredVisaCaseService.java @@ -7,6 +7,7 @@ import com.northtecom.visatrack.api.data.repository.VisaCaseRepository; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; +import java.time.LocalDate; import java.util.List; import java.util.stream.Collectors; @@ -42,6 +43,7 @@ public class MyFavouredVisaCaseService { myFavouredVisaCase = new MyFavouredVisaCase(); myFavouredVisaCase.setUserId(userId); myFavouredVisaCase.setVisaCaseId(visaCaseId); + myFavouredVisaCase.setFavouredDate(LocalDate.now()); myFavouredVisaCaseRepository.save(myFavouredVisaCase); } }