From e6551958276f7adf3787bc1ef08358be2951918a Mon Sep 17 00:00:00 2001 From: zhenggl Date: Fri, 8 Sep 2023 17:33:06 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=B7=A5=E5=8D=9A=E4=BC=9AchatFile=20upda?= =?UTF-8?q?te=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/chatFile/ChatFileUpdateEAIService.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/chatFile/service/chatFile/ChatFileUpdateEAIService.java b/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/chatFile/service/chatFile/ChatFileUpdateEAIService.java index c3ca014..6d07faa 100644 --- a/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/chatFile/service/chatFile/ChatFileUpdateEAIService.java +++ b/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/chatFile/service/chatFile/ChatFileUpdateEAIService.java @@ -10,10 +10,7 @@ import lombok.extern.log4j.Log4j2; import org.springframework.stereotype.Service; import javax.annotation.Resource; -import java.util.Date; -import java.util.HashMap; -import java.util.List; -import java.util.Map; +import java.util.*; /** * @auther: zhenggl @@ -37,6 +34,11 @@ public class ChatFileUpdateEAIService extends AbsEAIService { EAIRequest eaiRequest = EAIRequest.build(messageBody); ChatFileEntity chatFileInfo = eaiRequest.getObject("chat_file_info", new TypeReference(){}); + if (Objects.isNull(chatFileInfo.getCompleteDate())){ + chatFileInfo.setCompleteDate(new Date()); + } + + chatFileRepository.updateBatch(chatFileInfo); return buildOK(new HashMap<>());