diff --git a/pqs-device/pq-device/pq-device-api/src/main/java/com/njcn/device/pq/pojo/vo/PqSubstationExpendVO.java b/pqs-device/pq-device/pq-device-api/src/main/java/com/njcn/device/pq/pojo/vo/PqSubstationExpendVO.java new file mode 100644 index 000000000..79716d8d4 --- /dev/null +++ b/pqs-device/pq-device/pq-device-api/src/main/java/com/njcn/device/pq/pojo/vo/PqSubstationExpendVO.java @@ -0,0 +1,83 @@ +package com.njcn.device.pq.pojo.vo; + +import lombok.Data; + +import java.io.Serializable; +import java.math.BigDecimal; +import java.util.Date; + +/** + * 变电站扩展信息VO + * + * @Author: cdf + * @CreateTime: 2026-07-29 + * @Description: 变电站扩展信息,含地市和名称 + */ +@Data +public class PqSubstationExpendVO implements Serializable { + + /** + * 主键(变电站ID) + */ + private String id; + + /** + * 负载容量 + */ + private BigDecimal loadCap; + + /** + * 地址 + */ + private String address; + + /** + * 最高电压等级 + */ + private Integer maxVoltageType; + + /** + * 投运日期 + */ + private Date operateDate; + + /** + * 运行状态 + */ + private Integer operateState; + + /** + * 所属业主 + */ + private String owner; + + /** + * 联系电话 + */ + private String phoneNo; + + /** + * 场站类型 + */ + private String plantType; + + /** + * 报告附件地址 + */ + private String reportUrl; + + /** + * 排序 + */ + private Integer sort; + + /** + * 地市 + */ + private String city; + + /** + * 名称 + */ + private String name; +} \ No newline at end of file diff --git a/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/mapper/mapping/PqSubstationExpendMapper.xml b/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/mapper/mapping/PqSubstationExpendMapper.xml new file mode 100644 index 000000000..b19698951 --- /dev/null +++ b/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/mapper/mapping/PqSubstationExpendMapper.xml @@ -0,0 +1,102 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + INNER JOIN pq_substation s ON e.ID = s.id + INNER JOIN pq_line l3 ON s.id = l3.id AND l3.level = 3 AND l3.state = 1 + LEFT JOIN pq_line l2 ON l3.pid = l2.id AND l2.state = 1 + + + + e.*, + l2.name AS city, + l3.name AS name, + s.scale, + s.lng, + s.lat + + + + + AND e.ID = #{param.id} + + + AND l3.name LIKE '%' || #{param.name} || '%' + + + AND e.LOAD_CAP = #{param.loadCap} + + + AND e.ADDRESS LIKE '%' || #{param.address} || '%' + + + AND e.MAX_VOLTAGE_TYPE = #{param.maxVoltageType} + + + AND e.OPERATE_DATE = #{param.operateDate} + + + AND e.OPERATE_STATE = #{param.operateState} + + + AND e.OWNER LIKE '%' || #{param.owner} || '%' + + + AND e.PHONE_NO LIKE '%' || #{param.phoneNo} || '%' + + + AND e.PLANT_TYPE = #{param.plantType} + + + + + + + + + + \ No newline at end of file