企微语料查询调整
This commit is contained in:
@@ -2,17 +2,15 @@ package com.volvo.ai.analytic.center.job;
|
|||||||
|
|
||||||
import com.volvo.ai.analytic.center.service.TmOdsVdqwMessagearchivingService;
|
import com.volvo.ai.analytic.center.service.TmOdsVdqwMessagearchivingService;
|
||||||
import com.volvo.common.core.util.ResultMsg;
|
import com.volvo.common.core.util.ResultMsg;
|
||||||
|
import com.xxl.job.core.context.XxlJobHelper;
|
||||||
import com.xxl.job.core.handler.annotation.XxlJob;
|
import com.xxl.job.core.handler.annotation.XxlJob;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
|
||||||
|
|
||||||
|
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@Component
|
@Component
|
||||||
@RestController
|
|
||||||
public class QiWeiCorpusJob {
|
public class QiWeiCorpusJob {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
@@ -22,11 +20,14 @@ public class QiWeiCorpusJob {
|
|||||||
* 企微语料处理
|
* 企微语料处理
|
||||||
*/
|
*/
|
||||||
@XxlJob("QiWeiCorpusTask")
|
@XxlJob("QiWeiCorpusTask")
|
||||||
@PostMapping("qiWeiCorpusTask")
|
|
||||||
public ResultMsg qiWeiCorpusTask(String paramJson) {
|
public ResultMsg qiWeiCorpusTask(String paramJson) {
|
||||||
try {
|
try {
|
||||||
log.info("qiWeiCorpusTask 企微语料查询处理:{}",paramJson);
|
// 获取任务参数
|
||||||
tmOdsVdqwMessagearchivingService.runQiWeiCorpusDify(paramJson);
|
String param = XxlJobHelper.getJobParam();
|
||||||
|
// 执行业务逻辑
|
||||||
|
XxlJobHelper.log("任务参数: {}", param);
|
||||||
|
log.info("qiWeiCorpusTask 企微语料查询处理:{}",param);
|
||||||
|
tmOdsVdqwMessagearchivingService.runQiWeiCorpusDify(param);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("processMessageByTask 定时任务补偿处理消息异常",e.getMessage());
|
log.error("processMessageByTask 定时任务补偿处理消息异常",e.getMessage());
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
|
|||||||
@@ -15,8 +15,8 @@
|
|||||||
AND tovm.msg_time between #{statTime} and #{endTime}
|
AND tovm.msg_time between #{statTime} and #{endTime}
|
||||||
AND tovm.chat_type = 0
|
AND tovm.chat_type = 0
|
||||||
GROUP BY
|
GROUP BY
|
||||||
tovm.from_user_id,
|
LEAST(tovm.from_user_id, tovm.accept_user_id),
|
||||||
tovm.accept_user_id
|
GREATEST(tovm.from_user_id, tovm.accept_user_id);
|
||||||
) tab
|
) tab
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
@@ -33,8 +33,8 @@
|
|||||||
AND tovm.msg_time between #{statTime} and #{endTime}
|
AND tovm.msg_time between #{statTime} and #{endTime}
|
||||||
AND tovm.chat_type = 0
|
AND tovm.chat_type = 0
|
||||||
GROUP BY
|
GROUP BY
|
||||||
tovm.from_user_id,
|
LEAST(tovm.from_user_id, tovm.accept_user_id),
|
||||||
tovm.accept_user_id
|
GREATEST(tovm.from_user_id, tovm.accept_user_id);
|
||||||
LIMIT #{offset}, #{pageSize}
|
LIMIT #{offset}, #{pageSize}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user