<iftest="electricRtdataId != null and electricRtdataId != ''">
and electric_htdata_id = #{electricHtdataId}
</if>
<iftest="deviceId != null and deviceId != ''">
and device_id = #{deviceId}
</if>
<iftest="updateTime != null and updateTime != ''">
and update_time = #{updateTime}
</if>
<iftest="useDeiffen != null and useDeiffen != ''">
and use_deiffen = #{useDeiffen}
</if>
<iftest="ua != null and ua != ''">
and Ua = #{ua}
</if>
<iftest="ub != null and ub != ''">
and Ub = #{ub}
</if>
<iftest="uc != null and uc != ''">
and Uc = #{uc}
</if>
<iftest="ia != null and ia != ''">
and Ia = #{ia}
</if>
<iftest="ib != null and ib != ''">
and Ib = #{ib}
</if>
<iftest="ic != null and ic != ''">
and Ic = #{ic}
</if>
<iftest="pa != null and pa != ''">
and Pa = #{pa}
</if>
<iftest="pb != null and pb != ''">
and Pb = #{pb}
</if>
<iftest="pc != null and pc != ''">
and Pc = #{pc}
</if>
<iftest="totp != null and totp != ''">
and TotP = #{totp}
</if>
<iftest="qa != null and qa != ''">
and Qa = #{qa}
</if>
<iftest="qb != null and qb != ''">
and Qb = #{qb}
</if>
<iftest="qc != null and qc != ''">
and Qc = #{qc}
</if>
<iftest="totq != null and totq != ''">
and TotQ = #{totq}
</if>
<iftest="pfa != null and pfa != ''">
and PFa = #{pfa}
</if>
<iftest="pfb != null and pfb != ''">
and PFb = #{pfb}
</if>
<iftest="pfc != null and pfc != ''">
and PFc = #{pfc}
</if>
<iftest="totpf != null and totpf != ''">
and TotPF = #{totpf}
</if>
<iftest="supwh != null and supwh != ''">
and SupWh = #{supwh}
</if>
<iftest="rtlwh != null and rtlwh != ''">
and RtlWh = #{rtlwh}
</if>
<iftest="supqh != null and supqh != ''">
and SupQh = #{supqh}
</if>
<iftest="rtlqh != null and rtlqh != ''">
and RtlQh = #{rtlqh}
</if>
<iftest="sa != null and sa != ''">
and Sa = #{sa}
</if>
<iftest="sb != null and sb != ''">
and Sb = #{sb}
</if>
<iftest="sc != null and sc != ''">
and Sc = #{sc}
</if>
<iftest="tots != null and tots != ''">
and TotS = #{tots}
</if>
<iftest="totwh != null and totwh != ''">
and TotWh = #{totwh}
</if>
<iftest="totwh1 != null and totwh1 != ''">
and TotWh_1 = #{totwh1}
</if>
<iftest="totwh2 != null and totwh2 != ''">
and TotWh_2 = #{totwh2}
</if>
<iftest="totwh3 != null and totwh3 != ''">
and TotWh_3 = #{totwh3}
</if>
<iftest="totwh4 != null and totwh4 != ''">
and TotWh_4 = #{totwh4}
</if>
<iftest="hz != null and hz != ''">
and HZ = #{hz}
</if>
<iftest="uab != null and uab != ''">
and Uab = #{uab}
</if>
<iftest="ubc != null and ubc != ''">
and Ubc = #{ubc}
</if>
<iftest="uca != null and uca != ''">
and Uca = #{uca}
</if>
<iftest="combwh != null and combwh != ''">
and CombWh = #{combwh}
</if>
<iftest="combqh != null and combqh != ''">
and CombQh = #{combqh}
</if>
</where>
limit #{pageable.offset}, #{pageable.pageSize}
</select>
<!--统计总行数-->
<selectid="count"resultType="java.lang.Long">
select count(1)
from psdc_electric_htdata
<where>
<iftest="electricRtdataId != null and electricRtdataId != ''">
and electric_rtdata_id = #{electricHtdataId}
</if>
<iftest="deviceId != null and deviceId != ''">
and device_id = #{deviceId}
</if>
<iftest="updateTime != null and updateTime != ''">
and update_time = #{updateTime}
</if>
<iftest="useDeiffen != null and useDeiffen != ''">
and use_deiffen = #{useDeiffen}
</if>
<iftest="ua != null and ua != ''">
and Ua = #{ua}
</if>
<iftest="ub != null and ub != ''">
and Ub = #{ub}
</if>
<iftest="uc != null and uc != ''">
and Uc = #{uc}
</if>
<iftest="ia != null and ia != ''">
and Ia = #{ia}
</if>
<iftest="ib != null and ib != ''">
and Ib = #{ib}
</if>
<iftest="ic != null and ic != ''">
and Ic = #{ic}
</if>
<iftest="pa != null and pa != ''">
and Pa = #{pa}
</if>
<iftest="pb != null and pb != ''">
and Pb = #{pb}
</if>
<iftest="pc != null and pc != ''">
and Pc = #{pc}
</if>
<iftest="totp != null and totp != ''">
and TotP = #{totp}
</if>
<iftest="qa != null and qa != ''">
and Qa = #{qa}
</if>
<iftest="qb != null and qb != ''">
and Qb = #{qb}
</if>
<iftest="qc != null and qc != ''">
and Qc = #{qc}
</if>
<iftest="totq != null and totq != ''">
and TotQ = #{totq}
</if>
<iftest="pfa != null and pfa != ''">
and PFa = #{pfa}
</if>
<iftest="pfb != null and pfb != ''">
and PFb = #{pfb}
</if>
<iftest="pfc != null and pfc != ''">
and PFc = #{pfc}
</if>
<iftest="totpf != null and totpf != ''">
and TotPF = #{totpf}
</if>
<iftest="supwh != null and supwh != ''">
and SupWh = #{supwh}
</if>
<iftest="rtlwh != null and rtlwh != ''">
and RtlWh = #{rtlwh}
</if>
<iftest="supqh != null and supqh != ''">
and SupQh = #{supqh}
</if>
<iftest="rtlqh != null and rtlqh != ''">
and RtlQh = #{rtlqh}
</if>
<iftest="sa != null and sa != ''">
and Sa = #{sa}
</if>
<iftest="sb != null and sb != ''">
and Sb = #{sb}
</if>
<iftest="sc != null and sc != ''">
and Sc = #{sc}
</if>
<iftest="tots != null and tots != ''">
and TotS = #{tots}
</if>
<iftest="totwh != null and totwh != ''">
and TotWh = #{totwh}
</if>
<iftest="totwh1 != null and totwh1 != ''">
and TotWh_1 = #{totwh1}
</if>
<iftest="totwh2 != null and totwh2 != ''">
and TotWh_2 = #{totwh2}
</if>
<iftest="totwh3 != null and totwh3 != ''">
and TotWh_3 = #{totwh3}
</if>
<iftest="totwh4 != null and totwh4 != ''">
and TotWh_4 = #{totwh4}
</if>
<iftest="hz != null and hz != ''">
and HZ = #{hz}
</if>
<iftest="uab != null and uab != ''">
and Uab = #{uab}
</if>
<iftest="ubc != null and ubc != ''">
and Ubc = #{ubc}
</if>
<iftest="uca != null and uca != ''">
and Uca = #{uca}
</if>
<iftest="combwh != null and combwh != ''">
and CombWh = #{combwh}
</if>
<iftest="combqh != null and combqh != ''">
and CombQh = #{combqh}
</if>
</where>
</select>
<!--新增数据-->
<insertid="insert">
insert into psdc_electric_htdata(electric_htdata_id,device_id,update_time,use_deiffen,Ua,Ub,Uc,Ia,Ib,Ic,Pa,Pb,Pc,TotP,Qa,Qb,Qc,TotQ,PFa,PFb,PFc,TotPF,SupWh,RtlWh,SupQh,RtlQh,Sa,Sb,Sc,TotS,