当前位置:网站首页>Internship: business process introduction
Internship: business process introduction
2022-06-28 00:25:00 【ahyo】
One . What is? AbstractWrapper
QueryWrapper(LambdaQueryWrapper) and UpdateWrapper(LambdaUpdateWrapper) Parent class of
Used to generate sql Of where Conditions , entity Properties are also used to generate sql Of where Conditions
Be careful : entity Generated where Conditions and Use each api Generated where The condition has no associated behavior
Wrapper:
Wrapper : Conditionally construct abstract classes , Top parent class , Provided in an abstract class 4 A way
AbstractWrapper : Used to encapsulate query conditions , Generate sql Of where Conditions
AbstractLambdaWrapper : Lambda Grammar use Wrapper Unified processing and parsing lambda obtain column.
LambdaQueryWrapper : You can see that the name is used for Lambda Query used by syntax Wrapper
LambdaUpdateWrapper : Lambda Update package Wrapper
QueryWrapper : Entity Object encapsulates the operation class , Not with lambda grammar
UpdateWrapper : Update Conditional encapsulation , be used for Entity Object update operation
Besides , understand MyBatis The use of is not enough Enterprises use more MyBaits-plus, So I went to the official documents to check the usage of relevant classes and methods .
Mybatis-plus Tool class ——SimpleQuery Tool class
explain :
Yes selectList The result of the query is Stream Stream has some encapsulation , So that it can return some specified results , It's simple api Call to
The corresponding entity has been injected into the project BaseMapper
Please refer to : The test case (opens new window)
For the following parameters peeks, The type of Consumer..., You can stack operations all the way back, such as :List<Long> ids = SimpleQuery.list(Wrappers.lambdaQuery(), Entity::getId, System.out::println, user -> userNames.add(user.getName()));
Be familiar with the business process of the company :
1、 Familiar with database table structure and project code , First write an interface by yourself
2、 According to the interface document Interface adjustment
Then I learned from my further practice that ——swagger and MyBatis-plus You need to learn to understand .
Table structure Is the field name and its data type It has nothing to do with the availability of data .
边栏推荐
猜你喜欢
![[untitled]](/img/e4/7c65c6823559b8501a1777cc4eb7ba.jpg)
[untitled]

MySQL企业级参数调优实践分享

MongoDB-在windows电脑本地安装一个mongodb的数据库

Eliminate gaps around El image images

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

Sword finger offer 61 Shunzi in playing cards

Arduino UNO通过电容的直接检测实现简易触摸开关

The limits of Technology (11): interesting programming
Does the subscription of Siyuan notes stop deleting cloud data directly?

MySQL分表查询之Merge存储引擎实现
随机推荐
Count prime [enumeration - > space for time]
It supports deleting and updating the priority queue of any node
Deployment and test of crtmp live video server
CharSequence初探
SQL reported an unusual error, which confused the new interns
Summary of wuenda's machine learning course (14)_ Dimensionality reduction
2022 PMP project management examination agile knowledge points (3)
[paper reading | deep reading] sdne:structural deep network embedding
At the beginning of reading English literature, I would like to ask you how you should read it in the first place?
供应链高效管理供应商
Scu| gait switching and target navigation of micro swimming robot through deep reinforcement learning
Is it safe for Huatai Securities to open an account online?
Alchemy (3): how to do a good job in interfacing a business process
SQL报了一个不常见的错误,让新来的实习生懵了
CRTMP视频直播服务器部署及测试
The Internet industry has derived new technologies, new models and new types of industries
Squid代理服务器(缓存加速之Web缓存层)
Startup and shutdown of Oracle Database
Translation (4): matching rules for automatic text completion
Comprehensive evaluation of free, easy-to-use and powerful open source note taking software