当前位置:网站首页>internship:业务流程初识
internship:业务流程初识
2022-06-27 21:50:00 【ahyo】
一.什么是AbstractWrapper
QueryWrapper(LambdaQueryWrapper) 和 UpdateWrapper(LambdaUpdateWrapper) 的父类
用于生成 sql 的 where 条件, entity 属性也用于生成 sql 的 where 条件
注意: entity 生成的 where 条件与 使用各个 api 生成的 where 条件没有任何关联行为
Wrapper:
Wrapper : 条件构造抽象类,最顶端父类,抽象类中提供4个方法
AbstractWrapper : 用于查询条件封装,生成 sql 的 where 条件
AbstractLambdaWrapper : Lambda 语法使用 Wrapper统一处理解析 lambda 获取 column。
LambdaQueryWrapper :看名称也能明白就是用于Lambda语法使用的查询Wrapper
LambdaUpdateWrapper : Lambda 更新封装Wrapper
QueryWrapper : Entity 对象封装操作类,不是用lambda语法
UpdateWrapper : Update 条件封装,用于Entity对象更新操作
此外,明白MyBatis的运用还不够 企业用得更多的是MyBaits-plus,因此又去官方文档查阅了相关的类和方法的用法。
Mybatis-plus 工具类——SimpleQuery 工具类
说明:
对selectList查询后的结果用Stream流进行了一些封装,使其可以返回一些指定结果,简洁了api的调用
需要项目中已注入对应实体的BaseMapper
使用方式见: 测试用例(opens new window)
对于下方参数peeks,其类型为Consumer...,可一直往后叠加操作例如:List<Long> ids = SimpleQuery.list(Wrappers.lambdaQuery(), Entity::getId, System.out::println, user -> userNames.add(user.getName()));
初步熟悉公司业务流程需要:
1、熟悉数据库表结构和项目代码,先自己模仿写一个接口
2、按照接口文档 调整接口
继而往后的深入实习了解到——swagger和MyBatis-plus 需要学习了解。
表结构 就是字段名及其数据类型 和有无数据信息并无关系。
边栏推荐
- Feign implements path escape through custom annotations
- How to use the apipost script - global variables
- [AI application] detailed parameters of NVIDIA geforce RTX 3060
- HCIP/HCIE Routing&Switching / Datacom备考宝典系列(十九)PKI知识点全面总结(公钥基础架构)
- What are the ways to combine the points system with marketing activities
- An analysis of C language functions
- RNA-seq入门实战(一):上游数据下载、格式转化和质控清洗
- How to quote Chinese documents when writing a foreign language?
- [PCL self study: pclplotter] pclplotter draws data analysis chart
- Eliminate gaps around El image images
猜你喜欢

Zero foundation self-study SQL course | if function

Transmitting and receiving antenna pattern

免费、好用、强大的开源笔记软件综合评测

MYSQL的下载与配置安装
![[PCL self study: Segmentation3] PCL based point cloud segmentation: region growth segmentation](/img/9e/f08ce0729c89b0205c0ac47c523ad7.png)
[PCL self study: Segmentation3] PCL based point cloud segmentation: region growth segmentation

Zero foundation self-study SQL course | complete collection of date functions in SQL

本地可视化工具连接阿里云centOS服务器的redis

Webserver flow chart -- understand the calling relationship between webserver modules
![[microservices sentinel] sentinel data persistence](/img/9f/2767945db99761bb35e2bb5434b44d.png)
[microservices sentinel] sentinel data persistence
![Using two stacks to implement queues [two first in first out is first in first out]](/img/de/07297816f1a44d41389bb45d012c80.png)
Using two stacks to implement queues [two first in first out is first in first out]
随机推荐
吴恩达《机器学习》课程总结(13)_聚类
免费、好用、强大的开源笔记软件综合评测
Does the subscription of Siyuan notes stop deleting cloud data directly?
Systematic learning + active exploration is the most comfortable way to get started!
How to use the apipost script - global variables
炼金术(3): 怎样做好1个业务流程的接口对接
内网IP和公网IP的区别及作用
Pat class B 1013
赛尔笔记|视频文本预训练简述
【无标题】
Golang uses Mongo driver operation -- Query (array related)
[AI application] detailed parameters of NVIDIA Tesla v100-pcie-32gb
Matlab基本函数 length函数
How to solve the problem that the browser developed with CeF3 does not support flash
NDSS 2022 received list
At the beginning of reading English literature, I would like to ask you how you should read it in the first place?
Deployment and test of crtmp live video server
MySQL enterprise parameter tuning practice sharing
MySQL read / write separation configuration
[microservices sentinel] sentinel data persistence