Browse Source

message:

修改计算数量的sql
dev_power_axis
HAHA 3 years ago
parent
commit
0be06cc80d
  1. 24
      epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/resources/mapper/poweraxis/PowerAxisStructDao.xml

24
epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/resources/mapper/poweraxis/PowerAxisStructDao.xml

@ -151,13 +151,13 @@
SELECT
count(*)
FROM
pli_power_service_station
pli_power_service_station h
LEFT JOIN pli_power_axis_struct s ON h.STRUCT_REFERENCE_ID = s.ID
AND s.DEL_FLAG = '0'
WHERE
del_flag = '0'
AND
AGENCY_ID = #{customerId}
AND
CUSTOMER_ID = #{customerId}
h.del_flag = '0'
AND s.AGENCY_ID = #{agencyId}
AND h.CUSTOMER_ID = #{customerId}
</select>
<select id="getStructTree"
resultType="com.epmet.plugin.power.dto.axis.result.PowerAxisStructTreeResultDTO">
@ -236,13 +236,13 @@
SELECT
count( DISTINCT HOUSE_ID )
FROM
pli_power_kernel_household
pli_power_kernel_household h
LEFT JOIN pli_power_axis_struct s ON h.STRUCT_REFERENCE_ID = s.ID
AND s.DEL_FLAG = '0'
WHERE
del_flag = '0'
AND
AGENCY_ID = #{agencyId}
AND
CUSTOMER_ID = #{customerId}
h.del_flag = '0'
AND s.AGENCY_ID = #{agencyId}
AND h.CUSTOMER_ID = #{customerId}
</select>

Loading…
Cancel
Save