fix(缺陷管理): 高级搜索日期类型字段筛选问题

--bug=1048327 --user=宋昌昌 【缺陷管理】缺陷-高级搜索-jira截止日期字段-筛选不到数据 https://www.tapd.cn/55049933/s/1601908
This commit is contained in:
song-cc-rock 2024-10-30 15:19:42 +08:00 committed by Craftsman
parent e2d9bc860e
commit a073813804
1 changed files with 9 additions and 2 deletions

View File

@ -122,6 +122,13 @@
<property name="column" value="value"/>
</include>
</when>
<when test="condition.customFieldType != null and
(condition.customFieldType == 'DATE' or condition.customFieldType == 'DATETIME')">
<include refid="io.metersphere.system.mapper.BaseMapper.condition">
<property name="condition" value="condition"/>
<property name="column" value="UNIX_TIMESTAMP(`value`) * 1000"/>
</include>
</when>
<otherwise>
<include refid="io.metersphere.system.mapper.BaseMapper.condition">
<property name="condition" value="condition"/>
@ -263,10 +270,10 @@
${column} between #{condition.value[0]} and #{condition.value[1]}
</when>
<when test="${condition}.operator == 'GT'">
${column} &gt; #{condition.value}
${column} is not null and ${column} != '' and ${column} &gt; #{condition.value}
</when>
<when test="${condition}.operator == 'LT'">
${column} &lt; #{condition.value}
${column} is not null and ${column} != '' and ${column} &lt; #{condition.value}
</when>
<when test="${condition}.operator == 'COUNT_GT'">
JSON_LENGTH(${column}) &gt; #{condition.value}