Commit 3bc6ac0a authored by tangwei's avatar tangwei

修改sql 条件

parent 6730392c
...@@ -51,10 +51,11 @@ ...@@ -51,10 +51,11 @@
<if test="thirdStationId!=null and thirdStationId != ''"> <if test="thirdStationId!=null and thirdStationId != ''">
and third_station_id = #{thirdStationId} and third_station_id = #{thirdStationId}
</if> </if>
and year_month = #{date}
</where> </where>
and year_month = #{date}
GROUP BY `day_time` GROUP BY `day_time`
</select> </select>
<select id="getMonthGenerateqx" resultType="com.yeejoin.amos.boot.module.hygf.api.dto.PowerCurveDto"> <select id="getMonthGenerateqx" resultType="com.yeejoin.amos.boot.module.hygf.api.dto.PowerCurveDto">
...@@ -74,11 +75,12 @@ ...@@ -74,11 +75,12 @@
<if test="thirdStationId!=null and thirdStationId != ''"> <if test="thirdStationId!=null and thirdStationId != ''">
and third_station_id = #{thirdStationId} and third_station_id = #{thirdStationId}
</if> </if>
and year = #{date}
</where> </where>
and year = #{date}
GROUP BY `month_time` GROUP BY `month_time`
</select> </select>
<select id="getYearGenerateqx" resultType="com.yeejoin.amos.boot.module.hygf.api.dto.PowerCurveDto"> <select id="getYearGenerateqx" resultType="com.yeejoin.amos.boot.module.hygf.api.dto.PowerCurveDto">
......
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