Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gf_back
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tianchao
gf_back
Commits
1f70c95f
Commit
1f70c95f
authored
Nov 13, 2024
by
ZWT
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
得到的
parent
96ea2301
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
261 additions
and
218 deletions
+261
-218
C02-system/pps-core-system/src/main/resources/mybatis/mapper/pps/core/system/SysAreaViewMapper.xml
...rces/mybatis/mapper/pps/core/system/SysAreaViewMapper.xml
+16
-13
C02-system/pps-core-system/src/main/resources/mybatis/mapper/pps/core/system/SysAuthOuScopeViewMapper.xml
...batis/mapper/pps/core/system/SysAuthOuScopeViewMapper.xml
+6
-0
C02-system/pps-core-system/src/main/resources/mybatis/mapper/pps/core/system/SysDictionaryViewMapper.xml
...ybatis/mapper/pps/core/system/SysDictionaryViewMapper.xml
+33
-21
C02-system/pps-core-system/src/main/resources/mybatis/mapper/pps/core/system/SysMenuViewMapper.xml
...rces/mybatis/mapper/pps/core/system/SysMenuViewMapper.xml
+144
-137
C02-system/pps-core-system/src/main/resources/mybatis/mapper/pps/core/system/SysOrganizationDictionaryViewMapper.xml
...r/pps/core/system/SysOrganizationDictionaryViewMapper.xml
+17
-12
C02-system/pps-core-system/src/main/resources/mybatis/mapper/pps/core/system/SysOrganizationPropertyViewMapper.xml
...per/pps/core/system/SysOrganizationPropertyViewMapper.xml
+3
-0
C02-system/pps-core-system/src/main/resources/mybatis/mapper/pps/core/system/SysOrganizationRelViewMapper.xml
...s/mapper/pps/core/system/SysOrganizationRelViewMapper.xml
+5
-1
C02-system/pps-core-system/src/main/resources/mybatis/mapper/pps/core/system/SysOrganizationViewMapper.xml
...atis/mapper/pps/core/system/SysOrganizationViewMapper.xml
+1
-1
C02-system/pps-core-system/src/main/resources/mybatis/mapper/pps/core/system/SysRoleMenuAuthViewMapper.xml
...atis/mapper/pps/core/system/SysRoleMenuAuthViewMapper.xml
+1
-0
C02-system/pps-core-system/src/main/resources/mybatis/mapper/pps/core/system/SysUserOrganizationRelViewMapper.xml
...pper/pps/core/system/SysUserOrganizationRelViewMapper.xml
+19
-15
C02-system/pps-core-system/src/main/resources/mybatis/mapper/pps/core/system/SysUserRoleRelViewMapper.xml
...batis/mapper/pps/core/system/SysUserRoleRelViewMapper.xml
+16
-16
C02-system/pps-core-system/src/main/resources/mybatis/mapper/pps/core/system/SysUserViewMapper.xml
...rces/mybatis/mapper/pps/core/system/SysUserViewMapper.xml
+0
-2
No files found.
C02-system/pps-core-system/src/main/resources/mybatis/mapper/pps/core/system/SysAreaViewMapper.xml
View file @
1f70c95f
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
<result
column=
"LEV"
property=
"lev"
/>
<result
column=
"LEV"
property=
"lev"
/>
<result
column=
"CITY_CODE"
property=
"cityCode"
/>
<result
column=
"CITY_CODE"
property=
"cityCode"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
ID
ID
,
,
...
@@ -16,27 +17,29 @@
...
@@ -16,27 +17,29 @@
LEV,
LEV,
CITY_CODE
CITY_CODE
</sql>
</sql>
<select
id=
"selectOne"
parameterType=
"pps.core.system.entity.SysAreaView"
resultMap=
"BaseResultMap"
>
<select
id=
"selectOne"
parameterType=
"pps.core.system.entity.SysAreaView"
resultMap=
"BaseResultMap"
>
select
SELECT
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from
SYS_AREA
FROM
SYS_AREA
where
WHERE
id
=#{id}
ID
=#{id}
</select>
</select>
<select
id=
"selectList"
parameterType=
"pps.core.system.entity.SysAreaView"
resultMap=
"BaseResultMap"
>
<select
id=
"selectList"
parameterType=
"pps.core.system.entity.SysAreaView"
resultMap=
"BaseResultMap"
>
select
SELECT
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from
SYS_AREA
FROM
SYS_AREA
where
WHERE
id
=#{id}
ID
=#{id}
</select>
</select>
<select
id=
"selectListAll"
parameterType=
"pps.core.system.entity.SysAreaView"
resultMap=
"BaseResultMap"
>
<select
id=
"selectListAll"
parameterType=
"pps.core.system.entity.SysAreaView"
resultMap=
"BaseResultMap"
>
select
SELECT
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from
SYS_AREA
FROM
SYS_AREA
WHERE
WHERE
id
<>
120
ID
<>
120
ORDER BY
ORDER BY
PARENT_ID,
PARENT_ID,
id
id
...
@@ -77,8 +80,8 @@
...
@@ -77,8 +80,8 @@
</select>
</select>
<resultMap
id=
"ExtResultMap"
type=
"pps.core.system.entity.SysAreaView"
extends=
"BaseResultMap"
>
<resultMap
id=
"ExtResultMap"
type=
"pps.core.system.entity.SysAreaView"
extends=
"BaseResultMap"
>
<result
column=
"PROVINCE"
property=
"province"
/>
<result
column=
"PROVINCE"
property=
"province"
/>
<result
column=
"CITY"
property=
"city"
/>
<result
column=
"CITY"
property=
"city"
/>
</resultMap>
</resultMap>
<select
id=
"selectProvinceAndCity"
parameterType=
"list"
resultMap=
"ExtResultMap"
>
<select
id=
"selectProvinceAndCity"
parameterType=
"list"
resultMap=
"ExtResultMap"
>
...
...
C02-system/pps-core-system/src/main/resources/mybatis/mapper/pps/core/system/SysAuthOuScopeViewMapper.xml
View file @
1f70c95f
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
<result
column=
"MODIFY_BY_NAME"
property=
"modifyByName"
/>
<result
column=
"MODIFY_BY_NAME"
property=
"modifyByName"
/>
<result
column=
"MODIFY_TIME"
property=
"modifyTime"
/>
<result
column=
"MODIFY_TIME"
property=
"modifyTime"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
ID
ID
,
,
...
@@ -30,6 +31,7 @@
...
@@ -30,6 +31,7 @@
MODIFY_BY_NAME,
MODIFY_BY_NAME,
MODIFY_TIME
MODIFY_TIME
</sql>
</sql>
<select
id=
"selectOne"
parameterType=
"pps.core.system.entity.SysAuthOuScopeView"
resultMap=
"BaseResultMap"
>
<select
id=
"selectOne"
parameterType=
"pps.core.system.entity.SysAuthOuScopeView"
resultMap=
"BaseResultMap"
>
SELECT
SELECT
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
...
@@ -37,6 +39,7 @@
...
@@ -37,6 +39,7 @@
WHERE
WHERE
id=#{id}
id=#{id}
</select>
</select>
<select
id=
"selectList"
parameterType=
"pps.core.system.entity.SysAuthOuScopeView"
resultMap=
"BaseResultMap"
>
<select
id=
"selectList"
parameterType=
"pps.core.system.entity.SysAuthOuScopeView"
resultMap=
"BaseResultMap"
>
SELECT C.ID,C.OU_ID,C.MENU_ID,A.OU_NAME,B.MENU_NAME,C.CREATE_BY_NAME,C.CREATE_TIME
SELECT C.ID,C.OU_ID,C.MENU_ID,A.OU_NAME,B.MENU_NAME,C.CREATE_BY_NAME,C.CREATE_TIME
FROM SYS_ORGANIZATION A ,SYS_MENU B,SYS_AUTH_OU_SCOPE C
FROM SYS_ORGANIZATION A ,SYS_MENU B,SYS_AUTH_OU_SCOPE C
...
@@ -47,6 +50,7 @@
...
@@ -47,6 +50,7 @@
</if>
</if>
ORDER BY A.OU_NAME ASC ,C.CREATE_TIME DESC
ORDER BY A.OU_NAME ASC ,C.CREATE_TIME DESC
</select>
</select>
<select
id=
"selectListByUserGroupId"
parameterType=
"pps.core.system.entity.SysAuthOuScopeView"
<select
id=
"selectListByUserGroupId"
parameterType=
"pps.core.system.entity.SysAuthOuScopeView"
resultMap=
"BaseResultMap"
>
resultMap=
"BaseResultMap"
>
SELECT
SELECT
...
@@ -68,6 +72,7 @@
...
@@ -68,6 +72,7 @@
AND SAU.USER_GROUP_ID =#{userGroupId}
AND SAU.USER_GROUP_ID =#{userGroupId}
</if>
</if>
</select>
</select>
<select
id=
"selectOuIdsByUserId"
parameterType=
"pps.core.system.entity.SysAuthOuScopeView"
<select
id=
"selectOuIdsByUserId"
parameterType=
"pps.core.system.entity.SysAuthOuScopeView"
resultMap=
"BaseResultMap"
>
resultMap=
"BaseResultMap"
>
SELECT OU_ID, OU_NAME
SELECT OU_ID, OU_NAME
...
@@ -99,6 +104,7 @@
...
@@ -99,6 +104,7 @@
LEFT JOIN SYS_ORGANIZATION SO ON SAOS.OU_ID=SO.ID AND SO.IS_DELETED =1
LEFT JOIN SYS_ORGANIZATION SO ON SAOS.OU_ID=SO.ID AND SO.IS_DELETED =1
)
)
</select>
</select>
<select
id=
"selectOuMediaTypeByUserId"
parameterType=
"pps.core.system.entity.SysAuthOuScopeView"
<select
id=
"selectOuMediaTypeByUserId"
parameterType=
"pps.core.system.entity.SysAuthOuScopeView"
resultType=
"pps.core.system.entity.SysAuthOuScopeView"
>
resultType=
"pps.core.system.entity.SysAuthOuScopeView"
>
SELECT 'GAS' AS MEDIA_TYPE
SELECT 'GAS' AS MEDIA_TYPE
...
...
C02-system/pps-core-system/src/main/resources/mybatis/mapper/pps/core/system/SysDictionaryViewMapper.xml
View file @
1f70c95f
...
@@ -2,28 +2,29 @@
...
@@ -2,28 +2,29 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"pps.core.system.mapper.SysDictionaryViewMapper"
>
<mapper
namespace=
"pps.core.system.mapper.SysDictionaryViewMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"pps.core.system.entity.SysDictionaryView"
>
<resultMap
id=
"BaseResultMap"
type=
"pps.core.system.entity.SysDictionaryView"
>
<id
column=
"ID"
property=
"id"
/>
<id
column=
"ID"
property=
"id"
/>
<result
column=
"PID"
property=
"pid"
/>
<result
column=
"PID"
property=
"pid"
/>
<result
column=
"DIC_NAME"
property=
"dicName"
/>
<result
column=
"DIC_NAME"
property=
"dicName"
/>
<result
column=
"SHORT_NAME"
property=
"shortName"
/>
<result
column=
"SHORT_NAME"
property=
"shortName"
/>
<result
column=
"REMARK"
property=
"remark"
/>
<result
column=
"REMARK"
property=
"remark"
/>
<result
column=
"SORT"
property=
"sort"
/>
<result
column=
"SORT"
property=
"sort"
/>
<result
column=
"LEVELS"
property=
"levels"
/>
<result
column=
"LEVELS"
property=
"levels"
/>
<result
column=
"BE_DEFAULT"
property=
"beDefault"
/>
<result
column=
"BE_DEFAULT"
property=
"beDefault"
/>
<result
column=
"BE_HAS_CHILDREN"
property=
"beHasChildren"
/>
<result
column=
"BE_HAS_CHILDREN"
property=
"beHasChildren"
/>
<result
column=
"DIC_TYPE"
property=
"dicType"
/>
<result
column=
"DIC_TYPE"
property=
"dicType"
/>
<result
column=
"EFFECT_TIME"
property=
"effectTime"
/>
<result
column=
"EFFECT_TIME"
property=
"effectTime"
/>
<result
column=
"END_TIME"
property=
"endTime"
/>
<result
column=
"END_TIME"
property=
"endTime"
/>
<result
column=
"CREATE_NAME"
property=
"createName"
/>
<result
column=
"CREATE_NAME"
property=
"createName"
/>
<result
column=
"CREATE_TIME"
property=
"createTime"
/>
<result
column=
"CREATE_TIME"
property=
"createTime"
/>
<result
column=
"MODIFY_NAME"
property=
"modifyName"
/>
<result
column=
"MODIFY_NAME"
property=
"modifyName"
/>
<result
column=
"MODIFY_TIME"
property=
"modifyTime"
/>
<result
column=
"MODIFY_TIME"
property=
"modifyTime"
/>
<result
column=
"ALIAS"
property=
"alias"
/>
<result
column=
"ALIAS"
property=
"alias"
/>
<result
column=
"DIC_KEY"
property=
"dicKey"
/>
<result
column=
"DIC_KEY"
property=
"dicKey"
/>
<result
column=
"DIC_PATH"
property=
"dicPath"
/>
<result
column=
"DIC_PATH"
property=
"dicPath"
/>
<result
column=
"USE_LOWER_LEVEL"
property=
"useLowerLevel"
/>
<result
column=
"USE_LOWER_LEVEL"
property=
"useLowerLevel"
/>
<result
column=
"OU_NAME"
property=
"ouName"
/>
<result
column=
"OU_NAME"
property=
"ouName"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
ID
ID
,
,
...
@@ -46,6 +47,7 @@
...
@@ -46,6 +47,7 @@
DIC_PATH,
DIC_PATH,
DIC_KEY
DIC_KEY
</sql>
</sql>
<select
id=
"selectOne"
parameterType=
"pps.core.system.entity.SysDictionaryView"
resultMap=
"BaseResultMap"
>
<select
id=
"selectOne"
parameterType=
"pps.core.system.entity.SysDictionaryView"
resultMap=
"BaseResultMap"
>
SELECT
SELECT
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
...
@@ -53,6 +55,7 @@
...
@@ -53,6 +55,7 @@
WHERE
WHERE
ID=#{id}
ID=#{id}
</select>
</select>
<select
id=
"selectList"
parameterType=
"pps.core.system.entity.SysDictionaryView"
resultMap=
"BaseResultMap"
>
<select
id=
"selectList"
parameterType=
"pps.core.system.entity.SysDictionaryView"
resultMap=
"BaseResultMap"
>
SELECT
SELECT
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
...
@@ -60,6 +63,7 @@
...
@@ -60,6 +63,7 @@
WHERE
WHERE
ID=#{id}
ID=#{id}
</select>
</select>
<select
id=
"selectListsByParentIds"
parameterType=
"pps.core.system.entity.SysDictionaryView"
<select
id=
"selectListsByParentIds"
parameterType=
"pps.core.system.entity.SysDictionaryView"
resultMap=
"BaseResultMap"
>
resultMap=
"BaseResultMap"
>
SELECT
SELECT
...
@@ -74,6 +78,7 @@
...
@@ -74,6 +78,7 @@
</if>
</if>
ORDER BY SORT
ORDER BY SORT
</select>
</select>
<select
id=
"selectListsByParentCodes"
parameterType=
"pps.core.system.entity.SysDictionaryView"
<select
id=
"selectListsByParentCodes"
parameterType=
"pps.core.system.entity.SysDictionaryView"
resultMap=
"BaseResultMap"
>
resultMap=
"BaseResultMap"
>
SELECT
SELECT
...
@@ -89,6 +94,7 @@
...
@@ -89,6 +94,7 @@
</where>
</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"
>
SELECT
SELECT
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
...
@@ -103,6 +109,7 @@
...
@@ -103,6 +109,7 @@
)
)
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"
resultMap=
"BaseResultMap"
>
resultMap=
"BaseResultMap"
>
SELECT
SELECT
...
@@ -126,6 +133,7 @@
...
@@ -126,6 +133,7 @@
</where>
</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"
>
SELECT DISTINCT SD.ID, SD.PID, SD.DIC_NAME, SD.SORT
SELECT DISTINCT SD.ID, SD.PID, SD.DIC_NAME, SD.SORT
FROM SYS_DICTIONARY SD
FROM SYS_DICTIONARY SD
...
@@ -199,6 +207,7 @@
...
@@ -199,6 +207,7 @@
LEFT JOIN SYS_ORGANIZATION_DICTIONARY AASD ON A.OU_ID = AASD.OU_ID AND A.ID=AASD.DIC_CODE
LEFT JOIN SYS_ORGANIZATION_DICTIONARY AASD ON A.OU_ID = AASD.OU_ID AND A.ID=AASD.DIC_CODE
WHERE AASD.END_TIME >NOW()
WHERE AASD.END_TIME >NOW()
</select>
</select>
<select
id=
"selectListByConditionByPage"
parameterType=
"pps.core.system.entity.SysDictionaryView"
<select
id=
"selectListByConditionByPage"
parameterType=
"pps.core.system.entity.SysDictionaryView"
resultMap=
"BaseResultMap"
>
resultMap=
"BaseResultMap"
>
SELECT A.OU_NAME,A.OU_ID,A.ID,A.ID AS DIC_CODE,ASD.PID AS
SELECT A.OU_NAME,A.OU_ID,A.ID,A.ID AS DIC_CODE,ASD.PID AS
...
@@ -219,6 +228,7 @@
...
@@ -219,6 +228,7 @@
ORDER BY ASD.EFFECT_TIME DESC
ORDER BY ASD.EFFECT_TIME DESC
LIMIT #{startRow},#{endRow}
LIMIT #{startRow},#{endRow}
</select>
</select>
<select
id=
"selectListByConditionByCount"
parameterType=
"pps.core.system.entity.SysDictionaryView"
<select
id=
"selectListByConditionByCount"
parameterType=
"pps.core.system.entity.SysDictionaryView"
resultType=
"java.lang.Integer"
>
resultType=
"java.lang.Integer"
>
SELECT COUNT(0) FROM (
SELECT COUNT(0) FROM (
...
@@ -235,6 +245,7 @@
...
@@ -235,6 +245,7 @@
AND SOD.OU_ID=#{ouId}
AND SOD.OU_ID=#{ouId}
</if>
)A
</if>
)A
</select>
</select>
<select
id=
"selectChildListByCondition"
parameterType=
"pps.core.system.entity.SysDictionaryView"
<select
id=
"selectChildListByCondition"
parameterType=
"pps.core.system.entity.SysDictionaryView"
resultMap=
"BaseResultMap"
>
resultMap=
"BaseResultMap"
>
SELECT A.OU_NAME,
SELECT A.OU_NAME,
...
@@ -261,6 +272,7 @@
...
@@ -261,6 +272,7 @@
AND SOD.DIC_CODE IS NOT NULL) A
AND SOD.DIC_CODE IS NOT NULL) A
LEFT JOIN SYS_DICTIONARY ASD ON ASD.ID = A.ID
LEFT JOIN SYS_DICTIONARY ASD ON ASD.ID = A.ID
</select>
</select>
<select
id=
"selectListByEquipmentType"
parameterType=
"pps.core.system.entity.SysDictionaryView"
<select
id=
"selectListByEquipmentType"
parameterType=
"pps.core.system.entity.SysDictionaryView"
resultMap=
"BaseResultMap"
>
resultMap=
"BaseResultMap"
>
WITH RECURSIVE TEMPS AS
WITH RECURSIVE TEMPS AS
...
...
C02-system/pps-core-system/src/main/resources/mybatis/mapper/pps/core/system/SysMenuViewMapper.xml
View file @
1f70c95f
...
@@ -2,33 +2,34 @@
...
@@ -2,33 +2,34 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"pps.core.system.mapper.SysMenuViewMapper"
>
<mapper
namespace=
"pps.core.system.mapper.SysMenuViewMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"pps.core.system.entity.SysMenuView"
>
<resultMap
id=
"BaseResultMap"
type=
"pps.core.system.entity.SysMenuView"
>
<id
column=
"ID"
property=
"id"
/>
<id
column=
"ID"
property=
"id"
/>
<result
column=
"MENU_NAME"
property=
"menuName"
/>
<result
column=
"MENU_NAME"
property=
"menuName"
/>
<result
column=
"PARENT_MENU_ID"
property=
"parentMenuId"
/>
<result
column=
"PARENT_MENU_ID"
property=
"parentMenuId"
/>
<result
column=
"IS_VISIABLE"
property=
"isVisiable"
/>
<result
column=
"IS_VISIABLE"
property=
"isVisiable"
/>
<result
column=
"IS_HAS_SCOPE"
property=
"isHasScope"
/>
<result
column=
"IS_HAS_SCOPE"
property=
"isHasScope"
/>
<result
column=
"SORT"
property=
"sort"
/>
<result
column=
"SORT"
property=
"sort"
/>
<result
column=
"IS_HAS_CHILDREN"
property=
"isHasChildren"
/>
<result
column=
"IS_HAS_CHILDREN"
property=
"isHasChildren"
/>
<result
column=
"URL"
property=
"url"
/>
<result
column=
"URL"
property=
"url"
/>
<result
column=
"IS_EXTERNAL"
property=
"isExternal"
/>
<result
column=
"IS_EXTERNAL"
property=
"isExternal"
/>
<result
column=
"CREATE_BY_ID"
property=
"createById"
/>
<result
column=
"CREATE_BY_ID"
property=
"createById"
/>
<result
column=
"CREATE_BY_NAME"
property=
"createByName"
/>
<result
column=
"CREATE_BY_NAME"
property=
"createByName"
/>
<result
column=
"CREATE_TIME"
property=
"createTime"
/>
<result
column=
"CREATE_TIME"
property=
"createTime"
/>
<result
column=
"MODIFY_BY_ID"
property=
"modifyById"
/>
<result
column=
"MODIFY_BY_ID"
property=
"modifyById"
/>
<result
column=
"MODIFY_BY_NAME"
property=
"modifyByName"
/>
<result
column=
"MODIFY_BY_NAME"
property=
"modifyByName"
/>
<result
column=
"MODIFY_TIME"
property=
"modifyTime"
/>
<result
column=
"MODIFY_TIME"
property=
"modifyTime"
/>
<result
column=
"IS_HAS_APPEAR"
property=
"isHasAppear"
/>
<result
column=
"IS_HAS_APPEAR"
property=
"isHasAppear"
/>
<result
column=
"MENU_TYPE"
property=
"menuType"
/>
<result
column=
"MENU_TYPE"
property=
"menuType"
/>
<result
column=
"MEDIA_TYPE"
property=
"mediaType"
/>
<result
column=
"MEDIA_TYPE"
property=
"mediaType"
/>
<result
column=
"LEVEL"
property=
"level"
/>
<result
column=
"LEVEL"
property=
"level"
/>
<result
column=
"MENU_DESCRIBE"
property=
"menuDescribe"
/>
<result
column=
"MENU_DESCRIBE"
property=
"menuDescribe"
/>
<result
column=
"SHOW_CHILDREN"
property=
"showChildren"
/>
<result
column=
"SHOW_CHILDREN"
property=
"showChildren"
/>
<result
column=
"MENU_PATTERN"
property=
"menuPattern"
/>
<result
column=
"MENU_PATTERN"
property=
"menuPattern"
/>
<result
column=
"FILL_CONF_ID"
property=
"fillConfId"
/>
<result
column=
"FILL_CONF_ID"
property=
"fillConfId"
/>
<result
column=
"SHOW_HOME"
property=
"showHome"
/>
<result
column=
"SHOW_HOME"
property=
"showHome"
/>
<result
column=
"APPLY_SCENE"
property=
"applyScene"
/>
<result
column=
"APPLY_SCENE"
property=
"applyScene"
/>
<result
column=
"MENU_ICON"
property=
"menuIcon"
/>
<result
column=
"MENU_ICON"
property=
"menuIcon"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
ID
ID
,
,
...
@@ -56,10 +57,12 @@
...
@@ -56,10 +57,12 @@
APPLY_SCENE,
APPLY_SCENE,
MENU_ICON
MENU_ICON
</sql>
</sql>
<update
id=
"updateShowChildren"
parameterType=
"pps.core.system.entity.SysMenuView"
>
<update
id=
"updateShowChildren"
parameterType=
"pps.core.system.entity.SysMenuView"
>
UPDATE SYS_MENU
UPDATE SYS_MENU
SET SHOW_CHILDREN=#{showChildren}
SET SHOW_CHILDREN=#{showChildren}
</update>
</update>
<select
id=
"selectOne"
parameterType=
"pps.core.system.entity.SysMenuView"
resultMap=
"BaseResultMap"
>
<select
id=
"selectOne"
parameterType=
"pps.core.system.entity.SysMenuView"
resultMap=
"BaseResultMap"
>
SELECT
SELECT
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
...
@@ -67,6 +70,7 @@
...
@@ -67,6 +70,7 @@
WHERE
WHERE
ID=#{id}
ID=#{id}
</select>
</select>
<select
id=
"selectList"
parameterType=
"pps.core.system.entity.SysMenuView"
resultMap=
"BaseResultMap"
>
<select
id=
"selectList"
parameterType=
"pps.core.system.entity.SysMenuView"
resultMap=
"BaseResultMap"
>
SELECT
SELECT
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
...
@@ -107,6 +111,7 @@
...
@@ -107,6 +111,7 @@
</where>
</where>
ORDER BY CREATE_TIME DESC
ORDER BY CREATE_TIME DESC
</select>
</select>
<select
id=
"selectMaxSort"
parameterType=
"String"
resultType=
"pps.core.system.entity.SysMenuView"
>
<select
id=
"selectMaxSort"
parameterType=
"String"
resultType=
"pps.core.system.entity.SysMenuView"
>
SELECT MAX(SM.SORT) AS SORT,
SELECT MAX(SM.SORT) AS SORT,
SM.PARENT_MENU_ID
SM.PARENT_MENU_ID
...
@@ -156,9 +161,11 @@
...
@@ -156,9 +161,11 @@
SELECT DISTINCT TEMPS.*
SELECT DISTINCT TEMPS.*
FROM TEMPS
FROM TEMPS
</select>
</select>
<select
id=
"selectMediumTypeByUserId"
parameterType=
"pps.core.system.entity.SysMenuView"
resultMap=
"BaseResultMap"
>
<select
id=
"selectMediumTypeByUserId"
parameterType=
"pps.core.system.entity.SysMenuView"
resultMap=
"BaseResultMap"
>
SELECT 'GAS' AS MEDIA_TYPE
SELECT 'GAS' AS MEDIA_TYPE
</select>
</select>
<select
id=
"selectParentMenus"
parameterType=
"pps.core.system.entity.SysMenuView"
resultMap=
"BaseResultMap"
>
<select
id=
"selectParentMenus"
parameterType=
"pps.core.system.entity.SysMenuView"
resultMap=
"BaseResultMap"
>
SELECT T.ID, T.MENU_NAME, T.PARENT_MENU_ID
SELECT T.ID, T.MENU_NAME, T.PARENT_MENU_ID
FROM (WITH RECURSIVE TEMPS AS
FROM (WITH RECURSIVE TEMPS AS
...
@@ -176,134 +183,134 @@
...
@@ -176,134 +183,134 @@
<select
id=
"selectMenuForThreeLevelList"
parameterType=
"pps.core.system.entity.SysMenuView"
<select
id=
"selectMenuForThreeLevelList"
parameterType=
"pps.core.system.entity.SysMenuView"
resultType=
"pps.core.system.entity.SysMenuView"
>
resultType=
"pps.core.system.entity.SysMenuView"
>
select id
,
SELECT ID
,
menu_name
,
MENU_NAME
,
menu_pattern
,
MENU_PATTERN
,
parent_menu_id
,
PARENT_MENU_ID
,
is_visiable
,
IS_VISIABLE
,
is_has_scope
,
IS_HAS_SCOPE
,
sort
,
SORT
,
is_has_children
,
IS_HAS_CHILDREN
,
url
,
URL
,
is_external
,
IS_EXTERNAL
,
create_by_id
,
CREATE_BY_ID
,
create_by_name
,
CREATE_BY_NAME
,
CREATE_TIME,
CREATE_TIME,
modify_by_id
,
MODIFY_BY_ID
,
modify_by_name
,
MODIFY_BY_NAME
,
modify_time
,
MODIFY_TIME
,
is_has_appear
,
IS_HAS_APPEAR
,
menu_type
,
MENU_TYPE
,
media_type
,
MEDIA_TYPE
,
`
level
`,
`
LEVEL
`,
menu_describe
,
MENU_DESCRIBE
,
show_children
,
SHOW_CHILDREN
,
menu_icon
MENU_ICON
from
SYS_MENU
FROM
SYS_MENU
where url like
'/%'
WHERE URL LIKE
'/%'
order by sort asc
ORDER BY SORT ASC
</select>
</select>
<select
id=
"selectSysMenuListByMenuName"
parameterType=
"pps.core.system.entity.SysMenuView"
<select
id=
"selectSysMenuListByMenuName"
parameterType=
"pps.core.system.entity.SysMenuView"
resultMap=
"BaseResultMap"
>
resultMap=
"BaseResultMap"
>
WITH RECURSIVE TEMPS AS
with RECURSIVE temps as
(SELECT SM.ID,
(select sm.id,
SM.MENU_NAME,
sm.menu_name,
SM.PARENT_MENU_ID,
sm.parent_menu_id,
SM.SORT,
sm.sort,
SM.URL,
sm.url,
SM.MEDIA_TYPE,
sm.media_type,
SM.MENU_TYPE,
sm.menu_type,
SM.MENU_PATTERN,
sm.menu_pattern,
SM.MENU_DESCRIBE,
sm.menu_describe,
SM.MENU_ICON
sm.menu_icon
FROM SYS_MENU SM
from SYS_MENU sm
WHERE MENU_NAME LIKE CONCAT('%', #{menuName}, '%')
where menu_name like concat('%', #{menuName}, '%')
AND APPLY_SCENE = #{applyScene}
and apply_scene = #{applyScene}
UNION
union
SELECT SM.ID,
select sm.id,
SM.MENU_NAME,
sm.menu_name,
SM.PARENT_MENU_ID,
sm.parent_menu_id,
SM.SORT,
sm.sort,
SM.URL,
sm.url,
SM.MEDIA_TYPE,
sm.media_type,
SM.MENU_TYPE,
sm.menu_type,
SM.MENU_PATTERN,
sm.menu_pattern,
SM.MENU_DESCRIBE,
sm.menu_describe,
SM.MENU_ICON
sm.menu_icon
FROM TEMPS
from temps
INNER JOIN SYS_MENU SM ON TEMPS.PARENT_MENU_ID = SM.ID)
inner join SYS_MENU sm on temps.parent_menu_id = sm.id)
SELECT TEMPS.*
select temps.*
FROM TEMPS
from temps
</select>
</select>
<select
id=
"getMenusByUserId"
parameterType=
"pps.core.system.entity.SysMenuView"
resultMap=
"BaseResultMap"
>
select *
from (select *
from (select id,
menu_name,
menu_type,
media_type,
sort,
url,
cast(substring(url, position('=' in url) + 1) as varchar) as fill_conf_id,
true as show_home,
menu_icon
from SYS_MENU sm
where sm.id in (select menu_id
from SYS_ROLE_MENU_AUTH srma
where srma.role_id in (select role_id
from SYS_USER_ROLE_REL surr
where surr.user_id = #{userId})))
where media_type like concat('%', #{mediaType}, '%')
or media_type = 'ALL')
where url like concat('%', '/fillProgress?fillConfId', '%')
<select
id=
"getMenusByUserId"
parameterType=
"pps.core.system.entity.SysMenuView"
resultMap=
"BaseResultMap"
>
SELECT *
FROM (SELECT *
FROM (SELECT ID,
MENU_NAME,
MENU_TYPE,
MEDIA_TYPE,
SORT,
URL,
CAST(SUBSTRING(URL, POSITION('=' IN URL) + 1) AS VARCHAR) AS FILL_CONF_ID,
TRUE AS SHOW_HOME,
MENU_ICON
FROM SYS_MENU SM
WHERE SM.ID IN (SELECT MENU_ID
FROM SYS_ROLE_MENU_AUTH SRMA
WHERE SRMA.ROLE_ID IN (SELECT ROLE_ID
FROM SYS_USER_ROLE_REL SURR
WHERE SURR.USER_ID = #{userId})))
WHERE MEDIA_TYPE LIKE CONCAT('%', #{mediaType}, '%')
OR MEDIA_TYPE = 'ALL')
WHERE 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 (SELECT ID
,
menu_name
,
MENU_NAME
,
menu_pattern
,
MENU_PATTERN
,
parent_menu_id
,
PARENT_MENU_ID
,
menu_type
,
MENU_TYPE
,
media_type
,
MEDIA_TYPE
,
sort
,
SORT
,
url
,
URL
,
menu_describe
,
MENU_DESCRIBE
,
menu_icon
MENU_ICON
FROM SYS_MENU
sm
FROM SYS_MENU
SM
WHERE
sm.id IN (SELECT menu_id
WHERE
SM.ID IN (SELECT MENU_ID
FROM SYS_ROLE_MENU_AUTH
srma
FROM SYS_ROLE_MENU_AUTH
SRMA
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}))
UNION
UNION
SELECT
a.id
,
SELECT
A.ID
,
a.menu_name
,
A.MENU_NAME
,
a.menu_pattern
,
A.MENU_PATTERN
,
a.parent_menu_id
,
A.PARENT_MENU_ID
,
a.menu_type
,
A.MENU_TYPE
,
a.media_type
,
A.MEDIA_TYPE
,
a.sort
,
A.SORT
,
a.url
,
A.URL
,
a.menu_describe
,
A.MENU_DESCRIBE
,
a.menu_icon
A.MENU_ICON
FROM
temps
FROM
TEMPS
INNER JOIN SYS_MENU
a ON temps.parent_menu_id = a.id
)
INNER JOIN SYS_MENU
A ON TEMPS.PARENT_MENU_ID = A.ID
)
SELECT DISTINCT
temps
.*
SELECT DISTINCT
TEMPS
.*
FROM
temps
FROM
TEMPS
</select>
</select>
<select
id=
"selectCountByParentMenuIds"
parameterType=
"pps.core.system.entity.SysMenuView"
<select
id=
"selectCountByParentMenuIds"
parameterType=
"pps.core.system.entity.SysMenuView"
resultMap=
"BaseResultMap"
>
resultMap=
"BaseResultMap"
>
select
SELECT
count(so.id) as id
,
COUNT(SO.ID) AS ID
,
so.parent_menu_id
SO.PARENT_MENU_ID
from SYS_MENU so
FROM SYS_MENU SO
where so.parent_menu_id in
WHERE SO.PARENT_MENU_ID IN
<foreach
collection=
"list"
open=
"("
close=
")"
separator=
","
item=
"item"
>
<foreach
collection=
"list"
open=
"("
close=
")"
separator=
","
item=
"item"
>
#{item}
#{item}
</foreach>
</foreach>
group by so.parent_menu_id
GROUP BY SO.PARENT_MENU_ID
</select>
</select>
</mapper>
</mapper>
C02-system/pps-core-system/src/main/resources/mybatis/mapper/pps/core/system/SysOrganizationDictionaryViewMapper.xml
View file @
1f70c95f
...
@@ -2,19 +2,20 @@
...
@@ -2,19 +2,20 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"pps.core.system.mapper.SysOrganizationDictionaryViewMapper"
>
<mapper
namespace=
"pps.core.system.mapper.SysOrganizationDictionaryViewMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"pps.core.system.entity.SysOrganizationDictionaryView"
>
<resultMap
id=
"BaseResultMap"
type=
"pps.core.system.entity.SysOrganizationDictionaryView"
>
<id
column=
"ID"
property=
"id"
/>
<id
column=
"ID"
property=
"id"
/>
<result
column=
"OU_ID"
property=
"ouId"
/>
<result
column=
"OU_ID"
property=
"ouId"
/>
<result
column=
"PARENT_DIC_CODE"
property=
"parentDicCode"
/>
<result
column=
"PARENT_DIC_CODE"
property=
"parentDicCode"
/>
<result
column=
"DIC_CODE"
property=
"dicCode"
/>
<result
column=
"DIC_CODE"
property=
"dicCode"
/>
<result
column=
"EFFECT_TIME"
property=
"effectTime"
/>
<result
column=
"EFFECT_TIME"
property=
"effectTime"
/>
<result
column=
"END_TIME"
property=
"endTime"
/>
<result
column=
"END_TIME"
property=
"endTime"
/>
<result
column=
"CREATE_BY_ID"
property=
"createById"
/>
<result
column=
"CREATE_BY_ID"
property=
"createById"
/>
<result
column=
"CREATE_BY_NAME"
property=
"createByName"
/>
<result
column=
"CREATE_BY_NAME"
property=
"createByName"
/>
<result
column=
"CREATE_TIME"
property=
"createTime"
/>
<result
column=
"CREATE_TIME"
property=
"createTime"
/>
<result
column=
"MODIFY_BY_ID"
property=
"modifyById"
/>
<result
column=
"MODIFY_BY_ID"
property=
"modifyById"
/>
<result
column=
"MODIFY_BY_NAME"
property=
"modifyByName"
/>
<result
column=
"MODIFY_BY_NAME"
property=
"modifyByName"
/>
<result
column=
"MODIFY_TIME"
property=
"modifyTime"
/>
<result
column=
"MODIFY_TIME"
property=
"modifyTime"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
ID
ID
,
,
...
@@ -30,6 +31,7 @@
...
@@ -30,6 +31,7 @@
MODIFY_BY_NAME,
MODIFY_BY_NAME,
MODIFY_TIME
MODIFY_TIME
</sql>
</sql>
<select
id=
"selectOne"
parameterType=
"pps.core.system.entity.SysOrganizationDictionaryView"
<select
id=
"selectOne"
parameterType=
"pps.core.system.entity.SysOrganizationDictionaryView"
resultMap=
"BaseResultMap"
>
resultMap=
"BaseResultMap"
>
SELECT
SELECT
...
@@ -38,6 +40,7 @@
...
@@ -38,6 +40,7 @@
WHERE
WHERE
ID=#{id}
ID=#{id}
</select>
</select>
<select
id=
"selectList"
parameterType=
"pps.core.system.entity.SysOrganizationDictionaryView"
<select
id=
"selectList"
parameterType=
"pps.core.system.entity.SysOrganizationDictionaryView"
resultMap=
"BaseResultMap"
>
resultMap=
"BaseResultMap"
>
SELECT
SELECT
...
@@ -46,6 +49,7 @@
...
@@ -46,6 +49,7 @@
WHERE
WHERE
ID=#{id}
ID=#{id}
</select>
</select>
<select
id=
"selectListByOuId"
parameterType=
"pps.core.system.entity.SysOrganizationDictionaryView"
<select
id=
"selectListByOuId"
parameterType=
"pps.core.system.entity.SysOrganizationDictionaryView"
resultMap=
"BaseResultMap"
>
resultMap=
"BaseResultMap"
>
SELECT
SELECT
...
@@ -56,6 +60,7 @@
...
@@ -56,6 +60,7 @@
AND OU_ID=#{ouId}
AND OU_ID=#{ouId}
</if>
</if>
</select>
</select>
<select
id=
"selectListByDictionaryOuId"
parameterType=
"pps.core.system.entity.SysOrganizationDictionaryView"
<select
id=
"selectListByDictionaryOuId"
parameterType=
"pps.core.system.entity.SysOrganizationDictionaryView"
resultMap=
"BaseResultMap"
>
resultMap=
"BaseResultMap"
>
SELECT A.DIC_CODE,
SELECT A.DIC_CODE,
...
...
C02-system/pps-core-system/src/main/resources/mybatis/mapper/pps/core/system/SysOrganizationPropertyViewMapper.xml
View file @
1f70c95f
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
<result
column=
"MODIFY_BY_NAME"
property=
"modifyByName"
/>
<result
column=
"MODIFY_BY_NAME"
property=
"modifyByName"
/>
<result
column=
"MODIFY_TIME"
property=
"modifyTime"
/>
<result
column=
"MODIFY_TIME"
property=
"modifyTime"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
ID
ID
,
,
...
@@ -30,6 +31,7 @@
...
@@ -30,6 +31,7 @@
MODIFY_BY_NAME,
MODIFY_BY_NAME,
MODIFY_TIME
MODIFY_TIME
</sql>
</sql>
<select
id=
"selectOne"
parameterType=
"pps.core.system.entity.SysOrganizationPropertyView"
resultMap=
"BaseResultMap"
>
<select
id=
"selectOne"
parameterType=
"pps.core.system.entity.SysOrganizationPropertyView"
resultMap=
"BaseResultMap"
>
SELECT
SELECT
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
...
@@ -37,6 +39,7 @@
...
@@ -37,6 +39,7 @@
WHERE
WHERE
ID=#{id}
ID=#{id}
</select>
</select>
<select
id=
"selectList"
parameterType=
"pps.core.system.entity.SysOrganizationPropertyView"
<select
id=
"selectList"
parameterType=
"pps.core.system.entity.SysOrganizationPropertyView"
resultMap=
"BaseResultMap"
>
resultMap=
"BaseResultMap"
>
SELECT
SELECT
...
...
C02-system/pps-core-system/src/main/resources/mybatis/mapper/pps/core/system/SysOrganizationRelViewMapper.xml
View file @
1f70c95f
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
<result
column=
"MODIFY_BY_NAME"
property=
"modifyByName"
/>
<result
column=
"MODIFY_BY_NAME"
property=
"modifyByName"
/>
<result
column=
"MODIFY_TIME"
property=
"modifyTime"
/>
<result
column=
"MODIFY_TIME"
property=
"modifyTime"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
ID
ID
,
,
...
@@ -36,6 +37,7 @@
...
@@ -36,6 +37,7 @@
MODIFY_BY_NAME,
MODIFY_BY_NAME,
MODIFY_TIME
MODIFY_TIME
</sql>
</sql>
<select
id=
"selectOne"
parameterType=
"pps.core.system.entity.SysOrganizationRelView"
resultMap=
"BaseResultMap"
>
<select
id=
"selectOne"
parameterType=
"pps.core.system.entity.SysOrganizationRelView"
resultMap=
"BaseResultMap"
>
SELECT
SELECT
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
...
@@ -43,6 +45,7 @@
...
@@ -43,6 +45,7 @@
WHERE
WHERE
ID=#{id}
ID=#{id}
</select>
</select>
<select
id=
"selectList"
parameterType=
"pps.core.system.entity.SysOrganizationRelView"
resultMap=
"BaseResultMap"
>
<select
id=
"selectList"
parameterType=
"pps.core.system.entity.SysOrganizationRelView"
resultMap=
"BaseResultMap"
>
SELECT
SELECT
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
...
@@ -50,12 +53,14 @@
...
@@ -50,12 +53,14 @@
WHERE
WHERE
ID=#{id}
ID=#{id}
</select>
</select>
<select
id=
"selectEffective"
resultMap=
"BaseResultMap"
>
<select
id=
"selectEffective"
resultMap=
"BaseResultMap"
>
SELECT
SELECT
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
FROM SYS_ORGANIZATION_REL
FROM SYS_ORGANIZATION_REL
WHERE EFFECT_TIME
<
= now() AND END_TIME
>
= now()
WHERE EFFECT_TIME
<
= now() AND END_TIME
>
= now()
</select>
</select>
<select
id=
"selectMaxSort"
parameterType=
"String"
resultType=
"pps.core.system.entity.SysOrganizationRelView"
>
<select
id=
"selectMaxSort"
parameterType=
"String"
resultType=
"pps.core.system.entity.SysOrganizationRelView"
>
SELECT MAX(SOR.SORT) AS SORT,
SELECT MAX(SOR.SORT) AS SORT,
SOR.PARENT_OU_ID
SOR.PARENT_OU_ID
...
@@ -72,5 +77,4 @@
...
@@ -72,5 +77,4 @@
LEFT JOIN SYS_ORGANIZATION_REL SOR2 ON SOR.PARENT_OU_ID = SOR2.OU_ID
LEFT JOIN SYS_ORGANIZATION_REL SOR2 ON SOR.PARENT_OU_ID = SOR2.OU_ID
WHERE SOR2.PARENT_OU_ID = #{ouId}
WHERE SOR2.PARENT_OU_ID = #{ouId}
</select>
</select>
</mapper>
</mapper>
C02-system/pps-core-system/src/main/resources/mybatis/mapper/pps/core/system/SysOrganizationViewMapper.xml
View file @
1f70c95f
...
@@ -80,7 +80,7 @@
...
@@ -80,7 +80,7 @@
SELECT
SELECT
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
FROM SYS_ORGANIZATION
FROM SYS_ORGANIZATION
WHERE IS_DELETED =1
WHERE IS_DELETED =
1
</select>
</select>
<select
id=
"selectSysOrganizationList"
parameterType=
"pps.core.system.entity.SysOrganizationView"
<select
id=
"selectSysOrganizationList"
parameterType=
"pps.core.system.entity.SysOrganizationView"
...
...
C02-system/pps-core-system/src/main/resources/mybatis/mapper/pps/core/system/SysRoleMenuAuthViewMapper.xml
View file @
1f70c95f
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
<result
column=
"MODIFY_BY_NAME"
property=
"modifyByName"
/>
<result
column=
"MODIFY_BY_NAME"
property=
"modifyByName"
/>
<result
column=
"MODIFY_TIME"
property=
"modifyTime"
/>
<result
column=
"MODIFY_TIME"
property=
"modifyTime"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
ID
ID
,
,
...
...
C02-system/pps-core-system/src/main/resources/mybatis/mapper/pps/core/system/SysUserOrganizationRelViewMapper.xml
View file @
1f70c95f
...
@@ -2,22 +2,22 @@
...
@@ -2,22 +2,22 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"pps.core.system.mapper.SysUserOrganizationRelViewMapper"
>
<mapper
namespace=
"pps.core.system.mapper.SysUserOrganizationRelViewMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"pps.core.system.entity.SysUserOrganizationRelView"
>
<resultMap
id=
"BaseResultMap"
type=
"pps.core.system.entity.SysUserOrganizationRelView"
>
<id
column=
"ID"
property=
"id"
/>
<id
column=
"ID"
property=
"id"
/>
<result
column=
"OU_ID"
property=
"ouId"
/>
<result
column=
"OU_ID"
property=
"ouId"
/>
<result
column=
"USER_ID"
property=
"userId"
/>
<result
column=
"USER_ID"
property=
"userId"
/>
<result
column=
"CREATE_BY_ID"
property=
"createById"
/>
<result
column=
"CREATE_BY_ID"
property=
"createById"
/>
<result
column=
"CREATE_BY_NAME"
property=
"createByName"
/>
<result
column=
"CREATE_BY_NAME"
property=
"createByName"
/>
<result
column=
"CREATE_TIME"
property=
"createTime"
/>
<result
column=
"CREATE_TIME"
property=
"createTime"
/>
<result
column=
"MODIFY_BY_ID"
property=
"modifyById"
/>
<result
column=
"MODIFY_BY_ID"
property=
"modifyById"
/>
<result
column=
"MODIFY_BY_NAME"
property=
"modifyByName"
/>
<result
column=
"MODIFY_BY_NAME"
property=
"modifyByName"
/>
<result
column=
"MODIFY_TIME"
property=
"modifyTime"
/>
<result
column=
"MODIFY_TIME"
property=
"modifyTime"
/>
<result
column=
"EFFECT_TIME"
property=
"effectTime"
/>
<result
column=
"EFFECT_TIME"
property=
"effectTime"
/>
<result
column=
"END_TIME"
property=
"endTime"
/>
<result
column=
"END_TIME"
property=
"endTime"
/>
<result
column=
"OU_NAME"
property=
"ouName"
/>
<result
column=
"OU_NAME"
property=
"ouName"
/>
<result
column=
"STATION_ID"
property=
"stationId"
/>
<result
column=
"STATION_ID"
property=
"stationId"
/>
<result
column=
"STATION_NAME"
property=
"stationName"
/>
<result
column=
"STATION_NAME"
property=
"stationName"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
ID
ID
,
,
...
@@ -32,6 +32,7 @@
...
@@ -32,6 +32,7 @@
EFFECT_TIME,
EFFECT_TIME,
END_TIME
END_TIME
</sql>
</sql>
<select
id=
"selectOne"
parameterType=
"pps.core.system.entity.SysUserOrganizationRelView"
resultMap=
"BaseResultMap"
>
<select
id=
"selectOne"
parameterType=
"pps.core.system.entity.SysUserOrganizationRelView"
resultMap=
"BaseResultMap"
>
SELECT
SELECT
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
...
@@ -39,6 +40,7 @@
...
@@ -39,6 +40,7 @@
WHERE
WHERE
ID=#{id}
ID=#{id}
</select>
</select>
<select
id=
"selectList"
parameterType=
"pps.core.system.entity.SysUserOrganizationRelView"
resultMap=
"BaseResultMap"
>
<select
id=
"selectList"
parameterType=
"pps.core.system.entity.SysUserOrganizationRelView"
resultMap=
"BaseResultMap"
>
SELECT
SELECT
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
...
@@ -46,12 +48,14 @@
...
@@ -46,12 +48,14 @@
WHERE
WHERE
ID=#{id}
ID=#{id}
</select>
</select>
<select
id=
"selectOrgList"
parameterType=
"pps.core.system.entity.SysUserOrganizationRelView"
<select
id=
"selectOrgList"
parameterType=
"pps.core.system.entity.SysUserOrganizationRelView"
resultType=
"pps.core.system.entity.SysOrganizationView"
>
resultType=
"pps.core.system.entity.SysOrganizationView"
>
SELECT *
SELECT *
FROM SYS_ORGANIZATION
FROM SYS_ORGANIZATION
WHERE IS_DELETED = 1
WHERE IS_DELETED = 1
</select>
</select>
<select
id=
"getSysOrganizationByUserId"
parameterType=
"pps.core.system.entity.SysUserOrganizationRelView"
<select
id=
"getSysOrganizationByUserId"
parameterType=
"pps.core.system.entity.SysUserOrganizationRelView"
resultMap=
"BaseResultMap"
>
resultMap=
"BaseResultMap"
>
SELECT DISTINCT SUOR.ID,
SELECT DISTINCT SUOR.ID,
...
...
C02-system/pps-core-system/src/main/resources/mybatis/mapper/pps/core/system/SysUserRoleRelViewMapper.xml
View file @
1f70c95f
...
@@ -2,21 +2,21 @@
...
@@ -2,21 +2,21 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"pps.core.system.mapper.SysUserRoleRelViewMapper"
>
<mapper
namespace=
"pps.core.system.mapper.SysUserRoleRelViewMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"pps.core.system.entity.SysUserRoleRelView"
>
<resultMap
id=
"BaseResultMap"
type=
"pps.core.system.entity.SysUserRoleRelView"
>
<id
column=
"ID"
property=
"id"
/>
<id
column=
"ID"
property=
"id"
/>
<result
column=
"ROLE_ID"
property=
"roleId"
/>
<result
column=
"ROLE_ID"
property=
"roleId"
/>
<result
column=
"ROLE_NAME"
property=
"roleName"
/>
<result
column=
"ROLE_NAME"
property=
"roleName"
/>
<result
column=
"USER_ID"
property=
"userId"
/>
<result
column=
"USER_ID"
property=
"userId"
/>
<result
column=
"LOGIN_NAME"
property=
"loginName"
/>
<result
column=
"LOGIN_NAME"
property=
"loginName"
/>
<result
column=
"USER_NAME"
property=
"userName"
/>
<result
column=
"USER_NAME"
property=
"userName"
/>
<result
column=
"OU_ID"
property=
"ouId"
/>
<result
column=
"OU_ID"
property=
"ouId"
/>
<result
column=
"OU_NAME"
property=
"ouName"
/>
<result
column=
"OU_NAME"
property=
"ouName"
/>
<result
column=
"CONCAT_OU_NAME"
property=
"concatOuName"
/>
<result
column=
"CONCAT_OU_NAME"
property=
"concatOuName"
/>
<result
column=
"CREATE_BY_ID"
property=
"createById"
/>
<result
column=
"CREATE_BY_ID"
property=
"createById"
/>
<result
column=
"CREATE_BY_NAME"
property=
"createByName"
/>
<result
column=
"CREATE_BY_NAME"
property=
"createByName"
/>
<result
column=
"CREATE_TIME"
property=
"createTime"
/>
<result
column=
"CREATE_TIME"
property=
"createTime"
/>
<result
column=
"MODIFY_BY_ID"
property=
"modifyById"
/>
<result
column=
"MODIFY_BY_ID"
property=
"modifyById"
/>
<result
column=
"MODIFY_BY_NAME"
property=
"modifyByName"
/>
<result
column=
"MODIFY_BY_NAME"
property=
"modifyByName"
/>
<result
column=
"MODIFY_TIME"
property=
"modifyTime"
/>
<result
column=
"MODIFY_TIME"
property=
"modifyTime"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
...
@@ -112,7 +112,7 @@
...
@@ -112,7 +112,7 @@
<select
id=
"selectListByRoleIds"
parameterType=
"pps.core.system.entity.SysUserRoleRelView"
<select
id=
"selectListByRoleIds"
parameterType=
"pps.core.system.entity.SysUserRoleRelView"
resultMap=
"BaseResultMap"
>
resultMap=
"BaseResultMap"
>
SELECT DISTINCT
SELECT DISTINCT
SU.ID
,
SU.ID,
SU.USER_NAME,
SU.USER_NAME,
SU.LOGIN_NAME,
SU.LOGIN_NAME,
SU.PHONE
SU.PHONE
...
...
C02-system/pps-core-system/src/main/resources/mybatis/mapper/pps/core/system/SysUserViewMapper.xml
View file @
1f70c95f
...
@@ -258,7 +258,6 @@
...
@@ -258,7 +258,6 @@
#{item}
#{item}
</foreach>
</foreach>
</if>
</if>
</where>
</where>
</select>
</select>
...
@@ -278,7 +277,6 @@
...
@@ -278,7 +277,6 @@
<if
test=
"userName != null and userName!= ''"
>
<if
test=
"userName != null and userName!= ''"
>
AND SU.USER_NAME LIKE CONCAT('%',#{userName},'%')
AND SU.USER_NAME LIKE CONCAT('%',#{userName},'%')
</if>
</if>
</where>
</where>
</select>
</select>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment