Skip to content

Commit 6306d3b

Browse files
juzi214032colorful3
authored andcommitted
fix: 修复行为日志搜索全部人员无结果的 bug
1 parent 23a87e4 commit 6306d3b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ target/
44
!**/src/main/**
55
!**/src/test/**
66
**/target/
7+
config/
78

89
**.DS_Store
910

src/main/resources/mapper/LogMapper.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<select id="searchLogsByUsernameAndKeywordAndRange" resultType="io.github.talelin.latticy.model.LogDO">
3333
SELECT l.* FROM lin_log l
3434
WHERE l.delete_time IS NULL
35-
<if test="name != null">
35+
<if test="name != ''">
3636
AND l.username=#{name}
3737
</if>
3838
<if test="start !=null and end !=null">

0 commit comments

Comments
 (0)