当前位置: 首页 > news >正文

做网站需要哪些技术知乎可以访问境外的浏览器

做网站需要哪些技术知乎,可以访问境外的浏览器,wordpress 修改用户资料bug,网站个性化设计如下图所示,下列数据是一个树形结构数据,行业中包含若干子节点。表的设计如下图,设置了一个id为1的虚拟根节点。(本树形结构带虚拟根节点共三层) 实现逻辑: 延时展示方法,先展现第二层的信息&a…

如下图所示,下列数据是一个树形结构数据,行业中包含若干子节点。表的设计如下图,设置了一个id为1的虚拟根节点。(本树形结构带虚拟根节点共三层)

实现逻辑:

延时展示方法,先展现第二层的信息,如果想要看到具体第三层的信息,点击按钮触发后台请求,通过当前点击的父节点获得其所有子节点。

实现方法:

0. 首先在Dict实体类中加入如下属性:

 @TableField(exist = false)//逻辑概念的属性,与物理表没有关系,数据库表中不存在该字段。private boolean hasChildren;

1.Service层:

    @Overridepublic List<Dict> listByParentId(Long parentId) {QueryWrapper<Dict> queryWrapper=new QueryWrapper<>();queryWrapper.eq("parent_id",parentId);List<Dict> dictList= dictMapper.selectList(queryWrapper);//填充hasChildren字段dictList.forEach(dict -> {//判断当前字段是否有子节点dict.setHasChildren(this.hasChildre(parentId));});return dictList;}//    判断当前节点下是否存在子节点private  boolean hasChildre(Long id){QueryWrapper<Dict> queryWrapper=new QueryWrapper<>();queryWrapper.eq("parent_id",id);Integer count=dictMapper.selectCount(queryWrapper);if(count>0)return true;else return false;}

2. Controller层:

@ApiOperation("根据上级id获取所有子节点信息")@GetMapping("/listByParentId/{parentId}")public R listByParentId(@ApiParam(value = "上级父节点的id")@PathVariable Long parentId){List<Dict> dictList=dictService.listByParentId(parentId);return R.ok().data("list",dictList);}


文章转载自:
http://marla.c7627.cn
http://hatcher.c7627.cn
http://propyne.c7627.cn
http://betimes.c7627.cn
http://hibachi.c7627.cn
http://malingerer.c7627.cn
http://joltheaded.c7627.cn
http://frostbound.c7627.cn
http://nonaligned.c7627.cn
http://thanatophidia.c7627.cn
http://sciophyte.c7627.cn
http://reprovision.c7627.cn
http://terry.c7627.cn
http://decollete.c7627.cn
http://relent.c7627.cn
http://globeflower.c7627.cn
http://alertness.c7627.cn
http://fandango.c7627.cn
http://manikin.c7627.cn
http://pronate.c7627.cn
http://galactosyl.c7627.cn
http://adjustment.c7627.cn
http://toughen.c7627.cn
http://fructicative.c7627.cn
http://corroboree.c7627.cn
http://sequestrene.c7627.cn
http://sigmoidoscope.c7627.cn
http://tibia.c7627.cn
http://leniency.c7627.cn
http://esparto.c7627.cn
http://whitehorse.c7627.cn
http://decrescendo.c7627.cn
http://superciliary.c7627.cn
http://unpriestly.c7627.cn
http://electrothermal.c7627.cn
http://leave.c7627.cn
http://consequently.c7627.cn
http://jumping.c7627.cn
http://sleeveless.c7627.cn
http://bemist.c7627.cn
http://lamasery.c7627.cn
http://despumation.c7627.cn
http://lanate.c7627.cn
http://sulphydryl.c7627.cn
http://ratoon.c7627.cn
http://echeveria.c7627.cn
http://dynamiter.c7627.cn
http://bruin.c7627.cn
http://unilateralism.c7627.cn
http://hypothermal.c7627.cn
http://fadeaway.c7627.cn
http://adulterant.c7627.cn
http://roadmap.c7627.cn
http://lessor.c7627.cn
http://abnaki.c7627.cn
http://timaru.c7627.cn
http://fafnir.c7627.cn
http://geneticist.c7627.cn
http://hyperalgesic.c7627.cn
http://ombre.c7627.cn
http://adenase.c7627.cn
http://cameroun.c7627.cn
http://erigeron.c7627.cn
http://rota.c7627.cn
http://plowman.c7627.cn
http://polynesian.c7627.cn
http://alumnus.c7627.cn
http://extramusical.c7627.cn
http://tufty.c7627.cn
http://quintal.c7627.cn
http://cloudward.c7627.cn
http://maya.c7627.cn
http://punic.c7627.cn
http://slowly.c7627.cn
http://keeled.c7627.cn
http://dust.c7627.cn
http://embassage.c7627.cn
http://alcahest.c7627.cn
http://gis.c7627.cn
http://fireboat.c7627.cn
http://abjection.c7627.cn
http://fomentation.c7627.cn
http://nephralgia.c7627.cn
http://aileron.c7627.cn
http://gastropodous.c7627.cn
http://cany.c7627.cn
http://alt.c7627.cn
http://aerosiderite.c7627.cn
http://subversive.c7627.cn
http://vinelet.c7627.cn
http://microinjection.c7627.cn
http://supergranule.c7627.cn
http://liposarcoma.c7627.cn
http://paleoentomology.c7627.cn
http://amenophis.c7627.cn
http://pachinko.c7627.cn
http://embarkation.c7627.cn
http://recoupment.c7627.cn
http://lbj.c7627.cn
http://superradiance.c7627.cn
http://www.zhongyajixie.com/news/99283.html

相关文章:

  • WordPress智能友链审核北京seo排名厂家
  • 霸州建网站1000个关键词
  • 网站链接加密百度开户代理
  • 创一个网站怎样赚钱百度首页排名优化多少钱
  • 网站如何做支付宝接口站长工具排名分析
  • 南京网站设计公司大全搜索引擎优化工具
  • 自己做网站用什么软件下载seo页面优化技术
  • 潜江做网站如何注册域名
  • 海丰网站建设竞价点击软件工具
  • 设计素材网站排行软文案例短篇
  • 网站建设 数据库discuz论坛seo设置
  • 网站域名实名制河南省郑州市金水区
  • wordpress 手动备份武汉seo
  • wordpress主题手动安装南昌seo报价
  • 网站icp备案怎么做全网推广引流黑科技
  • 凡科网站怎么做站内推广方式
  • 银行党风廉政建设考试网站郑州企业网站优化排名
  • java服务器端开发是网站开发吗怎样去推广自己的网店
  • 深圳 网站开发公司电话3seo
  • 网站改版建设的目的太原网站建设开发
  • 做网站的流程北京seo推广外包
  • 优购物官方网站app网页优化怎么做
  • 做网站推广有啥活动百度快速排名培训
  • 聊城高端网站建设报价本周时事新闻概要10条
  • 网站开发实训报告模板泉州百度seo公司
  • 去哪里做网站安全等级保护级别我为什么不建议年轻人做销售
  • 这种资源网站怎么做才赚钱海南百度推广公司
  • 互联网上班是干嘛的网站seo哪家好
  • 汕头网站建设推广费用适合30岁短期培训班
  • 行业协会网站建设方案广东疫情防控措施