Commit 0399e6a3 authored by ZWT's avatar ZWT

feat(吉林演示): 松原

1.修改系统首页大屏总览接口,增加区分组织机构逻辑,完成接口冒烟测试;
2.修改系统首页获取井场列表接口,增加区分组织机构逻辑,完成接口冒烟测试;
3.修改系统首页井场功能下钻后提示报错问题,修改用电功率数据获取逻辑,修复报错问题;
4.修改输电线路分页列表查询接口,增加查询条件,在查询父线路列表时只查询10千伏线路,修改线上接口文档同时完成接口冒烟测试;
5.修改系统首页井场实时监控接口,增加区分组织机构逻辑,完成接口冒烟测试;
6.修改系统首页用能分析接口,增加区分组织机构逻辑,完成接口冒烟测试;
7.修改系统首页井场用能分析(双坐标轴)接口,增加区分组织机构逻辑,完成接口冒烟测试;
8.修改系统首页累积用电接口,增加区分组织机构逻辑,完成接口冒烟测试;
9.修改系统首页光伏实时监控接口,增加区分组织机构逻辑,完成接口冒烟测试;
10.修改系统首页井场效果评价接口,增加区分组织机构逻辑,完成接口冒烟测试;
11.修改系统首页先导实验井间开制度接口,增加区分组织机构逻辑,完成接口冒烟测试;
12.修改极短期间开优化模块井口生产情况油井状态接口,增加区分组织机构逻辑,完成接口冒烟测试;

BREAKING CHANGE: 无

Closes 无

[skip ci]
parent 6da3ecc0
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
select select
<include refid="Base_Column_List"/> <include refid="Base_Column_List"/>
from sys_dictionary from sys_dictionary
where 1=1 and end_time &gt; #{endTime} where end_time &gt; #{endTime}
<if test="pid != null and pid !=''"> <if test="pid != null and pid !=''">
and pid in (${pid}) and pid in (${pid})
</if> </if>
...@@ -76,10 +76,11 @@ ...@@ -76,10 +76,11 @@
select select
<include refid="Base_Column_List"/> <include refid="Base_Column_List"/>
from sys_dictionary from sys_dictionary
where 1=1 <where>
<if test="alias != null and alias !=''"> <if test="alias != null and alias !=''">
and alias in (${alias}) and alias in (${alias})
</if> </if>
</where>
order by create_time desc order by create_time desc
</select> </select>
<select id="selectListsByAlias" parameterType="pps.core.system.entity.SysDictionaryView" resultMap="BaseResultMap"> <select id="selectListsByAlias" parameterType="pps.core.system.entity.SysDictionaryView" resultMap="BaseResultMap">
...@@ -87,10 +88,13 @@ ...@@ -87,10 +88,13 @@
<include refid="Base_Column_List"/> <include refid="Base_Column_List"/>
from sys_dictionary from sys_dictionary
where pid in where pid in
(select id from sys_dictionary where 1=1 (select id from sys_dictionary
<if test="alias != null and alias !=''"> <where>
and alias = #{alias} <if test="alias != null and alias !=''">
</if>) and alias = #{alias}
</if>
</where>
)
order by create_time desc order by create_time desc
</select> </select>
<select id="selectListsByByDicKeys" parameterType="pps.core.system.entity.SysDictionaryView" <select id="selectListsByByDicKeys" parameterType="pps.core.system.entity.SysDictionaryView"
...@@ -98,13 +102,14 @@ ...@@ -98,13 +102,14 @@
select select
<include refid="Base_Column_List"/> <include refid="Base_Column_List"/>
from sys_dictionary from sys_dictionary
where 1=1 <where>
<if test="alias != null and alias !=''"> <if test="alias != null and alias !=''">
and (pid in(${pid}) or id in (${pid})) and (pid in(${pid}) or id in (${pid}))
</if> </if>
<if test="dicName != null and dicName !=''"> <if test="dicName != null and dicName !=''">
and dic_name like '%${dicName}%' and dic_name like '%${dicName}%'
</if> </if>
</where>
order by create_time desc order by create_time desc
</select> </select>
<select id="selectSysDictionaryTree" resultType="pps.core.system.entity.SysDictionaryView"> <select id="selectSysDictionaryTree" resultType="pps.core.system.entity.SysDictionaryView">
...@@ -268,19 +273,20 @@ ...@@ -268,19 +273,20 @@
select select
sd.id,sd.pid,sd.dic_name,sd.short_name,sd.remark,sd.sort,sd.levels,sd.be_default,sd.be_has_children,sd.dic_type,sd.effect_time,sd.end_time,sd.create_name,sd.create_time,sd.modify_name,sd.modify_time,sd.alias,sd.dic_path,sd.dic_key sd.id,sd.pid,sd.dic_name,sd.short_name,sd.remark,sd.sort,sd.levels,sd.be_default,sd.be_has_children,sd.dic_type,sd.effect_time,sd.end_time,sd.create_name,sd.create_time,sd.modify_name,sd.modify_time,sd.alias,sd.dic_path,sd.dic_key
from sys_dictionary sd from sys_dictionary sd
where 1=1 <where>
<if test="dicKey != null and dicKey != ''"> <if test="dicKey != null and dicKey != ''">
and sd.dic_key like concat('%',#{dicKey},'%') and sd.dic_key like concat('%',#{dicKey},'%')
</if> </if>
<if test="dicName != null and dicName != ''"> <if test="dicName != null and dicName != ''">
and sd.dic_name like concat('%',#{dicName},'%') and sd.dic_name like concat('%',#{dicName},'%')
</if> </if>
</where>
union union
select select
sd.id,sd.pid,sd.dic_name,sd.short_name,sd.remark,sd.sort,sd.levels,sd.be_default,sd.be_has_children,sd.dic_type,sd.effect_time,sd.end_time,sd.create_name,sd.create_time,sd.modify_name,sd.modify_time,sd.alias,sd.dic_path,sd.dic_key sd.id,sd.pid,sd.dic_name,sd.short_name,sd.remark,sd.sort,sd.levels,sd.be_default,sd.be_has_children,sd.dic_type,sd.effect_time,sd.end_time,sd.create_name,sd.create_time,sd.modify_name,sd.modify_time,sd.alias,sd.dic_path,sd.dic_key
from temps inner join sys_dictionary sd on temps.pid = sd.id from temps inner join sys_dictionary sd on temps.pid = sd.id
) )
select temps.* from temps; select temps.* from temps
</select> </select>
<select id="selectListByParam" resultMap="BaseResultMap" parameterType="pps.core.system.entity.SysDictionaryView"> <select id="selectListByParam" resultMap="BaseResultMap" parameterType="pps.core.system.entity.SysDictionaryView">
......
...@@ -146,8 +146,7 @@ ...@@ -146,8 +146,7 @@
join sys_user_group sug on sug.id = sugrr.user_group_id join sys_user_group sug on sug.id = sugrr.user_group_id
where suwugr.user_id = #{userId} where suwugr.user_id = #{userId}
and sug.ou_id = #{ouId}))) a and sug.ou_id = #{ouId}))) a
where 1 = 1 where media_type like concat('%', #{mediaType}, '%')
and media_type like concat('%', #{mediaType}, '%')
or media_type = 'ALL' or media_type = 'ALL'
union union
select a.id, select a.id,
...@@ -266,51 +265,43 @@ ...@@ -266,51 +265,43 @@
where srma.role_id in (select role_id where srma.role_id in (select role_id
from sys_user_role_rel surr from sys_user_role_rel surr
where surr.user_id = #{userId}))) where surr.user_id = #{userId})))
where 1 = 1 where media_type like concat('%', #{mediaType}, '%')
and media_type like concat('%', #{mediaType}, '%')
or media_type = 'ALL') or media_type = 'ALL')
where 1 = 1 where url like concat('%', '/fillProgress?fillConfId', '%')
and url like concat('%', '/fillProgress?fillConfId', '%')
</select> </select>
<select id="selectSysMenuListByUserId" parameterType="pps.core.system.entity.SysMenuView" resultMap="BaseResultMap"> <select id="selectSysMenuListByUserId" parameterType="pps.core.system.entity.SysMenuView" resultMap="BaseResultMap">
WITH RECURSIVE temps AS (SELECT id,
with RECURSIVE temps as menu_name,
(select * menu_pattern,
from (select id, parent_menu_id,
menu_name, menu_type,
menu_pattern, media_type,
parent_menu_id, sort,
menu_type, url,
media_type, menu_describe,
sort, menu_icon
url, FROM sys_menu sm
menu_describe, WHERE sm.id IN (SELECT menu_id
menu_icon FROM sys_role_menu_auth srma
from sys_menu sm WHERE srma.role_id IN (SELECT role_id
where sm.id in (select menu_id FROM sys_user_role_rel surr
from sys_role_menu_auth srma WHERE surr.user_id = #{userId}))
where srma.role_id in (select role_id UNION
from sys_user_role_rel surr SELECT a.id,
where surr.user_id = #{userId}))) a.menu_name,
where 1 = 1 a.menu_pattern,
a.parent_menu_id,
union a.menu_type,
select a.id, a.media_type,
a.menu_name, a.sort,
a.menu_pattern, a.url,
a.parent_menu_id, a.menu_describe,
a.menu_type, a.menu_icon
a.media_type, FROM temps
a.sort, INNER JOIN sys_menu a ON temps.parent_menu_id = a.id)
a.url, SELECT DISTINCT temps.*
a.menu_describe, FROM temps
a.menu_icon
from temps
inner join sys_menu a on temps.parent_menu_id = a.id)
select distinct temps.*
from temps
</select> </select>
<select id="selectCountByParentMenuIds" parameterType="pps.core.system.entity.SysMenuView" <select id="selectCountByParentMenuIds" parameterType="pps.core.system.entity.SysMenuView"
......
...@@ -205,13 +205,14 @@ ...@@ -205,13 +205,14 @@
sr.id as roleId, sr.id as roleId,
sr.role_name as roleName sr.role_name as roleName
from sys_role sr from sys_role sr
where 1=1 <where>
<if test="roleIdList !=null and roleIdList.size()>0"> <if test="roleIdList !=null and roleIdList.size()>0">
and sr.id not in and sr.id not in
<foreach collection="roleIdList" separator="," open="(" close=")" item="item"> <foreach collection="roleIdList" separator="," open="(" close=")" item="item">
#{item} #{item}
</foreach> </foreach>
</if> </if>
</where>
</select> </select>
<select id="getRoleListInRoleIds" resultType="pps.core.system.entity.SysRoleExtendView" <select id="getRoleListInRoleIds" resultType="pps.core.system.entity.SysRoleExtendView"
...@@ -220,13 +221,14 @@ ...@@ -220,13 +221,14 @@
sr.id as roleId, sr.id as roleId,
sr.role_name as roleName sr.role_name as roleName
from sys_role sr from sys_role sr
where 1=1 <where>
<if test="roleIdList !=null and roleIdList.size()>0"> <if test="roleIdList !=null and roleIdList.size()>0">
and sr.id in and sr.id in
<foreach collection="roleIdList" separator="," open="(" close=")" item="item"> <foreach collection="roleIdList" separator="," open="(" close=")" item="item">
#{item} #{item}
</foreach> </foreach>
</if> </if>
</where>
</select> </select>
<!-- 根据用户id查询该用户的所有角色id和名称--> <!-- 根据用户id查询该用户的所有角色id和名称-->
<select id="getRoleListUserId" parameterType="String" resultType="pps.core.system.entity.SysRoleExtendView"> <select id="getRoleListUserId" parameterType="String" resultType="pps.core.system.entity.SysRoleExtendView">
......
...@@ -45,10 +45,11 @@ ...@@ -45,10 +45,11 @@
sugrr.modify_time,sr.role_name sugrr.modify_time,sr.role_name
from sys_user_group_role_rel sugrr from sys_user_group_role_rel sugrr
left join sys_role sr on sr.id=sugrr.role_id left join sys_role sr on sr.id=sugrr.role_id
where 1=1 <where>
<if test="userGroupId != null and userGroupId !=''"> <if test="userGroupId != null and userGroupId !=''">
and sugrr.user_group_id=#{userGroupId} and sugrr.user_group_id=#{userGroupId}
</if> </if>
</where>
</select> </select>
<insert id="batchInsert" parameterType="java.util.List"> <insert id="batchInsert" parameterType="java.util.List">
INSERT INTO sys_user_group_role_rel INSERT INTO sys_user_group_role_rel
......
...@@ -51,12 +51,13 @@ ...@@ -51,12 +51,13 @@
sug.sort,so.ou_name sug.sort,so.ou_name
from sys_user_group sug from sys_user_group sug
left join sys_organization so on so.id=sug.ou_id left join sys_organization so on so.id=sug.ou_id
where 1=1 <where>
<if test="ouId != null and ouId !=''"> <if test="ouId != null and ouId !=''">
and ou_id= #{ouId} and ou_id= #{ouId}
</if> </if>
<if test="userGroupName != null and userGroupName !=''"> <if test="userGroupName != null and userGroupName !=''">
and user_group_name like '%${userGroupName}%' and user_group_name like '%${userGroupName}%'
</if> </if>
</where>
</select> </select>
</mapper> </mapper>
...@@ -57,10 +57,11 @@ ...@@ -57,10 +57,11 @@
sug.modify_time,su.user_name sug.modify_time,su.user_name
from sys_user_with_user_group_rel sug from sys_user_with_user_group_rel sug
left join sys_user su on su.id=sug.user_id left join sys_user su on su.id=sug.user_id
where 1=1 <where>
<if test="userGroupId != null and userGroupId !=''"> <if test="userGroupId != null and userGroupId !=''">
and sug.user_group_id=#{userGroupId} and sug.user_group_id=#{userGroupId}
</if> </if>
</where>
</select> </select>
<select id="selectListWithGroup" parameterType="pps.core.system.entity.SysUserWithUserGroupRelView" <select id="selectListWithGroup" parameterType="pps.core.system.entity.SysUserWithUserGroupRelView"
......
...@@ -126,20 +126,20 @@ ...@@ -126,20 +126,20 @@
base_line e on c.parent_id = e.id base_line e on c.parent_id = e.id
left join left join
sys_organization d on b.parent_ou_id = d.id sys_organization d on b.parent_ou_id = d.id
WHERE <where>
1=1 <if test="lineName!=null and lineName !=''">
<if test="lineName!=null and lineName !=''"> and c.line_name like '%${lineName}%'
and c.line_name like '%${lineName}%' </if>
</if> <if test="wellOuId!=null and wellOuId !=''">
<if test="wellOuId!=null and wellOuId !=''"> and c.well_ou_id =#{wellOuId}
and c.well_ou_id =#{wellOuId} </if>
</if> <if test="ouIdList != null and ouIdList.size()>0">
<if test="ouIdList != null and ouIdList.size()>0"> and c.well_ou_id in
and c.well_ou_id in <foreach collection="ouIdList" open="(" close=")" item="item" separator=",">
<foreach collection="ouIdList" open="(" close=")" item="item" separator=","> #{item}
#{item} </foreach>
</foreach> </if>
</if> </where>
</select> </select>
<select id="selectDataList" parameterType="pps.core.base.entity.BaseLineView" resultMap="DataResultMap"> <select id="selectDataList" parameterType="pps.core.base.entity.BaseLineView" resultMap="DataResultMap">
...@@ -164,17 +164,17 @@ ...@@ -164,17 +164,17 @@
sys_organization_rel b on a.id = b.ou_id sys_organization_rel b on a.id = b.ou_id
left join left join
sys_organization d on b.parent_ou_id = d.id sys_organization d on b.parent_ou_id = d.id
WHERE <where>
1=1 <if test="id!=null and id !=''">
<if test="id!=null and id !=''"> and c.id = #{id}
and c.id = #{id} </if>
</if> <if test="wellOuId!=null and wellOuId !=''">
<if test="wellOuId!=null and wellOuId !=''"> and c.well_ou_id =#{wellOuId}
and c.well_ou_id =#{wellOuId} </if>
</if> <if test="oilOuId!=null and oilOuId !=''">
<if test="oilOuId!=null and oilOuId !=''"> and d.id =#{oilOuId}
and d.id =#{oilOuId} </if>
</if> </where>
</select> </select>
<select id="selectListNew" parameterType="pps.core.base.entity.BaseLineView" resultMap="AllResultMap"> <select id="selectListNew" parameterType="pps.core.base.entity.BaseLineView" resultMap="AllResultMap">
...@@ -188,16 +188,16 @@ ...@@ -188,16 +188,16 @@
line_type_key as line_type line_type_key as line_type
FROM FROM
base_power_line base_power_line
WHERE <where>
1=1 <if test="lineName!=null and lineName !=''">
<if test="lineName!=null and lineName !=''"> and line_name like CONCAT( '%', #{lineName}, '%' )
and line_name like CONCAT( '%', #{lineName}, '%' ) </if>
</if> <if test="ouIdList != null and ouIdList.size() > 0 ">
<if test="ouIdList != null and ouIdList.size() > 0 "> and ou_id in
and ou_id in <foreach collection="ouIdList" open="(" close=")" item="item" separator=",">
<foreach collection="ouIdList" open="(" close=")" item="item" separator=","> #{item}
#{item} </foreach>
</foreach> </if>
</if> </where>
</select> </select>
</mapper> </mapper>
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