ke
2024-07-19 08a962d2925baa255207fdf979e6fee794f1773b
skjcmanager/skjcmanager-service/skjcmanager-sm/src/main/java/cn/gistack/sm/sjztmd/controller/AttAdBaseController.java
@@ -84,14 +84,14 @@
   })
   @ApiOperation(value = "加载树列表", notes = "传入code")
   public R<List<AttAdBaseVO>> select(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));
      }else if (code.substring(0,8).indexOf("00") > -1){
         obj.put("code",code.substring(0,8));
      }
//      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));
//      }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));
   }