Commit 2da2e615 by zhengxj

包活干V1.8.0需求异常反馈接口返回值处理--think.wang

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@26508 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 438c6b7a
...@@ -116,9 +116,10 @@ public class OrderExceptionServiceImpl implements IOrderExceptionService { ...@@ -116,9 +116,10 @@ public class OrderExceptionServiceImpl implements IOrderExceptionService {
String url = serverUrl + feedbackApi; String url = serverUrl + feedbackApi;
HttpUtils httpUtils = new HttpUtils(); HttpUtils httpUtils = new HttpUtils();
String result = httpUtils.postJson(url, bodyData); String result = httpUtils.postJson(url, bodyData);
logger.info("大搜车异常反馈接口返回值:{}", result);
int status = 1; //反馈失败状态 int status = 1; //反馈失败状态
JSONObject obj = JSON.parseObject(result); logger.info("大搜车异常反馈接口返回值:{}", result);
String str = result.substring(1, result.length() - 1).replace("\\", ""); //返回结果进行转换
JSONObject obj = JSON.parseObject(str);
if(obj.getInteger("code") == 0){ //code为0,连接成功 if(obj.getInteger("code") == 0){ //code为0,连接成功
JSONObject objData = JSON.parseObject(obj.getString("data")); JSONObject objData = JSON.parseObject(obj.getString("data"));
Boolean success = objData.getBooleanValue("objData"); Boolean success = objData.getBooleanValue("objData");
...@@ -132,7 +133,7 @@ public class OrderExceptionServiceImpl implements IOrderExceptionService { ...@@ -132,7 +133,7 @@ public class OrderExceptionServiceImpl implements IOrderExceptionService {
exceptionVO.setId(vo.getId()); exceptionVO.setId(vo.getId());
exceptionVO.setFeedbackStatus(status); exceptionVO.setFeedbackStatus(status);
exceptionVO.setUpdateTime(new Date()); exceptionVO.setUpdateTime(new Date());
int i = orderExceptionMapper.update(vo); int i = orderExceptionMapper.update(exceptionVO);
if(i > 0){ if(i > 0){
logger.info("异常反馈数据状态更新成功:{}", vo.toString()); logger.info("异常反馈数据状态更新成功:{}", vo.toString());
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!