|
@ -63,7 +63,6 @@ public class ShiBeiCityGridApiImpl implements ShiBeiCityGridApi { |
|
|
public GridDto newSendInputInfo(SendInputInfoFormDto caseReportFormDto) { |
|
|
public GridDto newSendInputInfo(SendInputInfoFormDto caseReportFormDto) { |
|
|
Map<String, Object> map = Maps.newHashMap(); |
|
|
Map<String, Object> map = Maps.newHashMap(); |
|
|
map.put("srtXml", XstreamUtil.objectToXml(caseReportFormDto)); |
|
|
map.put("srtXml", XstreamUtil.objectToXml(caseReportFormDto)); |
|
|
LOGGER.info("strXml" + map.get("srtXml")); |
|
|
|
|
|
GridDto girdDto = this.requestGird(ApiConstants.newSendInputInfo, map, GridDto.class); |
|
|
GridDto girdDto = this.requestGird(ApiConstants.newSendInputInfo, map, GridDto.class); |
|
|
if (girdDto == null) { |
|
|
if (girdDto == null) { |
|
|
LOGGER.error("案件上报失败,案件内部编号:{}", caseReportFormDto.getHotLinesn()); |
|
|
LOGGER.error("案件上报失败,案件内部编号:{}", caseReportFormDto.getHotLinesn()); |
|
@ -80,7 +79,6 @@ public class ShiBeiCityGridApiImpl implements ShiBeiCityGridApi { |
|
|
json = json.replace("%", "%"); |
|
|
json = json.replace("%", "%"); |
|
|
json = json.replace(ApiConstants.eventOssUrlBefore, ApiConstants.eventOssUrlAfter); |
|
|
json = json.replace(ApiConstants.eventOssUrlBefore, ApiConstants.eventOssUrlAfter); |
|
|
String data = "content=" + json; |
|
|
String data = "content=" + json; |
|
|
LOGGER.info("发送地址:" + ApiConstants.sendEventUrl + "||发送参数:"); |
|
|
|
|
|
HttpResponse response = null; |
|
|
HttpResponse response = null; |
|
|
try { |
|
|
try { |
|
|
response = HttpRequest.post(ApiConstants.sendEventUrl).body(data) |
|
|
response = HttpRequest.post(ApiConstants.sendEventUrl).body(data) |
|
@ -90,7 +88,6 @@ public class ShiBeiCityGridApiImpl implements ShiBeiCityGridApi { |
|
|
e.printStackTrace(); |
|
|
e.printStackTrace(); |
|
|
LOGGER.error("事件上报信息异常:" + e.getMessage()); |
|
|
LOGGER.error("事件上报信息异常:" + e.getMessage()); |
|
|
} |
|
|
} |
|
|
LOGGER.info("事件上报返回数据:" + response.body()); |
|
|
|
|
|
JSONObject res = JSONObject.parseObject(response.body()); |
|
|
JSONObject res = JSONObject.parseObject(response.body()); |
|
|
SendEventResultDto result = null; |
|
|
SendEventResultDto result = null; |
|
|
if (0 == Integer.parseInt(res.get("code").toString())) { |
|
|
if (0 == Integer.parseInt(res.get("code").toString())) { |
|
@ -115,7 +112,6 @@ public class ShiBeiCityGridApiImpl implements ShiBeiCityGridApi { |
|
|
@Override |
|
|
@Override |
|
|
public SendEventResultDto sendEventManual(String data) { |
|
|
public SendEventResultDto sendEventManual(String data) { |
|
|
data = "content=" + data; |
|
|
data = "content=" + data; |
|
|
LOGGER.info("发送地址:" + ApiConstants.sendEventUrl + "||发送参数:"); |
|
|
|
|
|
HttpResponse response = null; |
|
|
HttpResponse response = null; |
|
|
try { |
|
|
try { |
|
|
response = HttpRequest.post(ApiConstants.sendEventUrl).body(data) |
|
|
response = HttpRequest.post(ApiConstants.sendEventUrl).body(data) |
|
@ -125,7 +121,6 @@ public class ShiBeiCityGridApiImpl implements ShiBeiCityGridApi { |
|
|
e.printStackTrace(); |
|
|
e.printStackTrace(); |
|
|
LOGGER.error("事件上报信息异常:" + e.getMessage()); |
|
|
LOGGER.error("事件上报信息异常:" + e.getMessage()); |
|
|
} |
|
|
} |
|
|
LOGGER.info("事件上报返回数据:" + response.body()); |
|
|
|
|
|
JSONObject res = JSONObject.parseObject(response.body()); |
|
|
JSONObject res = JSONObject.parseObject(response.body()); |
|
|
SendEventResultDto result = null; |
|
|
SendEventResultDto result = null; |
|
|
if (0 == Integer.parseInt(res.get("code").toString())) { |
|
|
if (0 == Integer.parseInt(res.get("code").toString())) { |
|
@ -192,7 +187,6 @@ public class ShiBeiCityGridApiImpl implements ShiBeiCityGridApi { |
|
|
@Override |
|
|
@Override |
|
|
public EventProcessHisResultDto getHistoryByRecId(String recId) { |
|
|
public EventProcessHisResultDto getHistoryByRecId(String recId) { |
|
|
String url = ApiConstants.historyUrl + "?recId=" + recId; |
|
|
String url = ApiConstants.historyUrl + "?recId=" + recId; |
|
|
LOGGER.info("获取事件处理进度请求地址:" + url); |
|
|
|
|
|
HttpResponse response = null; |
|
|
HttpResponse response = null; |
|
|
try { |
|
|
try { |
|
|
response = HttpRequest.get(url) |
|
|
response = HttpRequest.get(url) |
|
@ -202,7 +196,6 @@ public class ShiBeiCityGridApiImpl implements ShiBeiCityGridApi { |
|
|
e.printStackTrace(); |
|
|
e.printStackTrace(); |
|
|
LOGGER.error("获取事件处理进度异常:" + e.getMessage()); |
|
|
LOGGER.error("获取事件处理进度异常:" + e.getMessage()); |
|
|
} |
|
|
} |
|
|
LOGGER.info("获取事件处理进度返回数据:" + response.body()); |
|
|
|
|
|
JSONObject res = JSONObject.parseObject(response.body()); |
|
|
JSONObject res = JSONObject.parseObject(response.body()); |
|
|
EventProcessHisResultDto result = null; |
|
|
EventProcessHisResultDto result = null; |
|
|
try { |
|
|
try { |
|
@ -217,7 +210,6 @@ public class ShiBeiCityGridApiImpl implements ShiBeiCityGridApi { |
|
|
@Override |
|
|
@Override |
|
|
public List<EventProcessBatchHisResultDto> getBatchHistoryByRecIds(String recIds) { |
|
|
public List<EventProcessBatchHisResultDto> getBatchHistoryByRecIds(String recIds) { |
|
|
String url = ApiConstants.batchHistoryUrl + "?recIds=" + recIds; |
|
|
String url = ApiConstants.batchHistoryUrl + "?recIds=" + recIds; |
|
|
LOGGER.info("获取事件处理进度请求地址:" + url); |
|
|
|
|
|
HttpResponse response = null; |
|
|
HttpResponse response = null; |
|
|
try { |
|
|
try { |
|
|
response = HttpRequest.get(url) |
|
|
response = HttpRequest.get(url) |
|
@ -227,7 +219,6 @@ public class ShiBeiCityGridApiImpl implements ShiBeiCityGridApi { |
|
|
e.printStackTrace(); |
|
|
e.printStackTrace(); |
|
|
LOGGER.error("获取事件处理进度异常:" + e.getMessage()); |
|
|
LOGGER.error("获取事件处理进度异常:" + e.getMessage()); |
|
|
} |
|
|
} |
|
|
LOGGER.info("获取事件处理进度返回数据:" + response.body()); |
|
|
|
|
|
JSONObject res = JSONObject.parseObject(response.body()); |
|
|
JSONObject res = JSONObject.parseObject(response.body()); |
|
|
JSONArray dataList = JSONObject.parseArray(res.get("data").toString()); |
|
|
JSONArray dataList = JSONObject.parseArray(res.get("data").toString()); |
|
|
List<EventProcessBatchHisResultDto> results = new ArrayList<>(); |
|
|
List<EventProcessBatchHisResultDto> results = new ArrayList<>(); |
|
@ -245,7 +236,6 @@ public class ShiBeiCityGridApiImpl implements ShiBeiCityGridApi { |
|
|
String json = JSONObject.toJSONString(rejectReDoDTO); |
|
|
String json = JSONObject.toJSONString(rejectReDoDTO); |
|
|
json = json.replace(ApiConstants.eventOssUrlBefore, ApiConstants.eventOssUrlAfter); |
|
|
json = json.replace(ApiConstants.eventOssUrlBefore, ApiConstants.eventOssUrlAfter); |
|
|
String data = "content=" + json; |
|
|
String data = "content=" + json; |
|
|
LOGGER.info("发送地址:" + ApiConstants.sendEventUrl + "||发送参数:"); |
|
|
|
|
|
HttpResponse response = null; |
|
|
HttpResponse response = null; |
|
|
try { |
|
|
try { |
|
|
response = HttpRequest.post(ApiConstants.sendEventUrl).body(data) |
|
|
response = HttpRequest.post(ApiConstants.sendEventUrl).body(data) |
|
@ -255,7 +245,6 @@ public class ShiBeiCityGridApiImpl implements ShiBeiCityGridApi { |
|
|
e.printStackTrace(); |
|
|
e.printStackTrace(); |
|
|
LOGGER.error("事件驳回上报信息异常:" + e.getMessage()); |
|
|
LOGGER.error("事件驳回上报信息异常:" + e.getMessage()); |
|
|
} |
|
|
} |
|
|
LOGGER.info("事件驳回上报返回数据:" + response.body()); |
|
|
|
|
|
JSONObject res = JSONObject.parseObject(response.body()); |
|
|
JSONObject res = JSONObject.parseObject(response.body()); |
|
|
EventRejectDoResultDto result = null; |
|
|
EventRejectDoResultDto result = null; |
|
|
if (0 == Integer.parseInt(res.get("code").toString())) { |
|
|
if (0 == Integer.parseInt(res.get("code").toString())) { |
|
|