|
|
|
@ -27,6 +27,7 @@ import com.inspect.job.domain.livesipb.RecordData; |
|
|
|
import com.inspect.job.domain.livesipb.Stream; |
|
|
|
import com.inspect.job.domain.task.*; |
|
|
|
import com.inspect.base.core.domain.maintain.MaintainRegion; |
|
|
|
import com.inspect.job.mapper.PatrolDeviceStateMapper; |
|
|
|
import com.inspect.job.util.HttpClientUtil; |
|
|
|
import com.inspect.system.base.domain.SysDictData; |
|
|
|
|
|
|
|
@ -113,18 +114,21 @@ public class JobMainTask { |
|
|
|
|
|
|
|
final SftpClient sftpClient; |
|
|
|
|
|
|
|
final PatrolDeviceStateMapper patrolDeviceStateMapper; |
|
|
|
@Autowired |
|
|
|
public JobMainTask( |
|
|
|
ShaoXinBigModel shaoXinBigModel, |
|
|
|
TaskExecClient taskExecClient, |
|
|
|
RedisService redisService, |
|
|
|
XgiotInvokeClient remoteInvokeService, |
|
|
|
SftpClient sftpClient) { |
|
|
|
SftpClient sftpClient, |
|
|
|
PatrolDeviceStateMapper patrolDeviceStateMapper) { |
|
|
|
this.shaoXinBigModel = shaoXinBigModel; |
|
|
|
this.taskExecClient = taskExecClient; |
|
|
|
this.redisService = redisService; |
|
|
|
this.remoteInvokeService = remoteInvokeService; |
|
|
|
this.sftpClient = sftpClient; |
|
|
|
this.patrolDeviceStateMapper = patrolDeviceStateMapper; |
|
|
|
} |
|
|
|
|
|
|
|
@PostConstruct |
|
|
|
@ -482,8 +486,11 @@ public class JobMainTask { |
|
|
|
log.info("[infra_1800] 红外处理新流程: prePointExec algSubtypeCode: {}", algSubtypeCode); |
|
|
|
String paramFileName; |
|
|
|
if(algSubtypeCode.contains(AlgConstants.INFRA_1800)) { |
|
|
|
Map<String, String> threshold = patrolDeviceStateMapper.selectPatrolPresetParam(presetPos.getPatrolPointId()); |
|
|
|
final String temperUrl = liveIVS_URL + "/api/v1/device/temper"; |
|
|
|
JSONObject temperParam = new JSONObject(); |
|
|
|
temperParam.put("ruleId", threshold.get("preset_param_code")); |
|
|
|
log.info("[infra_1800] =======ruleId: {}", threshold.get("preset_param_code")); |
|
|
|
temperParam.put("presetId", Integer.parseInt(presetPos.getPresetPosCode())); |
|
|
|
temperParam.put("cameraCode", presetPos.getChannelCode()); |
|
|
|
final String temperUrlRes = HttpClientUtils.sendPostAgain(temperUrl, temperParam.toString()); |
|
|
|
|