功能优化:档案模块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>
<if test="keyWord != null and keyWord != ''"> <if test="keyWord != null and keyWord != ''">
and ( and (
doc_name like concat('%', #{keyWord}, '%') or doc_name like concat('%', #{keyWord}, '%')
doc_type like concat('%', #{keyWord}, '%') or or doc_type like concat('%', #{keyWord}, '%')
create_by like concat('%', #{keyWord}, '%') or or create_by like concat('%', #{keyWord}, '%')
) )
</if> </if>
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''"> <if test="startTime != null and startTime != '' and endTime != null and endTime != ''">