优化乡镇查询数据
This commit is contained in:
parent
c240fb246a
commit
fd952f9f3b
|
|
@ -110,7 +110,6 @@
|
||||||
a.view002 AS "view002",
|
a.view002 AS "view002",
|
||||||
a.view003 AS "view003",
|
a.view003 AS "view003",
|
||||||
a.view004 AS "view004",
|
a.view004 AS "view004",
|
||||||
a.datatime AS "datatime",
|
|
||||||
a.caveat AS "caveat",
|
a.caveat AS "caveat",
|
||||||
a.view005 AS "view005",
|
a.view005 AS "view005",
|
||||||
a.view006 AS "view006",
|
a.view006 AS "view006",
|
||||||
|
|
@ -199,7 +198,7 @@
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
) t
|
) t
|
||||||
ORDER BY view001 asc ,view002 asc,view004 asc,datatime DESC
|
ORDER BY view001 asc ,view002 asc,view004 asc,view032 DESC
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="findHistoryList" resultType="org.jeecg.modules.heating.entity.HeatanalysisHistory">
|
<select id="findHistoryList" resultType="org.jeecg.modules.heating.entity.HeatanalysisHistory">
|
||||||
|
|
|
||||||
|
|
@ -557,13 +557,15 @@
|
||||||
ORDER BY t1.view002,t1.datatime
|
ORDER BY t1.view002,t1.datatime
|
||||||
</select>
|
</select>
|
||||||
<select id="getStaticNowList" resultType="org.jeecg.modules.heating.entity.Heatanalysis">
|
<select id="getStaticNowList" resultType="org.jeecg.modules.heating.entity.Heatanalysis">
|
||||||
|
select t.*
|
||||||
|
from (
|
||||||
SELECT t1.*
|
SELECT t1.*
|
||||||
FROM bl_heatanalysis_${params.startTime} t1
|
FROM bl_heatanalysis_${params.startTime} t1
|
||||||
|
|
||||||
WHERE t1.view002 = #{params.sourceId}
|
WHERE t1.view002 = #{params.sourceId}
|
||||||
AND t1.view004 IS NULL
|
AND t1.view004 IS NULL
|
||||||
ORDER BY t1.datatime
|
ORDER BY t1.datatime desc
|
||||||
limit 24
|
limit 24) t
|
||||||
|
order by t.datatime
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="yunweiPage" resultType="org.jeecg.modules.heating.entity.Heatanalysis">
|
<select id="yunweiPage" resultType="org.jeecg.modules.heating.entity.Heatanalysis">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue