| | |
| | | AND (data_time BETWEEN #{startTime} AND #{endTime}) |
| | | AND time_type = #{timeType} |
| | | </select> |
| | | <select id="getDataStatisticsDeviationAnalysis" |
| | | resultType="com.zhitan.peakvalley.domain.ElectricityDataItem"> |
| | | SELECT |
| | | index_code indexCode, |
| | | time_code timeCode, |
| | | electricity_type electricityType, |
| | | data_time dataTime, |
| | | electricity, |
| | | "cost", |
| | | time_type timeType, |
| | | price, |
| | | remark |
| | | FROM |
| | | "electricity_data_item" |
| | | WHERE |
| | | index_id IN |
| | | <foreach collection="indexIdSet" item="indexId" open="(" separator="," close=")"> |
| | | #{indexId} |
| | | </foreach> |
| | | |
| | | AND time_type = #{timeType} |
| | | </select> |
| | | </mapper> |