diff --git a/epmet-plugins-module/pli-power-base/pli-power-base-client/src/main/java/com/epmet/plugin/power/dto/axis/PowerAxisStructDTO.java b/epmet-plugins-module/pli-power-base/pli-power-base-client/src/main/java/com/epmet/plugin/power/dto/axis/PowerAxisStructDTO.java index bf4a256..6a476d2 100644 --- a/epmet-plugins-module/pli-power-base/pli-power-base-client/src/main/java/com/epmet/plugin/power/dto/axis/PowerAxisStructDTO.java +++ b/epmet-plugins-module/pli-power-base/pli-power-base-client/src/main/java/com/epmet/plugin/power/dto/axis/PowerAxisStructDTO.java @@ -1,6 +1,7 @@ package com.epmet.plugin.power.dto.axis; import java.io.Serializable; +import java.math.BigDecimal; import java.util.Date; import lombok.Data; @@ -57,6 +58,10 @@ public class PowerAxisStructDTO implements Serializable { */ private String pids; + private BigDecimal longitude; + + private BigDecimal latitude; + /** * 类别编码 */ diff --git a/epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/java/com/epmet/plugin/power/modules/axis/dao/PowerAxisStructDao.java b/epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/java/com/epmet/plugin/power/modules/axis/dao/PowerAxisStructDao.java index 32ab682..875d679 100644 --- a/epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/java/com/epmet/plugin/power/modules/axis/dao/PowerAxisStructDao.java +++ b/epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/java/com/epmet/plugin/power/modules/axis/dao/PowerAxisStructDao.java @@ -75,9 +75,9 @@ public interface PowerAxisStructDao extends BaseDao { List getIdsByAgencyId(String agencyId, String customerId); - int queryGridParty(PowerAxisStructViewFormDTO form); + int queryGridParty(PowerAxisStructViewFormDTO form,String gridCateGoryCode); - int queryGroupParty(PowerAxisStructViewFormDTO form); + int queryGroupParty(PowerAxisStructViewFormDTO form,String groupCateGoryCode); int getKernelHouseHold(PowerAxisStructViewFormDTO form); @@ -102,4 +102,16 @@ public interface PowerAxisStructDao extends BaseDao { * @date 2022/4/23/0023 14:38 */ List listParentTreeByLevel(@Param("structLevel") int structLevel, @Param("customerId") String customerId); + + /** + * 查询cateGoryCode + * + * @param customerId + * @param level + * @param tagCateGory + * @return java.lang.String + * @author LZN + * @date 2022/4/24 19:29 + */ + String getCateGoryCode(String customerId, int level, String tagCateGory); } \ No newline at end of file diff --git a/epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/java/com/epmet/plugin/power/modules/axis/dao/PowerKernelHouseholdDao.java b/epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/java/com/epmet/plugin/power/modules/axis/dao/PowerKernelHouseholdDao.java index b3bd63a..77add6e 100644 --- a/epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/java/com/epmet/plugin/power/modules/axis/dao/PowerKernelHouseholdDao.java +++ b/epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/java/com/epmet/plugin/power/modules/axis/dao/PowerKernelHouseholdDao.java @@ -10,6 +10,7 @@ import com.epmet.plugin.power.dto.axis.result.PowerKernelHouseHoldViewListResult import com.epmet.plugin.power.dto.axis.result.PowerKernelListPostitionResultDTO; import com.epmet.plugin.power.modules.axis.entity.PowerKernelHouseholdEntity; import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; import java.util.List; @@ -27,10 +28,15 @@ public interface PowerKernelHouseholdDao extends BaseDao getListPosition(PowerKernelListPostitionFormDTO form); + List getListPosition(PowerKernelListPostitionFormDTO form,List axisStructIds); long getListTotal(PowerKernelListPostitionFormDTO form); List queryHouseIdList(String[] houseIdList, String customerId,String axisStructId); + + + List queryIds(String customerId, String axisStructId); + + List queryListPosition(String axisStructId, String customerId, int limit); } \ No newline at end of file diff --git a/epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/java/com/epmet/plugin/power/modules/axis/service/impl/PowerAxisStructServiceImpl.java b/epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/java/com/epmet/plugin/power/modules/axis/service/impl/PowerAxisStructServiceImpl.java index 36c9d6d..6998094 100644 --- a/epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/java/com/epmet/plugin/power/modules/axis/service/impl/PowerAxisStructServiceImpl.java +++ b/epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/java/com/epmet/plugin/power/modules/axis/service/impl/PowerAxisStructServiceImpl.java @@ -228,10 +228,14 @@ public class PowerAxisStructServiceImpl extends BaseServiceImpl page(Map params) { IPage page = baseDao.selectPage( @@ -130,11 +135,10 @@ public class PowerKernelHouseholdServiceImpl extends BaseServiceImpl getListPosition(PowerKernelListPostitionFormDTO form) { - form.setCustomerId(loginUserUtil.getLoginUserCustomerId()); - List dto = baseDao.getListPosition(form); - return dto; + return baseDao.queryListPosition(form.getAxisStructId(),form.getCustomerId(),form.getLimit()); } + @Override public long getListTotal(PowerKernelListPostitionFormDTO form) { form.setCustomerId(loginUserUtil.getLoginUserCustomerId()); diff --git a/epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/resources/mapper/poweraxis/PowerAxisStructDao.xml b/epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/resources/mapper/poweraxis/PowerAxisStructDao.xml index dc91855..9e1f729 100644 --- a/epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/resources/mapper/poweraxis/PowerAxisStructDao.xml +++ b/epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/resources/mapper/poweraxis/PowerAxisStructDao.xml @@ -50,7 +50,7 @@ left join pli_power_axis_struct_leader sl on s.ID = sl.STRUCT_REFERENCE_ID left join pli_power_axis_leader l on l.ID = sl.LEADER_ID left join pli_power_axis_tag t on s.CATEGORY_CODE = t.CATEGORY_CODE - where s.DEL_FLAG = '0' + where s.DEL_FLAG = '0' and sl.del_flag = '0' and l.del_flag = '0' and s.AGENCY_ID = #{agencyId} @@ -127,7 +127,7 @@ WHERE AGENCY_ID = #{agencyId} AND - CATEGORY_CODE = 'grid_party' + CATEGORY_CODE = #{gridCateGoryCode} AND customer_id = #{customerId} @@ -139,7 +139,7 @@ WHERE AGENCY_ID = #{agencyId} AND - CATEGORY_CODE = 'group_party' + CATEGORY_CODE = #{groupCateGoryCode} AND customer_id = #{customerId} @@ -216,6 +216,18 @@ AND struct.customer_id = #{customerId} AND tag.struct_level < #{structLevel} + \ No newline at end of file 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 de269cf..0c08a74 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 @@ -22,14 +22,20 @@ + + \ No newline at end of file