Commit b7fc503c authored by gaoliwei's avatar gaoliwei

修改项目评估查询语句

parent c20a8fda
...@@ -16,10 +16,13 @@ ...@@ -16,10 +16,13 @@
bus_project bp bus_project bp
LEFT JOIN energy_count_m ecm ON bp.PRO_ID = ecm.PRO_ID LEFT JOIN energy_count_m ecm ON bp.PRO_ID = ecm.PRO_ID
LEFT JOIN bus_build_tp bbt ON bp.BLD_TP_ID = bbt.BLD_TP_ID LEFT JOIN bus_build_tp bbt ON bp.BLD_TP_ID = bbt.BLD_TP_ID
WHERE <where>
ecm.YEAR = #{year} <if test="year != null and year != '' ">
ecm.YEAR = #{year}
</if>
</where>
GROUP BY GROUP BY
bp.PRO_ID bp.PRO_ID,ecm.YEAR
LIMIT #{start},#{end} LIMIT #{start},#{end}
</select> </select>
</mapper> </mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment