解决浸润线查询报错
parent
ceac5601d4
commit
595c96a05e
|
|
@ -95,7 +95,7 @@ public interface OsmoticPressRMapper extends BaseMapper<OsmoticPressR> {
|
||||||
from public.st_rsvr_r t
|
from public.st_rsvr_r t
|
||||||
where t.stcd = '716119601'
|
where t.stcd = '716119601'
|
||||||
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.start != null">
|
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.start != null">
|
||||||
t.tm <![CDATA[>=]]> #{obj.dateTimeRangeSo.start}
|
and t.tm <![CDATA[>=]]> #{obj.dateTimeRangeSo.start}
|
||||||
</if>
|
</if>
|
||||||
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.end != null">
|
<if test="obj.dateTimeRangeSo != null and obj.dateTimeRangeSo.end != null">
|
||||||
and t.tm <![CDATA[<=]]> #{obj.dateTimeRangeSo.end}
|
and t.tm <![CDATA[<=]]> #{obj.dateTimeRangeSo.end}
|
||||||
|
|
@ -109,7 +109,7 @@ public interface OsmoticPressRMapper extends BaseMapper<OsmoticPressR> {
|
||||||
<script>
|
<script>
|
||||||
select t.station_code as stationCode,to_char(t.tm,'YYYY-MM-DD HH24:MI:SS') as tm,t.value
|
select t.station_code as stationCode,to_char(t.tm,'YYYY-MM-DD HH24:MI:SS') as tm,t.value
|
||||||
from public.osmotic_press_r t
|
from public.osmotic_press_r t
|
||||||
where station_code in
|
where t.station_code in
|
||||||
<foreach collection="obj.stationCodes" item="code" separator="," open="(" close=")">
|
<foreach collection="obj.stationCodes" item="code" separator="," open="(" close=")">
|
||||||
#{code}
|
#{code}
|
||||||
</foreach>
|
</foreach>
|
||||||
|
|
@ -128,7 +128,7 @@ public interface OsmoticPressRMapper extends BaseMapper<OsmoticPressR> {
|
||||||
<script>
|
<script>
|
||||||
select t.station_code as stationCode,to_char(t.tm,'YYYY-MM-DD HH24:MI:SS') as tm
|
select t.station_code as stationCode,to_char(t.tm,'YYYY-MM-DD HH24:MI:SS') as tm
|
||||||
from public.osmotic_warn_r t
|
from public.osmotic_warn_r t
|
||||||
where station_code in
|
where t.station_code in
|
||||||
<foreach collection="obj.stationCodes" item="code" separator="," open="(" close=")">
|
<foreach collection="obj.stationCodes" item="code" separator="," open="(" close=")">
|
||||||
#{code}
|
#{code}
|
||||||
</foreach>
|
</foreach>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue