|
|
@@ -1,5 +1,6 @@ |
|
|
|
package com.tuoheng.admin.service.third.dsp; |
|
|
|
|
|
|
|
import cn.hutool.core.util.ObjectUtil; |
|
|
|
import cn.hutool.core.util.RandomUtil; |
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
@@ -79,7 +80,7 @@ public class DspCallbackServiceImpl implements IDspCallbackService { |
|
|
|
Inspection inspection = inspectionMapper.selectOne(new LambdaQueryWrapper<Inspection>() |
|
|
|
.eq(Inspection::getId, inspectionId) |
|
|
|
.eq(Inspection::getTenantId, business.getTenantId())); |
|
|
|
if (inspection == null) { |
|
|
|
if (ObjectUtil.isNull(inspection)) { |
|
|
|
log.info("巡检任务不存在"); |
|
|
|
throw new ServiceException(0, "巡检任务不存在"); |
|
|
|
} |
|
|
@@ -137,6 +138,7 @@ public class DspCallbackServiceImpl implements IDspCallbackService { |
|
|
|
if (!CollectionUtils.isEmpty(questionFiles)) { |
|
|
|
log.info("问题图片处理开始, 图片数量:{}", questionFiles.size()); |
|
|
|
// 坐标 |
|
|
|
log.info("任务是否实时, isLive:{}", inspection.getIsLive()); |
|
|
|
boolean online_condition = AiAnalyseTypeEnum.ONLINE.getCode() == inspection.getIsLive(); |
|
|
|
boolean offline_condition = AiAnalyseTypeEnum.OFFLINE.getCode() == inspection.getIsLive(); |
|
|
|
log.info("在线:{}, 离线:{}", online_condition, offline_condition); |