fix(pbom): 修复pbom正式表搜索时间范围不生效的问题
This commit is contained in:
parent
2e3e1221a5
commit
f030e56db5
|
|
@ -118,8 +118,14 @@
|
||||||
<if test=" (query.materialNo== null || query.materialNo=='' ) and (query.drawingNo== null || query.drawingNo=='')">
|
<if test=" (query.materialNo== null || query.materialNo=='' ) and (query.drawingNo== null || query.drawingNo=='')">
|
||||||
and root_is=1
|
and root_is=1
|
||||||
</if>
|
</if>
|
||||||
<if test="query.startDate== null">
|
<if test="(query.startDate==null || query.startDate=='') and (query.endDate==null || query.endDate=='')">
|
||||||
and release_time > DATE_SUB(release_time, INTERVAL 4 DAY)
|
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 < DATE_SUB(#{query.endDate}, INTERVAL -1 DAY)
|
||||||
</if>
|
</if>
|
||||||
<if test="query.facCode!= null and query.facCode!=''">
|
<if test="query.facCode!= null and query.facCode!=''">
|
||||||
and fac_code = #{query.facCode}
|
and fac_code = #{query.facCode}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue