fix(zn-module-smartfactory): 修复处理组查询语句中的时间字段错误
- 将 STR_TO_DATE(c.date_str, '%Y-%m-%d') 中的表别名从 c 修改为 a- 修复了查询语句中创建时间条件的错误
This commit is contained in:
parent
6f2f691267
commit
018604a735
@ -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' ) >= #{vo.createTime[0]}
|
||||
and STR_TO_DATE( a.date_str, '%Y-%m-%d' ) >= #{vo.createTime[0]}
|
||||
</if>
|
||||
<if test="vo.createTime[1] != null">
|
||||
and STR_TO_DATE( a.date_str, '%Y-%m-%d' ) <= #{vo.createTime[1]}
|
||||
|
Loading…
Reference in New Issue
Block a user