功能优化:档案模块SQL条件优化 - 调整ArchivesMapper.xml中关键词搜索条件的格式,增强SQL语句可读性

This commit is contained in:
syruan 2025-06-13 17:12:20 +08:00
parent e62d952468
commit d6730c9bf8
1 changed files with 3 additions and 3 deletions

View File

@ -65,9 +65,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</if>
<if test="keyWord != null and keyWord != ''">
and (
doc_name like concat('%', #{keyWord}, '%') or
doc_type like concat('%', #{keyWord}, '%') or
create_by like concat('%', #{keyWord}, '%') or
doc_name like concat('%', #{keyWord}, '%')
or doc_type like concat('%', #{keyWord}, '%')
or create_by like concat('%', #{keyWord}, '%')
)
</if>
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''">