李一帆 2025-07-14 10:03:03 +08:00
parent d7fddda58c
commit cac3a422ab
2 changed files with 4 additions and 1 deletions

View File

@ -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);

View File

@ -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>