Browse Source

feat:工博会chatFile update修改

master
郑贵龙 1 year ago
parent
commit
e655195827
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/chatFile/service/chatFile/ChatFileUpdateEAIService.java

+ 6
- 4
demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/chatFile/service/chatFile/ChatFileUpdateEAIService.java View File

@ -10,10 +10,7 @@ import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import javax.annotation.Resource; 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 * @auther: zhenggl
@ -37,6 +34,11 @@ public class ChatFileUpdateEAIService extends AbsEAIService {
EAIRequest eaiRequest = EAIRequest.build(messageBody); EAIRequest eaiRequest = EAIRequest.build(messageBody);
ChatFileEntity chatFileInfo = eaiRequest.getObject("chat_file_info", new TypeReference<ChatFileEntity>(){}); ChatFileEntity chatFileInfo = eaiRequest.getObject("chat_file_info", new TypeReference<ChatFileEntity>(){});
if (Objects.isNull(chatFileInfo.getCompleteDate())){
chatFileInfo.setCompleteDate(new Date());
}
chatFileRepository.updateBatch(chatFileInfo); chatFileRepository.updateBatch(chatFileInfo);
return buildOK(new HashMap<>()); return buildOK(new HashMap<>());


Loading…
Cancel
Save