Merge pull request #7464 from dataease/pr@dev@fix_app-filter

fix: 修复应用记录中无法筛选的问题
This commit is contained in:
王嘉豪 2023-12-29 11:11:28 +08:00 committed by GitHub
commit 7fe0e5c4d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 7 deletions

View File

@ -66,9 +66,11 @@
)
</if>
) logInfo
<where>
<if test="applyTime != null and applyTime.length > 1">
and (apply_time between #{applyTime.[0]} and #{applyTime.[1]}
and (logInfo.apply_time between #{applyTime.[0]} and #{applyTime.[1]})
</if>
</where>
<choose>
<when test="orders!=null and orders.size > 0">

View File

@ -92,7 +92,7 @@ export default {
max = +max + 24 * 3600 * 1000
}
conditions.push({
field: 'apply_time',
field: 'applyTime',
operator: 'between',
value: [+min, +max]
})

View File

@ -420,11 +420,13 @@ export default {
return
}
const param = {
orders: formatOrders(this.orderConditions),
conditions: [...this.cacheCondition]
orders: formatOrders(this.orderConditions)
}
if (this.cacheCondition && this.cacheCondition.length > 0) {
param['applyTime'] = this.cacheCondition[0].value
}
if (this.nickName) {
param.keyWord = this.nickName
param.keyword = this.nickName
}
if (this.appTemplateId) {
param.conditions.push({