|
|
|
@ -4,6 +4,7 @@ import com.fasterxml.jackson.core.type.TypeReference; |
|
|
|
import com.fasterxml.jackson.databind.ObjectMapper; |
|
|
|
import com.inspect.analysis.mapper.ResultAnalysisMapper; |
|
|
|
import com.inspect.base.core.utils.DateUtils; |
|
|
|
import com.inspect.base.core.utils.HttpClientUtils; |
|
|
|
import com.inspect.task.domain.DeviceConvert; |
|
|
|
|
|
|
|
import com.inspect.task.domain.PatrolData; |
|
|
|
@ -136,8 +137,25 @@ public class PatrolTaskServiceImpl implements IPatrolTaskService { |
|
|
|
list = new ArrayList<>(); |
|
|
|
} |
|
|
|
|
|
|
|
String controlPara1 = ""; |
|
|
|
String controlPara2 = ""; |
|
|
|
if(list.size() == 2 && list.get(0).size() == 2 && list.get(1).size() == 2) { |
|
|
|
controlPara1 = list.get(0).get(0) + "," + list.get(0).get(1); |
|
|
|
controlPara2 = list.get(1).get(0) + "," + list.get(1).get(1); |
|
|
|
} |
|
|
|
|
|
|
|
final String url = "http://199.199.199.154:9906" + "/api/v1/control/presetEx"; |
|
|
|
final String param = "command=correction" |
|
|
|
+ "&code=" + channelCode |
|
|
|
+ "&controlCode=" + "31" |
|
|
|
+ "&controlPara1=" + controlPara1 |
|
|
|
+ "&controlPara2=" + controlPara2 |
|
|
|
; |
|
|
|
log.info("controller correctionAlgorithm correction param: {}", param); |
|
|
|
try { |
|
|
|
HttpClientUtils.get(url, param); |
|
|
|
} catch (Exception e) { |
|
|
|
log.info("controller correctionAlgorithm HttpClientUtils.get execute exception: {}", e.getMessage()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |