fix(pbom): 修复pbom正式表搜索时间范围不生效的问题

This commit is contained in:
曹鹏飞 2024-06-19 16:31:32 +08:00
parent 2e3e1221a5
commit f030e56db5
1 changed files with 8 additions and 2 deletions

View File

@ -118,8 +118,14 @@
<if test=" (query.materialNo== null || query.materialNo=='' ) and (query.drawingNo== null || query.drawingNo=='')">
and root_is=1
</if>
<if test="query.startDate== null">
and release_time > DATE_SUB(release_time, INTERVAL 4 DAY)
<if test="(query.startDate==null || query.startDate=='') and (query.endDate==null || query.endDate=='')">
and release_time > DATE_SUB(release_time, INTERVAL 3 DAY)
</if>
<if test="query.startDate!=null and query.startDate!=''">
AND release_time >= #{query.startDate}
</if>
<if test="query.endDate!=null and query.endDate!=''">
AND release_time &lt; DATE_SUB(#{query.endDate}, INTERVAL -1 DAY)
</if>
<if test="query.facCode!= null and query.facCode!=''">
and fac_code = #{query.facCode}