|
@@ -207,7 +207,13 @@ public class IotedgeCollectDataController extends JeecgController<IotedgeCollect
|
|
|
return Result.OK("添加成功!");
|
|
|
}
|
|
|
if ("500".equals(code)){
|
|
|
- return Result.error("IoTedge中该组织已经存在!");
|
|
|
+ Result<String> r = new Result<String>();
|
|
|
+ r.setSuccess(true);
|
|
|
+ r.setCode(400);
|
|
|
+ r.setMessage("IoTedge中该组织已经存在!");
|
|
|
+ r.setResult("IoTedge中该组织已经存在!");
|
|
|
+ return r;
|
|
|
+ //return Result.error("IoTedge中该组织已经存在!");
|
|
|
}
|
|
|
return Result.error("添加失败!");
|
|
|
}
|
|
@@ -224,7 +230,12 @@ public class IotedgeCollectDataController extends JeecgController<IotedgeCollect
|
|
|
return Result.OK("删除成功");
|
|
|
}
|
|
|
if ("400".equals(code)){
|
|
|
- return Result.error("IoTedge中该组织已被使用,IoTedge删除组织失败!请到IoTedge系统中进行处理");
|
|
|
+ Result<String> r = new Result<String>();
|
|
|
+ r.setSuccess(true);
|
|
|
+ r.setCode(400);
|
|
|
+ r.setMessage("IoTedge中该组织已被使用,IoTedge删除组织失败!请到IoTedge系统中进行处理");
|
|
|
+ r.setResult("IoTedge中该组织已被使用,IoTedge删除组织失败!请到IoTedge系统中进行处理");
|
|
|
+ return r;
|
|
|
}
|
|
|
return Result.error("删除失败");
|
|
|
}
|