Skip to content

Commit 8020d9d

Browse files
committed
修改注释
1 parent b10bf75 commit 8020d9d

File tree

5 files changed

+44
-2
lines changed

5 files changed

+44
-2
lines changed

debug-tools-idea/src/main/resources/META-INF/plugin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
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 numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+
}

debug-tools-test/debug-tools-test-spring-boot-mybatis/src/main/java/io/github/future0923/debug/tools/test/spring/boot/mybatis/mapper/UserMapper.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

debug-tools-test/debug-tools-test-spring-boot-mybatis/src/main/resources/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ spring:
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:

debug-tools-test/debug-tools-test-spring-boot-mybatis/src/main/resources/mapper/UserMapper.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,12 @@
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>

0 commit comments

Comments
 (0)