xieb
2024-05-21 ba8f60437c8f3747bbfa69563388d8eb925a0bee
skjcmanager/skjcmanager-service/skjcmanager-sm/src/main/java/cn/gistack/sm/sjztmd/controller/AttAdBaseController.java
@@ -89,6 +89,8 @@
         obj.put("code",code.substring(0,2));
      } else if (code.substring(0,6).indexOf("00") > -1) {
         obj.put("code",code.substring(0,4));
      }else if (code.substring(0,8).indexOf("00") > -1){
         obj.put("code",code.substring(0,8));
      }
      List<AttAdBaseVO> list = attAdBaseService.lazyTree(parentCode, obj);
      return R.data(listNodeLazyVO(list));
@@ -107,6 +109,8 @@
            obj.put("code",code.substring(0,2));
         } else if (code.substring(0,6).indexOf("00") > -1) {
            obj.put("code",code.substring(0,4));
         } else if (code.substring(0,8).indexOf("00") > -1) {
            obj.put("code",code.substring(0,6));
         }
      }
      List<AttAdBaseVO> list = attAdBaseService.lazyTreeAll(parentCode, obj);
@@ -126,12 +130,12 @@
   })
   @ApiOperation(value = "加载树列表", notes = "传入code")
   public R selectAttAdBaseTree(String parentCode, @ApiIgnore @RequestParam Map<String, Object> obj) {
      String code = obj.get("code").toString();
      if (code.substring(0,4).indexOf("00") > -1) {
         obj.put("code",code.substring(0,2));
      } else if (code.substring(0,6).indexOf("00") > -1) {
         obj.put("code",code.substring(0,4));
      }
//      String code = obj.get("code").toString();
//      if (code.substring(0,4).indexOf("00") > -1) {
//         obj.put("code",code.substring(0,2));
//      } else if (code.substring(0,6).indexOf("00") > -1) {
//         obj.put("code",code.substring(0,4));
//      }
      // 查询并返回
      return R.data(attAdBaseService.selectAttAdBaseTree(parentCode, obj));
   }
@@ -154,4 +158,11 @@
      return ForestNodeMerger.merge(list);
   }
   @GetMapping("/getYwxtAttadBaseList")
   public R getYwxtAttadBaseList(String parentId,String isYwxtRegion){
      List<AttAdBase> attAdBases = attAdBaseService.getYwxtAttadBaseList(parentId,isYwxtRegion);
      return R.data(attAdBases);
   }
}