当前位置:网站首页>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>
边栏推荐
- Link aggregation based on team mechanism
- Getting started with postman -- environment variables and global variables
- Day 9 HomeWrok-ClassHierarchyAnalysis
- 抓包整理外篇——————autoResponder、composer 、statistics [ 三]
- 浅析 Ref-NeRF
- 请教大家一个问题,用人用过flink sql的异步io关联MySQL中的维表吗?我按照官网设置了各种
- 9 pyqt5 qscrollarea scroll area and qscrollbar scroll bar
- C程序设计的初步认识
- Strange way of expressing integers (expanding Chinese remainder theorem)
- Baohong industry | good habits that Internet finance needs to develop
猜你喜欢
【愚公系列】2022年7月 Go教学课程 002-Go语言环境安装
Capturing and sorting out external articles -- autoresponder, composer, statistics [III]
No more! Technical team members resign collectively
Use nodejs+express+mongodb to complete the data persistence project (with modified source code)
Hcie security Day11: preliminarily learn the concepts of firewall dual machine hot standby and vgmp
Haven't expressed the artifact yet? Valentine's Day is coming. Please send her a special gift~
"Designer universe" APEC safety and health +: environmental protection Panda "xiaobaobao" Happy Valentine's Day 2022 | ChinaBrand | Asia Pacific Economic media
APEC industry +: father of the king of the ox mill, industrial Internet "king of the ox mill anti-wear faction" Valentine's Day greetings | Asia Pacific Economic media | ChinaBrand
Selenium has three waiting methods (forced waiting, implicit waiting, and display waiting)
9 pyqt5 qscrollarea scroll area and qscrollbar scroll bar
随机推荐
同花顺开户注册安全靠谱吗?有没有风险的?
Set, weakset, map, weakmap in ES6
Last week's content review
The "boss management manual" that is wildly spread all over the network (turn)
Basic number theory -- Chinese remainder theorem
flink sql-client 退出,表就会被清空怎么办?
Transformer structure analysis and the principle of blocks in it
MySQL——规范数据库设计
Refer to some books for the distinction between blocking, non blocking and synchronous asynchronous
一台服务器最大并发 tcp 连接数多少?65535?
Monkey/ auto traverse test, integrate screen recording requirements
9 pyqt5 qscrollarea scroll area and qscrollbar scroll bar
浅析 Ref-NeRF
JS three families
Software testing skills, JMeter stress testing tutorial, obtaining post request data in x-www-form-urlencoded format (24)
Discussion Net legacy application transformation
Visiontransformer (I) -- embedded patched and word embedded
Etcd 基于Raft的一致性保证
Quickly distinguish slices and arrays
leetcode-540. A single element in an ordered array