diff --git a/epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/resources/mapper/poweraxis/PowerKernelHouseholdDao.xml b/epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/resources/mapper/poweraxis/PowerKernelHouseholdDao.xml index 31b5ad3..cf8f403 100644 --- a/epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/resources/mapper/poweraxis/PowerKernelHouseholdDao.xml +++ b/epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/resources/mapper/poweraxis/PowerKernelHouseholdDao.xml @@ -119,14 +119,15 @@ h.address FROM pli_power_axis_struct AS s - LEFT JOIN pli_power_kernel_household h ON s.id = h.STRUCT_REFERENCE_ID + LEFT JOIN pli_power_kernel_household h ON s.id = h.STRUCT_REFERENCE_ID AND h.DEL_FLAG = '0' WHERE s.DEL_FLAG = '0' - AND h.DEL_FLAG = '0' AND h.CUSTOMER_ID = #{customerId} - and s.pids LIKE '%${axisStructId}%' - GROUP BY h.id - ORDER BY s.SORT - limit #{limit} + AND h.CUSTOMER_ID = #{customerId} + AND h.STRUCT_REFERENCE_ID LIKE '%${axisStructId}%' + GROUP BY + h.id + ORDER BY + s.SORT