提交 3f61b7c7 编写于 作者: NoSubject's avatar NoSubject

Merge branch 'fix/修复后天脚本运行this.statement.execute时带filterList无效的问题' into 'develop'

修复后台执行this.statement.execute带filterList无效的问题

See merge request o2oa/o2oa!2636
......@@ -2703,7 +2703,7 @@ const statement = {
(() => {
if (d.formatType === "numberValue") {
return parseFloat(d.value);
} else if (!["sql", "sqlScript"].includes(format)) {
} else if ( ["dateTimeValue","dateValue","timeValue"].includes( d.formatType ) && !["sql", "sqlScript"].includes(format)) {
const prefix = {dateTimeValue: 'ts', datetimeValue: 'ts', dateValue: 'd', timeValue: 't'}[d.formatType];
return `{${prefix} '${d.value}'}`;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册