File tree Expand file tree Collapse file tree 5 files changed +44
-2
lines changed
debug-tools-idea/src/main/resources/META-INF
debug-tools-test/debug-tools-test-spring-boot-mybatis/src/main
java/io/github/future0923/debug/tools/test/spring/boot/mybatis/mapper Expand file tree Collapse file tree 5 files changed +44
-2
lines changed Original file line number Diff line number Diff line change 4444 <li>修复MacOS切换jdk8与jdk17时dylib无法重新加载的bug</li>
4545 <li>修复使用 ServerPreparedStatement 的无法格式化打印 sql 的bug</li>
4646 <li>修复搜索 url 无法识别 controller 注解放入自定注解中的bug</li>
47- <li>优化搜索 url 返回样式 </li>
47+ <li>增加搜索 url 注释,搜索注释及中文首字母 </li>
4848 <li>增加double shift展示搜索url选项</li>
4949 </ul>
5050 <strong>4.5.1</strong>
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (C) 2024-2025 the original author or authors.
3+ *
4+ * This program is free software: you can redistribute it and/or modify
5+ * it under the terms of the GNU General Public License as published by
6+ * the Free Software Foundation, either version 3 of the License, or
7+ * (at your option) any later version.
8+ *
9+ * This program is distributed in the hope that it will be useful,
10+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
11+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+ * GNU General Public License for more details.
13+ *
14+ * You should have received a copy of the GNU General Public License
15+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
16+ */
17+ package io .github .future0923 .debug .tools .test .spring .boot .mybatis .mapper ;
18+
19+ import lombok .Data ;
20+
21+ /**
22+ * @author future0923
23+ */
24+ @ Data
25+ public class Config {
26+
27+ private String tableName ;
28+
29+ private String age ;
30+
31+ private String id ;
32+ }
Original file line number Diff line number Diff line change @@ -62,6 +62,8 @@ public interface UserMapper {
6262 @ Update ("update dp_user set update_date = #{updateDate} where id = 1" )
6363 void updateDate (@ Param ("updateDate" ) LocalDate updateDate );
6464
65+ void updateUser (@ Param ("config" ) Config config , @ Param ("list" ) List <User > list );
66+
6567 @ SelectProvider (type = UserProvider .class , method = "selectTest" )
6668 List <User > testProvider ();
6769
Original file line number Diff line number Diff line change 55 datasource :
66 debut-tools :
77 driver-class-name : com.mysql.cj.jdbc.Driver
8- url : jdbc:mysql://120.48.104.68:3306/debug-tools?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&
8+ url : jdbc:mysql://120.48.104.68:3306/debug-tools?allowMultiQueries=true& useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&
99 username : debug-tools
1010 password : 123456Aa
1111# debut-tools:
Original file line number Diff line number Diff line change 1212 id, name, age, version
1313 from dp_user
1414 </select >
15+
16+ <update id =" updateUser" >
17+ <foreach collection =" list" item =" item" separator =" ;" >
18+ update ${config.tableName}
19+ set ${config.age} = #{item.age}
20+ where ${config.id} = #{item.id}
21+ </foreach >
22+ </update >
1523</mapper >
You can’t perform that action at this time.
0 commit comments