河道水情监测详细数据修改
parent
f9b5d33247
commit
65e68706e6
|
|
@ -99,10 +99,10 @@ public interface AttResBaseMapper extends BaseMapper<AttResBase> {
|
|||
@Select("""
|
||||
<script>
|
||||
select
|
||||
<if test="obj.type == 1 ">
|
||||
<if test="type == 1 ">
|
||||
t.z from public.st_river_r t
|
||||
</if>
|
||||
<if test="obj.type == 2">
|
||||
<if test="type == 2">
|
||||
t.rz from public.st_rsvr_r t
|
||||
</if>
|
||||
where t.stcd = #{stcd} and t.tm = #{dateTime}
|
||||
|
|
@ -182,17 +182,11 @@ public interface AttResBaseMapper extends BaseMapper<AttResBase> {
|
|||
|
||||
@Select("""
|
||||
<script>
|
||||
select t.tm,
|
||||
<if test="type == 1">
|
||||
t.z from public.st_river_r_real t
|
||||
</if>
|
||||
<if test="type == 2">
|
||||
t.rz as z from public.st_rsvr_r_real t
|
||||
</if>
|
||||
select t.tm,t.z from public.st_river_r_real t
|
||||
where t.stcd = #{stcd}
|
||||
order by t.TM desc limit 1
|
||||
</script>
|
||||
""")
|
||||
AttRvMonitorVo latestRz(@Param("stcd") String stcd, @Param("type") Integer type);
|
||||
AttRvMonitorVo newRz(@Param("stcd") String stcd);
|
||||
|
||||
}
|
||||
|
|
@ -76,4 +76,12 @@ public interface StStbprpBMapper extends BaseMapper<StStbprpB> {
|
|||
</script>
|
||||
""")
|
||||
List<StStatusVo> imgList();
|
||||
|
||||
@Select("""
|
||||
<script>
|
||||
SELECT st.stcd,st.stnm FROM st_stbprp_b st
|
||||
WHERE st.stcd in (select distinct(stcd) from st_stbprp_b_elem where elem ='drp')
|
||||
</script>
|
||||
""")
|
||||
List<StStatusVo> rainList();
|
||||
}
|
||||
|
|
@ -120,7 +120,7 @@ public class RiverWaterService {
|
|||
BeanUtils.copyProperties(stPptnDetailsVo,vo,AttRvMonitorDetailVo.class);
|
||||
|
||||
//最新水位
|
||||
AttRvMonitorVo monitorVo = attRvBaseMapper.latestRz(stcd,2);
|
||||
AttRvMonitorVo monitorVo = attRvBaseMapper.newRz(stcd);
|
||||
if(monitorVo == null){
|
||||
return vo;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -111,7 +111,7 @@ public class StStbprpBService extends ServiceImpl<StStbprpBMapper, StStbprpB>
|
|||
}
|
||||
|
||||
public List<StStatusVo> rainList() {
|
||||
return this.baseMapper.realRainList();
|
||||
return this.baseMapper.rainList();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue