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 SELECT
count(*) count(*)
FROM 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 WHERE
del_flag = '0' h.del_flag = '0'
AND AND s.AGENCY_ID = #{agencyId}
AGENCY_ID = #{customerId} AND h.CUSTOMER_ID = #{customerId}
AND
CUSTOMER_ID = #{customerId}
</select> </select>
<select id="getStructTree" <select id="getStructTree"
resultType="com.epmet.plugin.power.dto.axis.result.PowerAxisStructTreeResultDTO"> resultType="com.epmet.plugin.power.dto.axis.result.PowerAxisStructTreeResultDTO">
@ -236,13 +236,13 @@
SELECT SELECT
count( DISTINCT HOUSE_ID ) count( DISTINCT HOUSE_ID )
FROM 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 WHERE
del_flag = '0' h.del_flag = '0'
AND AND s.AGENCY_ID = #{agencyId}
AGENCY_ID = #{agencyId} AND h.CUSTOMER_ID = #{customerId}
AND
CUSTOMER_ID = #{customerId}
</select> </select>

Loading…
Cancel
Save