Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
education
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李丛阳
education
Commits
a27a0fce
Commit
a27a0fce
authored
Nov 07, 2019
by
王淑君
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/meiteng' into meiteng
parents
56cb86f4
4986a091
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
22 additions
and
11 deletions
+22
-11
BDictionaryRepository.java
...isoft/business/bdictionary/dao/BDictionaryRepository.java
+2
-1
BDictionary.java
.../org/rcisoft/business/bdictionary/entity/BDictionary.java
+2
-0
SysRoleRepository.java
...main/java/org/rcisoft/sys/role/dao/SysRoleRepository.java
+5
-5
SysRoleServiceImpl.java
...org/rcisoft/sys/role/service/impl/SysRoleServiceImpl.java
+3
-0
SysUserMapper.java
src/main/java/org/rcisoft/sys/user/dao/SysUserMapper.java
+2
-0
SysUserServiceImpl.java
...org/rcisoft/sys/user/service/impl/SysUserServiceImpl.java
+6
-5
BDictionaryMapper.xml
.../mapper/business/bdictionary/mapper/BDictionaryMapper.xml
+2
-0
No files found.
src/main/java/org/rcisoft/business/bdictionary/dao/BDictionaryRepository.java
View file @
a27a0fce
...
...
@@ -27,7 +27,8 @@ public interface BDictionaryRepository extends BaseMapper<BDictionary> {
" and corp_id = #{curUser.corpId} "
+
" <if test=\"configList != null and configList.size()>0 \">and type in "
+
" <foreach item='item' index='index' collection='configList' open='(' separator=',' close=')'> #{item} </foreach> "
+
" </if>"
+
" </if> "
+
" order by sort"
+
" </script>"
)
@ResultMap
(
value
=
"BaseResultMap"
)
List
<
BDictionary
>
findAllColumnConfig
(
@Param
(
"curUser"
)
CurUser
curUser
,
@Param
(
"configList"
)
List
<
String
>
configList
);
...
...
src/main/java/org/rcisoft/business/bdictionary/entity/BDictionary.java
View file @
a27a0fce
...
...
@@ -30,6 +30,8 @@ public class BDictionary extends IdEntity<BDictionary> {
private
String
value
;
private
int
sort
;
}
src/main/java/org/rcisoft/sys/role/dao/SysRoleRepository.java
View file @
a27a0fce
...
...
@@ -28,10 +28,10 @@ public interface SysRoleRepository extends BaseMapper<SysRole> {
* @return
*/
@Select
(
"<script>select * from tm_admin_role "
+
"
where r_status = 1
"
+
"
and r_name not in ('主管理员')
"
+
"and corp_id = #{corpId} "
+
"
order by r_name desc
</script>"
)
"
where r_status = 1
"
+
"
and r_type not in (1,0)
"
+
"
and corp_id = #{corpId} "
+
"
order by r_type desc , r_createdate asc
</script>"
)
@ResultMap
(
value
=
"SelectAllAndUserNum"
)
List
<
SysRole
>
queryRoles
(
@Param
(
"corpId"
)
String
corpId
);
...
...
src/main/java/org/rcisoft/sys/role/service/impl/SysRoleServiceImpl.java
View file @
a27a0fce
...
...
@@ -291,16 +291,19 @@ public class SysRoleServiceImpl implements SysRoleService {
bDictionary1
.
setName
(
"关注人数"
);
bDictionary1
.
setType
(
"GZRS"
);
bDictionary1
.
setValue
(
"5"
);
bDictionary1
.
setSort
(
1
);
UserUtil
.
setCurrentPersistOperation
(
bDictionary1
);
BDictionary
bDictionary2
=
new
BDictionary
();
bDictionary2
.
setName
(
"在学人数"
);
bDictionary2
.
setType
(
"ZXRS"
);
bDictionary2
.
setValue
(
"7"
);
bDictionary2
.
setSort
(
2
);
UserUtil
.
setCurrentPersistOperation
(
bDictionary2
);
BDictionary
bDictionary3
=
new
BDictionary
();
bDictionary3
.
setName
(
"总裁读书会"
);
bDictionary3
.
setType
(
"DSH"
);
bDictionary3
.
setValue
(
"http://www.winnerbook.com.cn/mobile/index.php?m=site"
);
bDictionary3
.
setSort
(
3
);
UserUtil
.
setCurrentPersistOperation
(
bDictionary3
);
dictionaryList
.
add
(
bDictionary1
);
...
...
src/main/java/org/rcisoft/sys/user/dao/SysUserMapper.java
View file @
a27a0fce
...
...
@@ -195,6 +195,8 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
"WHERE "
+
"su.del_flag != 1 "
+
"AND su.flag = 1 "
+
"and sm.del_flag != 1 "
+
"and sm.flag = 1 "
+
"AND su.corp_id = #{corpId} "
+
"AND su.business_id = #{businessId} "
+
"AND sm.MODEL_ID = #{modelId} "
+
...
...
src/main/java/org/rcisoft/sys/user/service/impl/SysUserServiceImpl.java
View file @
a27a0fce
...
...
@@ -74,14 +74,15 @@ public class SysUserServiceImpl implements SysUserService {
public
List
<
SysUser
>
qusers
(
QuerySysUserDTO
dto
)
{
//step1:调用外部接口 查询出 该部门下所有人(取id)
if
(
dto
.
getDept
()!=
null
){
List
<
Lo
ng
>
deptIds
=
new
ArrayList
<>();
List
<
Stri
ng
>
deptIds
=
new
ArrayList
<>();
StringBuffer
stringBuffer
=
new
StringBuffer
();
String
ids
=
""
;
deptIds
.
add
(
Long
.
parseLong
(
dto
.
getDept
()));
List
<
MTGetUserByDeptIdsRspDTO
>
data
=
mtCotactApiRequestClient
.
userGetUserByDeptIds
(
dto
.
getCorpId
(),
deptIds
);
deptIds
.
add
(
dto
.
getDept
());
Set
<
String
>
deptSets
=
new
HashSet
<
String
>(
deptIds
);
List
<
String
>
data
=
mtCotactApiRequestClient
.
getSubUserIdsByDeptIds
(
dto
.
getCorpId
(),
deptSets
);
if
(
data
!=
null
){
for
(
MTGetUserByDeptIdsRspDTO
uid
:
data
)
{
stringBuffer
.
append
(
uid
.
getId
()
+
","
);
for
(
String
uid
:
data
)
{
stringBuffer
.
append
(
uid
+
","
);
}
if
(!
stringBuffer
.
toString
().
equals
(
""
))
{
ids
=
stringBuffer
.
toString
().
substring
(
0
,
stringBuffer
.
toString
().
length
()
-
1
);
...
...
src/main/resources/mapper/business/bdictionary/mapper/BDictionaryMapper.xml
View file @
a27a0fce
...
...
@@ -13,6 +13,8 @@
<result
column=
"UPDATE_DATE"
jdbcType=
"TIMESTAMP"
property=
"updateDate"
/>
<result
column=
"DEL_FLAG"
jdbcType=
"VARCHAR"
property=
"delFlag"
/>
<result
column=
"FLAG"
jdbcType=
"CHAR"
property=
"flag"
/>
<result
column=
"corp_id"
jdbcType=
"CHAR"
property=
"corpId"
/>
<result
column=
"sort"
jdbcType=
"VARCHAR"
property=
"sort"
/>
<result
column=
"REMARKS"
jdbcType=
"VARCHAR"
property=
"remarks"
/>
</resultMap>
...
...
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