Commit 4075c019 by duanhq

删除多余代码 by duanht 2019/4/17

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@19794 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 19bae153
......@@ -1502,15 +1502,6 @@ public class OrderServiceImpl implements IOrderService {
return new ResultObject(ResultCodeEnum.FAIL.getCode(), "订单可能已经被服务商取消,请核验订单状态");
}
// //根据渠道编号调用不同验证接口
// if ("glsx_edun".equals(order.getChannel())) {
// //用其他渠道传来的工单号进行验证
// obj = checkDeviceAndOrderFromEdun(order);
// if (obj.getCode() != 0) {
// return new ResultObject(ResultCodeEnum.FAIL.getCode(), obj.getMessage());
// }
// }
SysOrder sysOrder = new SysOrder();
BeanUtils.copyProperties(orderActivateReq, sysOrder);
......@@ -1575,47 +1566,6 @@ public class OrderServiceImpl implements IOrderService {
return result;
}
private ResultObject activeOrder(SysOrder order) {
ResultObject obj = new ResultObject();
try {
Map<String, String> paramMap = new TreeMap<String, String>();
paramMap.put("workOrderNo", order.getWorkOrderNo());
paramMap.put("sn", order.getDeviceNo());
paramMap.put("name", order.getCarOwner());
paramMap.put("standNo", order.getVinNo());
paramMap.put("devices", order.getVinNo());
String url = PropertiesUtil.getProperty("frms_access_platform_url") + "deviceHandler/locationCheck?";
String result = HttpUtils.get(url, paramMap);
String returnCode = (String) JSON.parseObject(result).get("returnCode");
String message = (String) JSON.parseObject(result).get("message");
obj.setCode(Integer.valueOf(returnCode));
obj.setMessage(message);
} catch (Exception e) {
logger.error(e.getMessage(), e);
}
return obj;
}
private ResultObject checkDeviceAndOrderFromEdun(SysOrder order) {
ResultObject obj = new ResultObject();
try {
Map<String, String> paramMap = new TreeMap<String, String>();
paramMap.put("workOrderNo", order.getWorkOrderNo());
paramMap.put("sn", order.getDeviceNo());
paramMap.put("name", order.getCarOwner());
paramMap.put("standNo", order.getVinNo());
String url = PropertiesUtil.getProperty("frms_access_platform_url") + "deviceHandler/locationCheck?";
String result = HttpUtils.get(url, paramMap);
String returnCode = (String) JSON.parseObject(result).get("returnCode");
String message = (String) JSON.parseObject(result).get("message");
obj.setCode(Integer.valueOf(returnCode));
obj.setMessage(message);
} catch (Exception e) {
logger.error(e.getMessage(), e);
}
return obj;
}
/*
* (non-Javadoc)
*
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!