标签:highlight create div end control use created str for
/** * Created by mcmctb on 2018/6/7 13:14 */ @RestController @RequestMapping("region") @CheckClientToken @CheckUserToken public class RegionController extends BaseController<RegionBiz, Region>{ @RequestMapping(value = "/tree", method = RequestMethod.GET) public List<AreaTree> getTree() { List<Region> regions = this.baseBiz.selectListAll(); List<City> city = this.baseBiz.selectListAll(); List<District> district = this.baseBiz.selectListAll(); List<RegionTree> trees = new ArrayList<>(); regions.forEach(region ->{ trees.add(new RegionTree(region.getId(),region.getParentId(),region.getRegionName(),region.getRegionCode())); }); return TreeUtil.bulid(trees, "-1", null); } }
标签:highlight create div end control use created str for
原文地址:https://www.cnblogs.com/tabCtrlShift/p/9151690.html