Commit bd48db19 by zhanghj

V1.4.0--入库增加设备类型验证功能

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@23652 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 09a0fb02
......@@ -183,7 +183,7 @@ public class DeviceServiceImpl implements DeviceService{
paramMap.put("sns", sns);
String url = PropertiesUtil.getProperty("edun.access.platform.url") + "api/workOrder/validateDeviceType";
String result = HttpUtils.get(url, paramMap);
Integer returnCode = (Integer) JSON.parseObject(result).get("error");
Integer returnCode = Integer.parseInt((String) JSON.parseObject(result).get("error"));
JSONArray data = JSON.parseObject(result).getJSONArray("data");
if (returnCode.equals(0)) {
return obj;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!