1. 修复sql脚本条件判断bug

topo_dev
xueqingkun 10 months ago
parent c9cc3b8a3e
commit 9405ccb245

@ -104,13 +104,13 @@
and mi.name like concat('%', #{query.indexName}, '%') and mi.name like concat('%', #{query.indexName}, '%')
</if> </if>
<choose> <choose>
<when test="query.indexResult != null and query.indexResult == 0"> <when test="query.indexResult != '' and query.indexResult == 0">
and mir.index_result is null and mir.index_result is null
</when> </when>
<when test="query.indexResult != null and query.indexResult == 1"> <when test="query.indexResult !='' and query.indexResult == 1">
and mir.index_result = 'true' and mir.index_result = 'true'
</when> </when>
<when test="query.indexResult != null and query.indexResult == 2"> <when test="query.indexResult !='' and query.indexResult == 2">
and mir.index_result = 'false' and mir.index_result = 'false'
</when> </when>
</choose> </choose>

Loading…
Cancel
Save