| | |
| | | return R.data(pageList); |
| | | } |
| | | |
| | | @GetMapping("/select") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "code", value = "区划编号", paramType = "query", dataType = "string"), |
| | | @ApiImplicitParam(name = "name", value = "区划名称", paramType = "query", dataType = "string") |
| | | }) |
| | | @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)); |
| | | } |
| | | List<AttAdBaseVO> list = attAdBaseService.lazyTree(parentCode, obj); |
| | | return R.data(listNodeLazyVO(list)); |
| | | } |
| | | |
| | | /** |
| | | * 懒加载列表 懒加载待优化 |
| | | */ |
| | |
| | | }) |
| | | @ApiOperation(value = "懒加载列表", notes = "传入code") |
| | | public R<List<AttAdBaseVO>> lazyTree(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)); |
| | | } |
| | | List<AttAdBaseVO> list = attAdBaseService.lazyTree(parentCode, obj); |
| | | return R.data(listNodeLazyVO(list)); |
| | | } |