fix: 修复应用记录中无法筛选的问题

This commit is contained in:
wangjiahao 2023-12-29 11:10:37 +08:00
parent ddf6915bd9
commit bf95c0c358
3 changed files with 11 additions and 7 deletions

View File

@ -66,9 +66,11 @@
)
</if>
) logInfo
<if test="applyTime != null and applyTime.length > 1">
and (apply_time between #{applyTime.[0]} and #{applyTime.[1]}
</if>
<where>
<if test="applyTime != null and applyTime.length > 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({