当前位置:网站首页>Collections SQL communes
Collections SQL communes
2022-07-03 21:18:00 【Capture d'images】
@valid Méthode de vérification:
Si vous êtes springboot Projets,Il n'est donc pas nécessaire d'introduire,Déjà introduit,Il existe au cœur de web Dans le kit de développement.
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>2.0.5.RELEASE</version>
</dependency>
Si ce n'est pas le cas, springboot Projets,Ensuite, vous pouvez introduire les dépendances suivantes:
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>1.1.0.Final</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>5.4.1.Final</version>
</dependency>
Introduire des annotations entre les classes d'entités
/** Nom */
@NotBlank(message = "Veuillez saisir un nom")
@Length(message = "Les noms ne peuvent pas dépasser {max} Les caractères", max = 10)
public String name;
/** Âge */
@NotNull(message = "Veuillez entrer l'âge")
@Range(message = "La tranche d'âge est {min} À {max} Entre", min = 1, max = 100)
public Integer age;

Informations anormales:
Requête floue plus foreachOpérations par lots:
<select id="searchPrivate" resultType="">
select *
from customer c LEFT JOIN base_user bu ON c.cur_uid = bu.id AND bu.status = 1
<where>
c.del_flag = 0
<if test="param.cusName != null and param.cusName != ''">
and c.cus_name like concat('%',#{
param.cusName},'%')
</if>
<if test="param.cusId != null and param.cusId != ''">
and c.cus_id = #{
param.cusId}
</if>
<if test="param.intentElecStart != null">
and <![CDATA[ c.intent_elec >= #{
param.intentElecStart} ]]>
</if>
<if test="param.intentElecEnd != null">
and <![CDATA[ c.intent_elec <= #{
param.intentElecEnd} ]]>
</if>
<if test="param.cusType != null">
and c.cus_type = #{
param.cusType}
</if>
<if test="null != param.userIdList and param.userIdList.size() > 0">
and c.cur_uid in (
<foreach collection="param.userIdList" item="item" separator=",">
#{
item}
</foreach>
)
</if>
<if test="null != param.cusIds and param.cusIds.size() > 0">
or c.cus_id in (
<foreach collection="param.cusIds" item="item" separator=",">
#{
item}
</foreach>
)
</if>
</where>
order by c.update_time desc
</select>
边栏推荐
- Advanced technology management - how to examine candidates in the interview and increase the entry probability
- JS three families
- 2022-02-15 Daily: 2022 AAAI fellow release
- Go learning notes (4) basic types and statements (3)
- MySQL——JDBC
- Cesiumjs 2022 ^ source code interpretation [7] - Analysis of the request and loading process of 3dfiles
- treevalue——Master Nested Data Like Tensor
- The "boss management manual" that is wildly spread all over the network (turn)
- 技术管理进阶——如何在面试中考察候选人并增大入职概率
- MySQL——规范数据库设计
猜你喜欢

Summary of common operation and maintenance commands

Hcie security Day11: preliminarily learn the concepts of firewall dual machine hot standby and vgmp

运维各常用命令总结

Go learning notes (4) basic types and statements (3)

仿网易云音乐小程序

Hcie security Day10: six experiments to understand VRRP and reliability

Borui data and Sina Finance released the 2021 credit card industry development report

Rhcsa third day operation

"Actbert" Baidu & Sydney University of technology proposed actbert to learn the global and local video text representation, which is effective in five video text tasks

Etcd 基于Raft的一致性保证
随机推荐
Getting started with postman -- environment variables and global variables
大神们,我想发两个广播流1 从mysql加载基础数据,广播出去2 从kafka加载基础数据的变更
Memory analyzer (MAT)
Great gods, I want to send two broadcast streams: 1. Load basic data from MySQL and 2. Load changes in basic data from Kafka
淺析 Ref-NeRF
Après 90 ans, j'ai démissionné pour démarrer une entreprise et j'ai dit que j'allais détruire la base de données Cloud.
Capturing and sorting out external articles -- autoresponder, composer, statistics [III]
Selenium has three waiting methods (forced waiting, implicit waiting, and display waiting)
Brief analysis of ref nerf
Hcie security Day10: six experiments to understand VRRP and reliability
JVM JNI and PVM pybind11 mass data transmission and optimization
2022 melting welding and thermal cutting examination materials and free melting welding and thermal cutting examination questions
Basic preprocessing and data enhancement of image data
Mysql - - Index
2022 safety officer-c certificate examination and safety officer-c certificate registration examination
What should the future of the Internet be like when Silicon Valley employees flee the big factory and rush to Web3| Footprint Analytics
Cesiumjs 2022 ^ source code interpretation [7] - Analysis of the request and loading process of 3dfiles
鹏城杯 WEB_WP
MySQL——JDBC
《ActBERT》百度&悉尼科技大学提出ActBERT,学习全局局部视频文本表示,在五个视频-文本任务中有效!...