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')
|
AND D.STRDT <= TO_DATE(#{endTime}, 'yyyy-mm-dd hh24:mi:ss')
|
||||||
</if>
|
</if>
|
||||||
<if test="stationCodes != null and stationCodes.size() > 0">
|
<if test="stationCodes != null and stationCodes.size() > 0">
|
||||||
AND E.STCD IN
|
AND D.STCD IN (
|
||||||
<foreach collection="stationCodes" item="code" open="(" separator="," close=")">
|
SELECT F2.STCD
|
||||||
#{code}
|
FROM SD_FPSS_B_H F2
|
||||||
</foreach>
|
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>
|
</if>
|
||||||
ORDER BY H.ORDER_INDEX ASC,E.ORDER_INDEX ASC, D.TM DESC, D.ROW_INDEX ASC
|
ORDER BY H.ORDER_INDEX ASC,E.ORDER_INDEX ASC, D.TM DESC, D.ROW_INDEX ASC
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user