当前位置:网站首页>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 .
边栏推荐
- Modern programming languages: zig
- Arduino uno realizes simple touch switch through direct detection of capacitance
- At the beginning of reading English literature, I would like to ask you how you should read it in the first place?
- 一个人可以到几家证券公司开户?开户安全吗
- Promise是什么
- Deployment and test of crtmp live video server
- Mysql database tourism management system_ Jsp+mysql tourism management system based on SSM [easy to understand]
- Does the subscription of Siyuan notes stop deleting cloud data directly?
- 单片机之IIC通信协议「建议收藏」
- 炼金术(9): 简约而不简单,永不停歇的测试 -- always_run
猜你喜欢
MySQL分表查询之Merge存储引擎实现
Local visualization tool connects to redis of Alibaba cloud CentOS server
What is promise
吴恩达《机器学习》课程总结(11)_支持向量机
Squid代理服务器(缓存加速之Web缓存层)
Introduction to data warehouse
MySQL企业级参数调优实践分享
Logging log usage
剑指 Offer 61. 扑克牌中的顺子
HCIP/HCIE Routing&Switching / Datacom备考宝典系列(十九)PKI知识点全面总结(公钥基础架构)
随机推荐
Quickly master grep commands and regular expressions
C语言malloc函数的功能及用法
Comprehensive evaluation of free, easy-to-use and powerful open source note taking software
internship:业务流程初识
什么是cookie,以及v-htm的安全性隐患
Alchemy (1): identify prototype, demo and MVP in project development
Translation (4): matching rules for automatic text completion
After a period of silence, I came out again~
Recyclerview implements grouping effects in a variety of ways
It supports deleting and updating the priority queue of any node
Redis主从复制、哨兵模式、集群的概述与搭建
数据仓库入门介绍
[microservices sentinel] sentinel data persistence
炼金术(1): 识别项目开发中的ProtoType、Demo、MVP
flutter系列之:flutter中的变形金刚Transform
Arduino uno realizes simple touch switch through direct detection of capacitance
Software engineering job design (1): [personal project] implements a log view page
Local visualization tool connects to redis of Alibaba cloud CentOS server
【论文阅读|深读】SDNE:Structural Deep Network Embedding
Msp430f5529 MCU reads gy-906 infrared temperature sensor