Browse Source

append

dev_power_axis
YUJT 3 years ago
parent
commit
0d7edbaf25
  1. 4
      epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/java/com/epmet/plugin/power/modules/axis/dao/PowerKernelHouseholdDao.java
  2. 7
      epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/resources/mapper/poweraxis/PowerKernelHouseholdDao.xml

4
epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/java/com/epmet/plugin/power/modules/axis/dao/PowerKernelHouseholdDao.java

@ -47,7 +47,9 @@ public interface PowerKernelHouseholdDao extends BaseDao<PowerKernelHouseholdEnt
List<String> queryIds(String customerId, String axisStructId); List<String> queryIds(String customerId, String axisStructId);
List<PowerKernelListPostitionResultDTO> queryListPosition(String axisStructId, String customerId, int limit); List<PowerKernelListPostitionResultDTO> queryListPosition(@Param("axisStructId") String axisStructId,
@Param("customerId") String customerId,
@Param("limit") int limit);
List<PowerKernelHouseholdDTO> getPage(Map<String, Object> params); List<PowerKernelHouseholdDTO> getPage(Map<String, Object> params);

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

@ -113,7 +113,7 @@
<select id="queryListPosition" <select id="queryListPosition"
resultType="com.epmet.plugin.power.dto.axis.result.PowerKernelListPostitionResultDTO"> resultType="com.epmet.plugin.power.dto.axis.result.PowerKernelListPostitionResultDTO">
SELECT SELECT
h.id AS houseId, h.HOUSE_ID AS houseId,
h.longitude, h.longitude,
h.latitude, h.latitude,
h.address h.address
@ -123,9 +123,10 @@
WHERE WHERE
s.DEL_FLAG = '0' s.DEL_FLAG = '0'
AND h.CUSTOMER_ID = #{customerId} AND h.CUSTOMER_ID = #{customerId}
AND h.STRUCT_REFERENCE_ID LIKE '%${axisStructId}%' AND STRUCT_REFERENCE_ID in
(select DISTINCT s.id from pli_power_axis_struct s where (s.ID = #{axisStructId} or s.PIDS like '%${axisStructId}%') and s.del_flag = '0')
GROUP BY GROUP BY
h.id h.HOUSE_ID
ORDER BY ORDER BY
s.SORT s.SORT
</select> </select>

Loading…
Cancel
Save