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

旅游网站设计源码pc端网游排行榜前十名

旅游网站设计源码,pc端网游排行榜前十名,溧阳网站开发,什么网站可以做期刊封面需求 得到树结构数据也可以用lambda表达式也行#xff0c;也可以直接循环递归也行#xff0c;本文采用的是直接在Mybatis层得到结果#xff0c;各有各的优势。 代码 1、实体类 Data public class CourseChapterVO implements Serializable {private static final long s…需求 得到树结构数据也可以用lambda表达式也行也可以直接循环递归也行本文采用的是直接在Mybatis层得到结果各有各的优势。 代码 1、实体类 Data public class CourseChapterVO implements Serializable {private static final long serialVersionUID -67718827554034368L;/*** 主键ID*/private Integer id;/*** 课程ID*/private Integer courseId;/*** 课程章节名称*/private String chapterName;/*** 父ID*/private Integer chapterParent;/*** 层级*/private Integer chapterLevel;JsonInclude(JsonInclude.Include.NON_EMPTY) //当children为空时不返回 private ListCourseChapterVO children;}2、mapper.xml resultMap typecom.ruoyi.manager.vo.CourseChapterVO idCourseChapterMap2result propertyid columnid jdbcTypeINTEGER/result propertycourseId columncourse_id jdbcTypeINTEGER/result propertychapterName columnchapter_name jdbcTypeVARCHAR/result propertychapterParent columnchapter_parent jdbcTypeINTEGER/result propertychapterLevel columnchapter_level jdbcTypeINTEGER/collection propertychildren ofTypecom.ruoyi.manager.vo.CourseChapterVO columnid selectselectListTree2//resultMapselect idselectListTree1 resultMapCourseChapterMap2select id , course_id, chapter_name, chapter_parent, chapter_levelfrom course_chapter where chapter_parent 0 /selectselect idselectListTree2 resultMapCourseChapterMap2select id , course_id, chapter_name, chapter_parent, chapter_level from course_chapter where chapter_parent #{id}/select3、mapper.java ListCourseChapterVO selectListTree1(CourseChapter courseChapter);4、serviceImpl.java Overridepublic ListCourseChapterVO queryAll(CourseChapter courseChapter) {return this.courseChapterMapper.selectListTree1(courseChapter);}5、service.java ListCourseChapterVO queryAll(CourseChapter courseChapter);6、controller.java GetMapping(list)public R queryAll(CourseChapter courseChapter) {return R.data(this.courseChapterService.queryAll(courseChapter));}7、实现效果 {msg: ,code: 0,data: [{id: 1,courseId: 5,chapterName: 第一章节学习,chapterParent: 0,chapterLevel: 1,children: [{id: 2,courseId: 5,chapterName: 第一章节学习子1,chapterParent: 1,chapterLevel: 2},{id: 3,courseId: 5,chapterName: 第一章节学习子2,chapterParent: 1,chapterLevel: 2},{id: 4,courseId: 5,chapterName: 第一章节学习子3,chapterParent: 1,chapterLevel: 2}]},{id: 5,courseId: 5,chapterName: 第二章节学习,chapterParent: 0,chapterLevel: 1,children: [{id: 6,courseId: 5,chapterName: 第二章节学习子,chapterParent: 5,chapterLevel: 2,children: [{id: 9,courseId: 5,chapterName: 第二章节学习子1子1,chapterParent: 6,chapterLevel: 3}]},{id: 7,courseId: 5,chapterName: 第二章节学习子1,chapterParent: 5,chapterLevel: 2},{id: 8,courseId: 5,chapterName: 第二章节学习子2,chapterParent: 5,chapterLevel: 2}]},{id: 10,courseId: 5,chapterName: 第三章节学习gfdgdf,chapterParent: 0,chapterLevel: 1}] }
http://www.dnsts.com.cn/news/175023.html

相关文章:

  • 中国企业公司网站建设洛阳最新通告今天
  • flash网站源码带后台温州网站上排名
  • wordpress建站好吗宜宾汽车网站建设
  • 黔东南网站设计公司怎么看百度指数
  • 中国建设领域专业人员网站做的网站浏览器提示不安全问题
  • 扬州网站建设费用潍坊滨海开发区建设局网站
  • 做外贸要看哪些网站网站建设 虚拟化
  • 网站推广一般办法江西省赣州市有什么好玩的地方
  • 凡科建站电话咨询传奇来了网页版
  • 域名网站可以做多个品牌产品吗做雕塑设计的网站
  • 做网站和APP需要注册公司吗考网站开发工程师
  • 外贸网站如何做推广是什么wordpress 国外 服务器
  • wordpress站内信厦门网站建站
  • 新手做网站教程万互网站建站
  • 小学微机作业做网站三亚兼职招聘信息网站
  • 网站只做wordpress的php用什么版本好
  • 电影推荐网站开发上海装修公司排名前30
  • 移动端网站开发教程wordpress主题摄影
  • 如何制作购物网站广东近期新闻
  • 怎样使用模板建立网站做奖杯的企业网站
  • 自动化项目外包平台兰州网站seo分析
  • 做网站公司融资多少同城推广平台有哪些
  • 网站建设网站源码做外贸的网站主要有哪些
  • 做网站需要好多钱中国民政网站医院标准化建设
  • 大学生怎么做网站成都户外网站建设
  • 企业网站的设计与实现论文锡林郭勒盟网站建设
  • pc网站手机网站app药材网网站技术建设
  • 如何装修公司网站重庆网站建设网搜科技
  • 山东省建设工会网站域名申请的理由和用途
  • 旅游网站开发外文翻译秦皇岛住建部官网