|
|
|
@ -35,7 +35,7 @@ public class AnalyseRemoteService { |
|
|
|
private IPatrolTaskService patrolTaskService; |
|
|
|
|
|
|
|
//qinyl |
|
|
|
public void sendRequest(AnalyseRequest analyseReq, boolean isFilter) { |
|
|
|
public void sendRequest(AnalyseRequest analyseReq, String[] typeList, boolean isFilter) { |
|
|
|
String requestId = UUID.randomUUID().toString().trim().replaceAll(StringUtils.DASH, StringUtils.EMPTY); |
|
|
|
String taskPatrolId = analyseReq.getTaskPatrolId(); |
|
|
|
redisService.setCacheObject(RedisConst.REQUEST_UUID + requestId, taskPatrolId, 1L, TimeUnit.DAYS); |
|
|
|
@ -51,7 +51,7 @@ public class AnalyseRemoteService { |
|
|
|
if ("1".equals(analyseFilter) && isFilter) { |
|
|
|
this.redisService.setCacheObject("ANALYSE_FILTER_REQUEST:" + requestId, analyseReq.clone(), 1L, TimeUnit.HOURS); |
|
|
|
AnalyseReqItem analyseReqItem = analyseReq.getObjectList().get(0); |
|
|
|
analyseReqItem.setTypeList(new String[]{"bj_bpmh"}); |
|
|
|
analyseReqItem.setTypeList(typeList); |
|
|
|
analyseReq.setObjectList(Collections.singletonList(analyseReqItem)); |
|
|
|
requestUrl = patrolTaskService.selectConfigByKey("ANALYSE_FILTER_URL"); |
|
|
|
} else { |
|
|
|
|