Bläddra i källkod

fix:空间内的系统 添加 nullpoint

lvxianyun 3 år sedan
förälder
incheckning
584b4b4fcb

+ 2 - 2
src/main/java/com/persagy/proxy/adm/controller/RelationSyInSpController.java

@@ -71,9 +71,9 @@ public class RelationSyInSpController {
      */
     @PostMapping(value = "/link-sp-sys")
     public AdmResponse createsSpSys( @RequestBody JSONObject param) {
-        JSONObject rSyIn = param.getJSONObject("rSyInSpBase");
+        //JSONObject rSyIn = param.getJSONObject("rSyInSpBase");
         String type = param.getString("type");
-        SpInSyBaseList rSyInSpBase = JSON.toJavaObject(rSyIn, SpInSyBaseList.class);
+        SpInSyBaseList rSyInSpBase = JSON.toJavaObject(param, SpInSyBaseList.class);
         String spaceId = rSyInSpBase.getSpaceId();
         List<String> sysIdList = rSyInSpBase.getSysIdList();
         if (StrUtil.isBlank(spaceId) || CollectionUtils.isEmpty(sysIdList)) {