实体类和mapper生成
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
package com.volvo.ai.analytic.center.controller;
|
||||
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.fasterxml.jackson.core.JsonParser;
|
||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||
import com.fasterxml.jackson.databind.DeserializationFeature;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.volvo.ai.analytic.center.dto.req.AnalysisQueryReq;
|
||||
import com.volvo.ai.analytic.center.dto.req.AnalysisReq;
|
||||
import com.volvo.ai.analytic.center.dto.req.ConsultingRequestDTO;
|
||||
import com.volvo.ai.analytic.center.dto.resp.AnalysisResp;
|
||||
import com.volvo.ai.analytic.center.service.AiAnalysisDifyService;
|
||||
import com.volvo.common.core.util.ResultMsg;
|
||||
@@ -17,10 +19,7 @@ import org.apache.rocketmq.spring.core.RocketMQTemplate;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.cloud.context.config.annotation.RefreshScope;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
|
||||
@RestController()
|
||||
@@ -77,5 +76,20 @@ public class AiAnalysisDifyController {
|
||||
}
|
||||
|
||||
|
||||
|
||||
@PostMapping("/corpusQuestion")
|
||||
@ApiOperation(value = "单条语料分析结论入库")
|
||||
public AnalysisResp<Object> corpusQuestion(@RequestHeader(value = "appKey") String appKey,
|
||||
@RequestBody ConsultingRequestDTO requestDTO) {
|
||||
// 打印接收到的参数
|
||||
System.out.println("Received appKey: " + appKey);
|
||||
System.out.println("Received businessType: " + requestDTO.getBusinessType());
|
||||
JSONObject jsonObject = JSONObject.parseObject(requestDTO.getText());
|
||||
System.out.println("Received text: " + jsonObject.toString());
|
||||
|
||||
return AnalysisResp .success("ok");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.volvo.ai.analytic.center.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.volvo.ai.analytic.center.entity.TmCorpusQuestionReport;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 单条语料分析结论
|
||||
*/
|
||||
@Mapper
|
||||
public interface TmCorpusQuestionReportMapper extends BaseMapper<TmCorpusQuestionReport> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.volvo.ai.analytic.center.mapper;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.volvo.ai.analytic.center.entity.TmOdsAinpArrivalTestdriveVoiceInfo;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* @description 湖仓同步AI铭牌到店试驾语料信息-
|
||||
* @date 2025-07-17
|
||||
*/
|
||||
@Mapper
|
||||
public interface TmOdsAinpArrivalTestdriveVoiceInfoMapper extends BaseMapper<TmOdsAinpArrivalTestdriveVoiceInfo> {
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.volvo.ai.analytic.center.mapper;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.volvo.ai.analytic.center.entity.TmOdsImRealtimeMessageCur;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* @description 湖仓同步实时IM消息表-Mapper (tm_ods_im_realtime_message_cur)
|
||||
* @date 2025-07-17
|
||||
*/
|
||||
@Mapper
|
||||
public interface TmOdsImRealtimeMessageCurMapper extends BaseMapper<TmOdsImRealtimeMessageCur> {
|
||||
}
|
||||
Reference in New Issue
Block a user