解决员工通知公告按关键字查询时的SQL报错

This commit is contained in:
Zhou Mingfa 2024-02-22 11:20:03 +08:00
parent 2c72327c8e
commit caab0040ff

View File

@ -124,7 +124,7 @@
<if test="query.keywords != null and query.keywords !=''"> <if test="query.keywords != null and query.keywords !=''">
AND ( INSTR(t_notice.title,#{query.keywords}) AND ( INSTR(t_notice.title,#{query.keywords})
OR INSTR(t_notice.author,#{query.keywords}) OR INSTR(t_notice.author,#{query.keywords})
OR INSTR(t_notice.documentNumber,#{query.keywords}) OR INSTR(t_notice.document_number,#{query.keywords})
OR INSTR(t_notice.source,#{query.keywords}) OR INSTR(t_notice.source,#{query.keywords})
) )
</if> </if>
@ -182,7 +182,7 @@
<if test="query.keywords != null and query.keywords !=''"> <if test="query.keywords != null and query.keywords !=''">
AND ( INSTR(t_notice.title,#{query.keywords}) AND ( INSTR(t_notice.title,#{query.keywords})
OR INSTR(t_notice.author,#{query.keywords}) OR INSTR(t_notice.author,#{query.keywords})
OR INSTR(t_notice.documentNumber,#{query.keywords}) OR INSTR(t_notice.document_number,#{query.keywords})
OR INSTR(t_notice.source,#{query.keywords}) OR INSTR(t_notice.source,#{query.keywords})
) )
</if> </if>