master
parent
d7fddda58c
commit
cac3a422ab
|
|
@ -462,6 +462,9 @@ public class RainBasinDivisionService {
|
|||
public StPptnRReal maxRain(StPptnSo stPptnSo) {
|
||||
StPptnRReal stPptnRReal = new StPptnRReal();
|
||||
List<StPptnVo> stPptnVos = realRainMapper.queryStPptnPerHourByStcdAndStartTimeAndEndTime(stPptnSo.getStcd(), stPptnSo.getStartTime(), stPptnSo.getEndTime());
|
||||
if (stPptnVos == null || stPptnVos.isEmpty()) {
|
||||
return null;
|
||||
}
|
||||
stPptnRReal.setH1(stPptnVos.stream().max(Comparator.comparing(StPptnVo::getSumDrp)).get().getSumDrp());
|
||||
Collections.reverse(stPptnVos);
|
||||
List<Integer> list = Arrays.asList(3, 6, 12);
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
<select id="listRelated" resultType="com.gunshi.project.xyt.model.StWaterRReal">
|
||||
SELECT stb.stcd, stb.sttp, t.tm, t.q, t.v
|
||||
FROM public.st_stbprp_b stb
|
||||
LEFT JOIN public.st_water_r_real t ON t.stcd = stb.stcd
|
||||
JOIN public.st_water_r_real t ON t.stcd = stb.stcd
|
||||
<where>
|
||||
stb.sttp in ('QQ', 'PQ')
|
||||
</where>
|
||||
|
|
|
|||
Loading…
Reference in New Issue