fix: 优化过鱼历史查询
This commit is contained in:
parent
1e44d6ee4f
commit
9239a23d0d
@ -238,10 +238,15 @@
|
||||
AND D.STRDT <= TO_DATE(#{endTime}, 'yyyy-mm-dd hh24:mi:ss')
|
||||
</if>
|
||||
<if test="stationCodes != null and stationCodes.size() > 0">
|
||||
AND E.STCD IN
|
||||
AND D.STCD IN (
|
||||
SELECT F2.STCD
|
||||
FROM SD_FPSS_B_H F2
|
||||
INNER JOIN SD_ENGINFO_B_H E2 ON F2.RSTCD = E2.STCD
|
||||
WHERE E2.STCD IN
|
||||
<foreach collection="stationCodes" item="code" open="(" separator="," close=")">
|
||||
#{code}
|
||||
</foreach>
|
||||
)
|
||||
</if>
|
||||
ORDER BY H.ORDER_INDEX ASC,E.ORDER_INDEX ASC, D.TM DESC, D.ROW_INDEX ASC
|
||||
</select>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user