Commit 29d4a8a7 authored by ZWT's avatar ZWT

feat(能源管理系统): 测试问题修复

1.修改基础信息配置--组织机构管理模块,通过组织机构ID查询下级组织机构及线路列表接口,增加查询线路类型逻辑,添加返回值,修改接口文档并完成接口冒烟测试;

BREAKING CHANGE: 无

Closes 无

[skip ci]
parent 5fbc3ff8
...@@ -155,4 +155,11 @@ public class SysOrganizationView implements Serializable { ...@@ -155,4 +155,11 @@ public class SysOrganizationView implements Serializable {
@XText("线路ID") @XText("线路ID")
@TableField(exist = false) @TableField(exist = false)
private String lineId; private String lineId;
/**
* 电网类型key
*/
@XText("电网类型key(字典获取)")
@TableField(exist = false)
private String gridTypeKey;
} }
...@@ -23,4 +23,10 @@ public class DynamicQuerySysOrganizationOutput { ...@@ -23,4 +23,10 @@ public class DynamicQuerySysOrganizationOutput {
@XText("线路ID") @XText("线路ID")
private String lineId; private String lineId;
/**
* 电网类型key
*/
@XText("电网类型key(字典获取)")
private String gridTypeKey;
} }
...@@ -558,6 +558,7 @@ ...@@ -558,6 +558,7 @@
<resultMap id="ExtendResultMap" type="pps.core.system.entity.SysOrganizationView" extends="BaseResultMap"> <resultMap id="ExtendResultMap" type="pps.core.system.entity.SysOrganizationView" extends="BaseResultMap">
<result column="line_id" property="lineId" jdbcType="VARCHAR"/> <result column="line_id" property="lineId" jdbcType="VARCHAR"/>
<result column="grid_type_key" property="gridTypeKey" jdbcType="VARCHAR"/>
</resultMap> </resultMap>
<select id="selectLineList" parameterType="pps.core.system.entity.SysOrganizationView" <select id="selectLineList" parameterType="pps.core.system.entity.SysOrganizationView"
...@@ -577,7 +578,8 @@ ...@@ -577,7 +578,8 @@
(SELECT o.id, (SELECT o.id,
o.ou_name AS ou_name, o.ou_name AS ou_name,
'' AS line_id, '' AS line_id,
'ORG' AS ou_level 'ORG' AS ou_level,
'' AS grid_type_key
FROM sys_organization o FROM sys_organization o
LEFT JOIN sys_organization_rel r ON o.id = r.ou_id LEFT JOIN sys_organization_rel r ON o.id = r.ou_id
WHERE r.parent_ou_id = #{id} WHERE r.parent_ou_id = #{id}
...@@ -585,7 +587,11 @@ ...@@ -585,7 +587,11 @@
AND o.is_deleted = 1 AND o.is_deleted = 1
ORDER BY r.sort) ORDER BY r.sort)
UNION ALL UNION ALL
(SELECT ou_id AS id, line_name AS ou_name, id AS line_id, 'LINE' AS ou_level (SELECT ou_id AS id,
line_name AS ou_name,
id AS line_id,
'LINE' AS ou_level,
grid_type_key
FROM base_power_line FROM base_power_line
WHERE ou_id = #{id} WHERE ou_id = #{id}
AND is_deleted = 1 AND is_deleted = 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment