当前位置:网站首页>Final summary of addition, deletion, modification and query - 2.1 (single table - addition, deletion, modification and query)
Final summary of addition, deletion, modification and query - 2.1 (single table - addition, deletion, modification and query)
2022-06-12 03:03:00 【Men should be calm, boiling water will only evaporate】
One 、 increase insert( New data / Put in storage )
1、 law
All are The user submits in the browser form The form data Encapsulated in the js Object to pass parameters , stay controller Layer connection (user) The object is connected to
Be careful :1、sql The statement did not where Conditions ( New data none id, Only after the addition is completed id You can use )
2、 No return value ,service Layer without return
2、 Different frame writing
Multiple where Conditions :controller Layer encapsulates it as an object (user) coming
1)mybatis frame
service Layer interface
void saveUser(User user);
service Layer interface implementation class
@Override
public void saveUser(User user) {
user.setPassword(md5Pass)
.setStatus(true)
.setCreated(date)
.setUpdated(date);
userMapper.saveUser(user);
}1> How to write the mapping file
mapper Layer interface
边栏推荐
- errno: -4091, syscall: ‘listen‘, address: ‘::‘, port: 8000
- 架构入门讲解 - 谁动了我的蛋糕
- Function templatesfunction templates
- Geforce GTX 2050/2080/3090/a6000 auto install NVIDIA graphics driver
- laravel 8 选用 jwt 进行接口验证
- 2020-12-07
- What is the difference between the gin framework of golang and the various methods of receiving parameters and various bindings?
- What are the solutions across domains?
- [digital signal processing] correlation function (power signal | cross correlation function of power signal | autocorrelation function of power signal)
- oracle之模式对象
猜你喜欢

Graduation design of fire hydrant monitoring system --- thesis (add the most comprehensive hardware circuit design - > driver design - > Alibaba cloud Internet of things construction - > Android App D

Query the duplicate values of multiple fields in the database, output the number, and add them.

cupp字典生成工具(同类工具还有crunch)

Hypergraph tilted data is merged into root node and transferred to 3dfiles

errno: -4078, code: ‘ECONNREFUSED‘, syscall: ‘connect‘, address: ‘127.0.0.1‘, port: 3306; Postman error

I2C protocol overview

Maya foreground rendering plug-in Mel scripting tool

Introduce the functions of the new project aleo

Application of ankery anti shake electric products in a chemical project in Hebei

Application of ard3m motor protector in coal industry
随机推荐
Maya foreground rendering plug-in Mel scripting tool
Addition and multiplication of large integers;
Wechat applet project example - renju for two
余压监控系统在高层民用建筑的应用
Selection (046) - what is the output of the following code?
【鸿蒙】 使用定时器做一个简单的抢红包小游戏
安科瑞抗晃电产品在河北某化工项目的应用
[point cloud compression] variable image compression with a scale hyperprior
How to use DAO to build a knowledge database with collective wisdom and sustainable incentive mechanism
【点云压缩】Variational Image Compression with A Scale Hyperprior
I2C协议概述
The program actively carries out telephone short message alarm, and customizes telephone, short message and nail alarm notifications
Requirements and business model analysis requirements 13 data modeling
MySQL partition table create delete modify view
Quelles sont les solutions dans tous les domaines?
[digital signal processing] correlation function (power signal | cross correlation function of power signal | autocorrelation function of power signal)
2020-12-12
Unity3d ugui translucent or linear gradient pictures display abnormally (blurred) problem solving (color space mismatch)
Getting started with RPC
2020-12-17