fix(缺陷管理): 高级搜索日期类型字段筛选问题
--bug=1048327 --user=宋昌昌 【缺陷管理】缺陷-高级搜索-jira截止日期字段-筛选不到数据 https://www.tapd.cn/55049933/s/1601908
This commit is contained in:
parent
e2d9bc860e
commit
a073813804
|
@ -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} > #{condition.value}
|
||||
${column} is not null and ${column} != '' and ${column} > #{condition.value}
|
||||
</when>
|
||||
<when test="${condition}.operator == 'LT'">
|
||||
${column} < #{condition.value}
|
||||
${column} is not null and ${column} != '' and ${column} < #{condition.value}
|
||||
</when>
|
||||
<when test="${condition}.operator == 'COUNT_GT'">
|
||||
JSON_LENGTH(${column}) > #{condition.value}
|
||||
|
|
Loading…
Reference in New Issue