fix(zn-module-smartfactory): 修复处理组查询语句中的时间字段错误

- 将 STR_TO_DATE(c.date_str, '%Y-%m-%d') 中的表别名从 c 修改为 a- 修复了查询语句中创建时间条件的错误
This commit is contained in:
aikai 2025-07-03 11:26:04 +08:00
parent f348b8ff4a
commit 6177b22a7e

View File

@ -107,7 +107,7 @@
</if>
<if test="vo.createTime != null and vo.createTime.length > 0">
<if test="vo.createTime[0] != null">
and STR_TO_DATE( c.date_str, '%Y-%m-%d' ) &gt;= #{vo.createTime[0]}
and STR_TO_DATE( a.date_str, '%Y-%m-%d' ) &gt;= #{vo.createTime[0]}
</if>
<if test="vo.createTime[1] != null">
and STR_TO_DATE( a.date_str, '%Y-%m-%d' ) &lt;= #{vo.createTime[1]}