解决浸润线查询报错

master
wany 2024-07-29 13:37:07 +08:00
parent 4a5027ab99
commit ceac5601d4
1 changed files with 2 additions and 3 deletions

View File

@ -53,7 +53,7 @@ public interface OsmoticPressRMapper extends BaseMapper<OsmoticPressR> {
<script>
select to_char(t.tm,'YYYY-MM-DD') as tm,t.rz
from public.st_rsvr_r t
where to_char(t.tm, 'HH24:MI:SS') = '08:00:00'
where to_char(t.tm, 'HH24:MI:SS') = '08:00:00' and t.stcd = '716119601'
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.start != null">
and t.tm <![CDATA[>=]]> #{obj.dateTimeRangeSo.start}
</if>
@ -93,14 +93,13 @@ public interface OsmoticPressRMapper extends BaseMapper<OsmoticPressR> {
<script>
select to_char(t.tm,'YYYY-MM-DD HH24:MI:SS') as tm,t.rz
from public.st_rsvr_r t
<where>
where t.stcd = '716119601'
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.start != null">
t.tm <![CDATA[>=]]> #{obj.dateTimeRangeSo.start}
</if>
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.end != null">
and t.tm <![CDATA[<=]]> #{obj.dateTimeRangeSo.end}
</if>
</where>
order by t.tm desc
</script>
""")