Mybatis Trim标签用法简单介绍
作者:heidyxlw 时间:2021-10-11 03:04:00
废话不多说了,直接给大家贴代码了,具体代码如下所示:
<update id="updateAuditStateAndType" parameterType="Java.util.Map">
update social_building_info
<trim prefix="set" prefixOverrides=",">
<if test="auditState != null and auditState != ''">
,audit_state = #{auditState}
</if>
<if test="auditType != null and auditType != ''">
,audit_type = #{auditType}
</if>
where id=#{buildId}
</trim>
</update>
注意:prefix要和prefixOverrides一起使用, suffix要和suffixOverrides一起使用
以上所述是小编给大家介绍的Mybatis Trim标签用法网站的支持!
来源:http://blog.csdn.net/heidyxlw/article/details/72763212
标签:mybatis,trim,标签
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
java使用Socket类接收和发送数据
2021-05-26 15:28:47
Springboot集成graylog及配置过程解析
2023-06-18 17:15:02
![](https://img.aspxhome.com/file/2023/7/64167_0s.png)
如何创建SpringBoot项目
2022-03-26 16:06:37
![](https://img.aspxhome.com/file/2023/7/68167_0s.png)
基于Spring Mvc实现的Excel文件上传下载示例
2022-01-22 02:02:56
C#泛型实例详解
2021-09-11 04:21:35
![](https://img.aspxhome.com/file/2023/1/69231_0s.png)
SpringBoot集成elasticsearch使用图文详解
2021-06-06 16:12:47
![](https://img.aspxhome.com/file/2023/0/70490_0s.png)
Java JDK11基于嵌套的访问控制的实现
2021-07-11 10:02:05
java搜索无向图中两点之间所有路径的算法
2023-11-10 09:28:26
Mybatis配置之<typeAliases>别名配置元素解析
2023-08-02 03:09:54
![](https://img.aspxhome.com/file/2023/7/60447_0s.png)
通过Docker启动Solace并在Spring Boot通过JMS整合Solace的操作方法
2023-07-11 09:52:28
![](https://img.aspxhome.com/file/2023/7/57507_0s.png)
C#中的值传递和引用传递详细解析
2022-03-20 20:11:02
Java设计模式之命令模式_动力节点Java学院整理
2023-12-11 13:32:03
![](https://img.aspxhome.com/file/2023/3/69913_0s.png)
IDEA导出jar打包成exe应用程序的小结
2023-06-22 04:02:46
![](https://img.aspxhome.com/file/2023/2/71192_0s.png)
JDK1.8中ArrayList是如何扩容的
2023-01-20 19:04:47
![](https://img.aspxhome.com/file/2023/0/62700_0s.png)
JVM(Java虚拟机)简介(动力节点Java学院整理)
2023-11-25 06:12:12
![](https://img.aspxhome.com/file/2023/7/58867_0s.png)
Mybatis获取参数值和查询功能的案例详解
2023-02-09 13:25:14
Java线程安全中的原子性浅析
2021-09-06 16:08:13
![](https://img.aspxhome.com/file/2023/0/67960_0s.png)
Java调用Oracle存储过程详解
2022-09-09 03:19:45
详解Lombok安装及Spring Boot集成Lombok
2023-11-28 23:39:55
![](https://img.aspxhome.com/file/2023/9/60369_0s.png)
Java实现Web应用中的定时任务(实例讲解)
2022-08-12 23:40:02