From 3bd1e190b697fb2ea8751000ac78b122eb5fd562 Mon Sep 17 00:00:00 2001 From: zhenggl Date: Fri, 8 Sep 2023 17:30:13 +0800 Subject: [PATCH 1/3] =?UTF-8?q?feat:=E5=B7=A5=E5=8D=9A=E4=BC=9AchatFile=20?= =?UTF-8?q?update=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chatFile/service/chatFile/ChatFileUpdateEAIService.java | 3 --- 1 file changed, 3 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 9ab4307..c3ca014 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 @@ -38,9 +38,6 @@ public class ChatFileUpdateEAIService extends AbsEAIService { ChatFileEntity chatFileInfo = eaiRequest.getObject("chat_file_info", new TypeReference(){}); - chatFileInfo.setCompleteDate(new Date()); - - chatFileRepository.updateBatch(chatFileInfo); return buildOK(new HashMap<>()); } From e6551958276f7adf3787bc1ef08358be2951918a Mon Sep 17 00:00:00 2001 From: zhenggl Date: Fri, 8 Sep 2023 17:33:06 +0800 Subject: [PATCH 2/3] =?UTF-8?q?feat:=E5=B7=A5=E5=8D=9A=E4=BC=9AchatFile=20?= =?UTF-8?q?update=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<>()); From 238b4546b7d370d811721f6480a313b5f70218de Mon Sep 17 00:00:00 2001 From: zhenggl Date: Mon, 11 Sep 2023 11:38:56 +0800 Subject: [PATCH 3/3] =?UTF-8?q?feat:=E5=B7=A5=E5=8D=9A=E4=BC=9AchatFile?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../athena/app/chatFile/infra/entity/ChatFileEntity.java | 2 +- doc/sql/app-20230703-ddl.sql | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/chatFile/infra/entity/ChatFileEntity.java b/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/chatFile/infra/entity/ChatFileEntity.java index 0857b83..263e181 100644 --- a/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/chatFile/infra/entity/ChatFileEntity.java +++ b/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/chatFile/infra/entity/ChatFileEntity.java @@ -64,7 +64,7 @@ public class ChatFileEntity extends BaseMgrEntity { private String completeExplain; @SerializedName(value = "is_join") - private Integer isJoin; + private Boolean isJoin; @SerializedName(value = "tab_status") private Integer tabStatus; diff --git a/doc/sql/app-20230703-ddl.sql b/doc/sql/app-20230703-ddl.sql index 3df6683..fb8dff5 100644 --- a/doc/sql/app-20230703-ddl.sql +++ b/doc/sql/app-20230703-ddl.sql @@ -27,3 +27,5 @@ CREATE TABLE `cim_chat_file` ( alter table cim_chat_file Add column question_no varchar(32) null default '' COMMENT '问题单号'; alter table cim_chat_file Add column user_id varchar(32) null default '' COMMENT '用户id'; + +ALTER TABLE `cim_chat_file` MODIFY COLUMN `is_join` tinyint(255);