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
b3be338d
Commit
b3be338d
authored
Nov 15, 2019
by
zhangqingle
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/meiteng' into zql
parents
b14a30bf
b9d67b90
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
93 additions
and
34 deletions
+93
-34
BChapterServiceImpl.java
...t/business/bchapter/service/impl/BChapterServiceImpl.java
+2
-0
BPersonValueController.java
...iness/bpersonvalue/controller/BPersonValueController.java
+18
-1
BPersonValueRepository.java
...oft/business/bpersonvalue/dao/BPersonValueRepository.java
+4
-1
BPersonValueService.java
...ft/business/bpersonvalue/service/BPersonValueService.java
+2
-0
BPersonValueServiceImpl.java
...ss/bpersonvalue/service/impl/BPersonValueServiceImpl.java
+5
-0
ResultServiceEnums.java
...main/java/org/rcisoft/core/result/ResultServiceEnums.java
+1
-0
SysUserMapper.java
src/main/java/org/rcisoft/sys/user/dao/SysUserMapper.java
+5
-3
RoleDto.java
src/main/java/org/rcisoft/sys/user/dto/RoleDto.java
+13
-0
SysUser.java
src/main/java/org/rcisoft/sys/user/entity/SysUser.java
+4
-3
SysUserServiceImpl.java
...org/rcisoft/sys/user/service/impl/SysUserServiceImpl.java
+29
-22
UserMapper.xml
src/main/resources/mapper/sys/user/mapper/UserMapper.xml
+10
-4
No files found.
src/main/java/org/rcisoft/business/bchapter/service/impl/BChapterServiceImpl.java
View file @
b3be338d
...
@@ -280,6 +280,8 @@ public class BChapterServiceImpl implements BChapterService {
...
@@ -280,6 +280,8 @@ public class BChapterServiceImpl implements BChapterService {
bFile
.
setChapterId
(
model
.
getBusinessId
());
bFile
.
setChapterId
(
model
.
getBusinessId
());
bFile
.
setLessonId
(
model
.
getLessonId
());
bFile
.
setLessonId
(
model
.
getLessonId
());
bFile
.
setFileTime
(
dto
.
getFileTime
());
model
.
setCourseTime
(
dto
.
getFileTime
());
if
(
StringUtils
.
isNotEmpty
(
dto
.
getFileTime
())
&&
dto
.
getFileTime
().
contains
(
"."
))
{
if
(
StringUtils
.
isNotEmpty
(
dto
.
getFileTime
())
&&
dto
.
getFileTime
().
contains
(
"."
))
{
bFile
.
setFileTime
(
dto
.
getFileTime
().
substring
(
0
,
dto
.
getFileTime
().
lastIndexOf
(
"."
)));
bFile
.
setFileTime
(
dto
.
getFileTime
().
substring
(
0
,
dto
.
getFileTime
().
lastIndexOf
(
"."
)));
model
.
setCourseTime
(
dto
.
getFileTime
().
substring
(
0
,
dto
.
getFileTime
().
lastIndexOf
(
"."
)));
model
.
setCourseTime
(
dto
.
getFileTime
().
substring
(
0
,
dto
.
getFileTime
().
lastIndexOf
(
"."
)));
...
...
src/main/java/org/rcisoft/business/bpersonvalue/controller/BPersonValueController.java
View file @
b3be338d
...
@@ -6,6 +6,7 @@ import io.swagger.annotations.Api;
...
@@ -6,6 +6,7 @@ import io.swagger.annotations.Api;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParams
;
import
io.swagger.annotations.ApiImplicitParams
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.apache.commons.collections.map.HashedMap
;
import
org.bouncycastle.asn1.x509.sigi.PersonalData
;
import
org.bouncycastle.asn1.x509.sigi.PersonalData
;
import
org.rcisoft.business.bbanner.entity.BBanner
;
import
org.rcisoft.business.bbanner.entity.BBanner
;
import
org.rcisoft.business.bpersonvalue.dto.PersonValueDto
;
import
org.rcisoft.business.bpersonvalue.dto.PersonValueDto
;
...
@@ -29,6 +30,7 @@ import org.rcisoft.business.bpersonvalue.entity.BPersonValue;
...
@@ -29,6 +30,7 @@ import org.rcisoft.business.bpersonvalue.entity.BPersonValue;
import
org.rcisoft.business.bpersonvalue.service.BPersonValueService
;
import
org.rcisoft.business.bpersonvalue.service.BPersonValueService
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
* Created by on 2019-11-13 13:28:38.
* Created by on 2019-11-13 13:28:38.
...
@@ -44,7 +46,7 @@ public class BPersonValueController extends PaginationController<BPersonValue> {
...
@@ -44,7 +46,7 @@ public class BPersonValueController extends PaginationController<BPersonValue> {
@ApiOperation
(
value
=
"1601 明细"
,
notes
=
" type类型(0:获取积分 +,1:消耗积分 -)"
,
response
=
BBanner
.
class
)
@ApiOperation
(
value
=
"1601 明细"
,
notes
=
" type类型(0:获取积分 +,1:消耗积分 -)"
,
response
=
BBanner
.
class
)
@GetMapping
(
value
=
"/queryByPagination"
)
@GetMapping
(
value
=
"/queryByPagination"
)
@ApiImplicitParam
(
name
=
"businessId"
,
value
=
"
主键
id"
,
required
=
true
,
dataType
=
"varchar"
)
@ApiImplicitParam
(
name
=
"businessId"
,
value
=
"
用户
id"
,
required
=
true
,
dataType
=
"varchar"
)
public
Result
queryByPagination
(
CurUser
curUser
,
String
businessId
)
{
public
Result
queryByPagination
(
CurUser
curUser
,
String
businessId
)
{
bPersonValueServiceImpl
.
queryByPagination
(
getPaginationUtility
(),
curUser
.
getCorpId
(),
businessId
);
bPersonValueServiceImpl
.
queryByPagination
(
getPaginationUtility
(),
curUser
.
getCorpId
(),
businessId
);
GridModel
gridModel
=
getGridModelResponse
();
GridModel
gridModel
=
getGridModelResponse
();
...
@@ -64,4 +66,19 @@ public class BPersonValueController extends PaginationController<BPersonValue> {
...
@@ -64,4 +66,19 @@ public class BPersonValueController extends PaginationController<BPersonValue> {
personValueDto
);
personValueDto
);
}
}
@ApiOperation
(
value
=
"1603 用户明细带总积分"
,
notes
=
" 用户明细带总积分"
,
response
=
BBanner
.
class
)
@GetMapping
(
value
=
"/queryPersonValueByPagination"
)
@ApiImplicitParam
(
name
=
"businessId"
,
value
=
"用户id"
,
required
=
true
,
dataType
=
"varchar"
)
public
Result
queryPersonValueByPagination
(
CurUser
curUser
,
String
businessId
)
{
bPersonValueServiceImpl
.
queryByPagination
(
getPaginationUtility
(),
curUser
.
getCorpId
(),
businessId
);
GridModel
gridModel
=
getGridModelResponse
();
Map
<
String
,
Object
>
map
=
new
HashedMap
();
map
.
put
(
"details"
,
gridModel
);
map
.
put
(
"userValue"
,
bPersonValueServiceImpl
.
getUserValue
(
curUser
.
getCorpId
(),
businessId
));
return
Result
.
builder
(
new
PersistModel
(
1
),
MessageConstant
.
MESSAGE_ALERT_SUCCESS
,
MessageConstant
.
MESSAGE_ALERT_ERROR
,
map
);
}
}
}
src/main/java/org/rcisoft/business/bpersonvalue/dao/BPersonValueRepository.java
View file @
b3be338d
...
@@ -19,10 +19,13 @@ public interface BPersonValueRepository extends BaseMapper<BPersonValue> {
...
@@ -19,10 +19,13 @@ public interface BPersonValueRepository extends BaseMapper<BPersonValue> {
* 分页查询 bPersonValue
* 分页查询 bPersonValue
*
*
*/
*/
@Select
(
"select * from b_person_value where del_flag != 1 and flag = 1 and
user
_id = #{id} ORDER BY create_date desc"
)
@Select
(
"select * from b_person_value where del_flag != 1 and flag = 1 and
person
_id = #{id} ORDER BY create_date desc"
)
@ResultMap
(
value
=
"BaseResultMap"
)
@ResultMap
(
value
=
"BaseResultMap"
)
List
<
BPersonValue
>
queryBPersonValues
(
@Param
(
"id"
)
String
id
);
List
<
BPersonValue
>
queryBPersonValues
(
@Param
(
"id"
)
String
id
);
@Select
(
"select `value` from s_user where business_id = #{businessId} and del_flag != 1 and flag =1 and corp_id = #{corpId}"
)
String
getUserValue
(
@Param
(
"corpId"
)
String
corpId
,
@Param
(
"businessId"
)
String
businessId
);
/**
/**
* 更新s_user表中value
* 更新s_user表中value
* @param personId
* @param personId
...
...
src/main/java/org/rcisoft/business/bpersonvalue/service/BPersonValueService.java
View file @
b3be338d
...
@@ -14,6 +14,8 @@ public interface BPersonValueService {
...
@@ -14,6 +14,8 @@ public interface BPersonValueService {
List
<
BPersonValue
>
queryByPagination
(
PageUtil
pageUtil
,
String
corpId
,
String
businessId
);
List
<
BPersonValue
>
queryByPagination
(
PageUtil
pageUtil
,
String
corpId
,
String
businessId
);
String
getUserValue
(
String
corpId
,
String
businessId
);
int
add
(
PersonValueDto
personValueDto
,
String
corpId
);
int
add
(
PersonValueDto
personValueDto
,
String
corpId
);
}
}
src/main/java/org/rcisoft/business/bpersonvalue/service/impl/BPersonValueServiceImpl.java
View file @
b3be338d
...
@@ -39,6 +39,11 @@ public class BPersonValueServiceImpl implements BPersonValueService {
...
@@ -39,6 +39,11 @@ public class BPersonValueServiceImpl implements BPersonValueService {
return
bPersonValueRepository
.
queryBPersonValues
(
businessId
);
return
bPersonValueRepository
.
queryBPersonValues
(
businessId
);
}
}
@Override
public
String
getUserValue
(
String
corpId
,
String
businessId
)
{
return
bPersonValueRepository
.
getUserValue
(
corpId
,
businessId
);
}
@Override
@Override
public
int
add
(
PersonValueDto
personValueDto
,
String
corpId
)
{
public
int
add
(
PersonValueDto
personValueDto
,
String
corpId
)
{
BPersonValue
bPersonValue
=
new
BPersonValue
();
BPersonValue
bPersonValue
=
new
BPersonValue
();
...
...
src/main/java/org/rcisoft/core/result/ResultServiceEnums.java
View file @
b3be338d
...
@@ -239,6 +239,7 @@ public enum ResultServiceEnums {
...
@@ -239,6 +239,7 @@ public enum ResultServiceEnums {
PARAM_NOT_NULL
(
139
,
"参数不能为空"
),
PARAM_NOT_NULL
(
139
,
"参数不能为空"
),
NOT_TRAIN_TYPE
(
140
,
"课程类型不正确"
),
NOT_TRAIN_TYPE
(
140
,
"课程类型不正确"
),
VALUE_IS_ERROR
(
141
,
"扣除积分大于当前积分"
),
VALUE_IS_ERROR
(
141
,
"扣除积分大于当前积分"
),
USER_IS_NULL
(
142
,
"请选择用户"
),
;
;
private
Integer
code
;
private
Integer
code
;
...
...
src/main/java/org/rcisoft/sys/user/dao/SysUserMapper.java
View file @
b3be338d
...
@@ -10,6 +10,7 @@ import org.rcisoft.sys.user.bean.CurUser;
...
@@ -10,6 +10,7 @@ import org.rcisoft.sys.user.bean.CurUser;
import
org.rcisoft.sys.user.dto.MyInfoDTO
;
import
org.rcisoft.sys.user.dto.MyInfoDTO
;
import
org.rcisoft.sys.user.dto.QueryMenuResDTO
;
import
org.rcisoft.sys.user.dto.QueryMenuResDTO
;
import
org.rcisoft.sys.user.dto.QuerySysUserDTO
;
import
org.rcisoft.sys.user.dto.QuerySysUserDTO
;
import
org.rcisoft.sys.user.dto.RoleDto
;
import
org.rcisoft.sys.user.entity.SysUser
;
import
org.rcisoft.sys.user.entity.SysUser
;
import
org.rcisoft.sys.user.entity.UserRole
;
import
org.rcisoft.sys.user.entity.UserRole
;
import
org.springframework.stereotype.Repository
;
import
org.springframework.stereotype.Repository
;
...
@@ -37,14 +38,15 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
...
@@ -37,14 +38,15 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
@ResultMap
(
value
=
"BaseResultMap"
)
@ResultMap
(
value
=
"BaseResultMap"
)
List
<
SysUser
>
queryUsers
(
QuerySysUserDTO
dto
);
List
<
SysUser
>
queryUsers
(
QuerySysUserDTO
dto
);
@Select
(
"<script>SELECT
sr.r_name AS roleList
"
+
@Select
(
"<script>SELECT
*
"
+
"FROM s_user AS su "
+
"FROM s_user AS su "
+
"LEFT JOIN s_r_user_role AS ru ON su.business_id = ru.user_id "
+
"LEFT JOIN s_r_user_role AS ru ON su.business_id = ru.user_id "
+
"LEFT JOIN tm_admin_role AS sr ON ru.role_id = sr.r_id "
+
"LEFT JOIN tm_admin_role AS sr ON ru.role_id = sr.r_id "
+
"WHERE su.del_flag = 0 "
+
"WHERE su.del_flag = 0 "
+
"and sr.r_status != 0 "
+
"and sr.r_status != 0 "
+
"AND su.business_id = #{businessId}</script>"
)
"AND su.business_id = #{businessId}</script>"
)
List
<
String
>
queryRoleByUserId
(
@Param
(
"businessId"
)
String
businessId
);
@ResultMap
(
value
=
"RoleDtoMap"
)
List
<
RoleDto
>
queryRoleByUserId
(
@Param
(
"businessId"
)
String
businessId
);
@Select
(
"<script>SELECT sr.r_id AS roleIdList "
+
@Select
(
"<script>SELECT sr.r_id AS roleIdList "
+
"FROM s_user AS su "
+
"FROM s_user AS su "
+
...
@@ -68,7 +70,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
...
@@ -68,7 +70,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
@Select
(
"<script>select ur.user_id from s_r_user_role ur left JOIN tm_admin_role sr on ur.role_id = sr.r_id where sr.r_type in"
+
@Select
(
"<script>select ur.user_id from s_r_user_role ur left JOIN tm_admin_role sr on ur.role_id = sr.r_id where sr.r_type in"
+
"<foreach item='item' index='index' collection='rType' open='(' separator=',' close=')'> #{item} </foreach> "
+
"<foreach item='item' index='index' collection='rType' open='(' separator=',' close=')'> #{item} </foreach> "
+
"</script>"
)
"</script>"
)
List
<
String
>
adminId
(
@Param
(
"rType"
)
List
<
String
>
rType
);
List
<
String
>
adminId
(
@Param
(
"rType"
)
String
[]
rType
);
@Select
(
"<script> select * from s_r_user_role where user_id in"
+
@Select
(
"<script> select * from s_r_user_role where user_id in"
+
" <foreach item='item' index='index' collection='userId' open='(' separator=',' close=')'> #{item} </foreach>"
+
" <foreach item='item' index='index' collection='userId' open='(' separator=',' close=')'> #{item} </foreach>"
+
...
...
src/main/java/org/rcisoft/sys/user/dto/RoleDto.java
0 → 100644
View file @
b3be338d
package
org
.
rcisoft
.
sys
.
user
.
dto
;
import
lombok.Data
;
@Data
public
class
RoleDto
{
public
String
roleName
;
public
String
roleId
;
public
String
roleType
;
}
src/main/java/org/rcisoft/sys/user/entity/SysUser.java
View file @
b3be338d
...
@@ -9,6 +9,7 @@ import org.hibernate.validator.constraints.Length;
...
@@ -9,6 +9,7 @@ import org.hibernate.validator.constraints.Length;
import
org.hibernate.validator.constraints.NotBlank
;
import
org.hibernate.validator.constraints.NotBlank
;
import
org.rcisoft.core.entity.IdEntity
;
import
org.rcisoft.core.entity.IdEntity
;
import
org.rcisoft.sys.role.entity.SysRole
;
import
org.rcisoft.sys.role.entity.SysRole
;
import
org.rcisoft.sys.user.dto.RoleDto
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.util.StringUtils
;
import
org.springframework.util.StringUtils
;
...
@@ -100,9 +101,9 @@ public class SysUser extends IdEntity<SysUser> {
...
@@ -100,9 +101,9 @@ public class SysUser extends IdEntity<SysUser> {
@Transient
@Transient
private
List
<
SysRole
>
roleList
=
Lists
.
newArrayList
()
;
// 拥有角色列表
private
List
<
RoleDto
>
roleList
;
// 拥有角色列表
@Transient
//
@Transient
private
List
<
SysRole
>
roleIdList
=
Lists
.
newArrayList
();
// 拥有角色id列表
//
private List<SysRole> roleIdList = Lists.newArrayList(); // 拥有角色id列表
}
}
src/main/java/org/rcisoft/sys/user/service/impl/SysUserServiceImpl.java
View file @
b3be338d
...
@@ -142,34 +142,26 @@ public class SysUserServiceImpl implements SysUserService {
...
@@ -142,34 +142,26 @@ public class SysUserServiceImpl implements SysUserService {
@Override
@Override
public
int
AssignRoles
(
String
userId
,
String
roleId
)
{
public
int
AssignRoles
(
String
userId
,
String
roleId
)
{
if
(
""
.
equals
(
roleId
)){
//主管理员和子管理员不能被分配角色(角色不可改变)
//如果没有勾选角色 则清空该用户所有角色
String
[]
adminAllType
=
new
String
[]{
"0"
,
"1"
};
List
<
String
>
uid
=
new
ArrayList
<>();
//查询管理员角色的userid
String
[]
ids
=
userId
.
split
(
","
);
List
<
String
>
adminAllIds
=
sysUserMapper
.
adminId
(
adminAllType
);
for
(
String
s
:
ids
){
uid
.
add
(
s
);
}
sysUserMapper
.
delUserRoleById
(
uid
);
return
1
;
}
//超级管理员只有一个不能被分配
List
<
String
>
adminRoleType
=
asList
(
"0"
);
//查询超级管理员角色的userid
List
<
String
>
adminIds
=
sysUserMapper
.
adminId
(
adminRoleType
);
//将超级管理员人员userid 从String[]中剔除
//将超级管理员人员userid 从String[]中剔除
if
(
adminIds
.
size
()
!=
0
)
{
if
(
admin
All
Ids
.
size
()
!=
0
)
{
for
(
int
i
=
0
;
i
<
adminIds
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
admin
All
Ids
.
size
();
i
++)
{
userId
=
userId
.
replace
(
adminIds
.
get
(
i
),
""
);
userId
=
userId
.
replace
(
admin
All
Ids
.
get
(
i
),
""
);
}
}
}
}
if
(
""
.
equals
(
roleId
)){
//如果没有勾选角色 则清空该用户所有角色
List
<
String
>
uid
=
Arrays
.
asList
(
userId
.
split
(
","
));
return
sysUserMapper
.
delUserRoleById
(
uid
);
}
List
<
String
>
userIds
=
asList
(
StringUtils
.
split
(
userId
,
","
));
List
<
String
>
userIds
=
asList
(
StringUtils
.
split
(
userId
,
","
));
List
<
String
>
roleIds
=
asList
(
StringUtils
.
split
(
roleId
,
","
));
List
<
String
>
roleIds
=
asList
(
StringUtils
.
split
(
roleId
,
","
));
List
<
UserRole
>
userRoles
=
new
ArrayList
<>();
List
<
UserRole
>
userRoles
=
new
ArrayList
<>();
//清空userrole中关于ids的所有数据
//清空userrole中关于ids的所有数据
sysUserMapper
.
delUserRoleById
(
userIds
);
sysUserMapper
.
delUserRoleById
(
userIds
);
int
result
=
0
;
for
(
int
i
=
0
;
i
<
roleIds
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
roleIds
.
size
();
i
++)
{
for
(
int
j
=
0
;
j
<
userIds
.
size
();
j
++)
{
for
(
int
j
=
0
;
j
<
userIds
.
size
();
j
++)
{
UserRole
userRole
=
new
UserRole
();
UserRole
userRole
=
new
UserRole
();
...
@@ -179,8 +171,7 @@ public class SysUserServiceImpl implements SysUserService {
...
@@ -179,8 +171,7 @@ public class SysUserServiceImpl implements SysUserService {
userRoles
.
add
(
userRole
);
userRoles
.
add
(
userRole
);
}
}
}
}
result
=
sysUserMapper
.
insertUserRoleById
(
userRoles
);
return
sysUserMapper
.
insertUserRoleById
(
userRoles
);
return
result
;
}
}
@Override
@Override
...
@@ -209,12 +200,28 @@ public class SysUserServiceImpl implements SysUserService {
...
@@ -209,12 +200,28 @@ public class SysUserServiceImpl implements SysUserService {
@Override
@Override
public
int
stopUserByUserBusinessId
(
String
businessId
)
{
public
int
stopUserByUserBusinessId
(
String
businessId
)
{
//主管理员不能被停用角色
String
[]
adminType
=
new
String
[]{
"0"
};
//查询主管理员角色的userid
List
<
String
>
adminIds
=
sysUserMapper
.
adminId
(
adminType
);
if
(
businessId
==
null
&&
""
.
equals
(
businessId
)){
throw
new
ServiceException
(
ResultServiceEnums
.
USER_IS_NULL
);
}
//剔除主管理员的id
if
(
adminIds
.
size
()
!=
0
)
{
for
(
int
i
=
0
;
i
<
adminIds
.
size
();
i
++)
{
businessId
=
businessId
.
replace
(
adminIds
.
get
(
i
),
""
);
}
}
List
<
String
>
ids
=
asList
(
StringUtils
.
split
(
businessId
,
","
));
List
<
String
>
ids
=
asList
(
StringUtils
.
split
(
businessId
,
","
));
return
sysUserMapper
.
stopFlag
(
ids
);
return
sysUserMapper
.
stopFlag
(
ids
);
}
}
@Override
@Override
public
int
startUserByUserBusinessId
(
String
businessId
)
{
public
int
startUserByUserBusinessId
(
String
businessId
)
{
if
(
businessId
==
null
&&
""
.
equals
(
businessId
)){
throw
new
ServiceException
(
ResultServiceEnums
.
USER_IS_NULL
);
}
List
<
String
>
ids
=
asList
(
StringUtils
.
split
(
businessId
,
","
));
List
<
String
>
ids
=
asList
(
StringUtils
.
split
(
businessId
,
","
));
return
sysUserMapper
.
startFlag
(
ids
);
return
sysUserMapper
.
startFlag
(
ids
);
}
}
...
...
src/main/resources/mapper/sys/user/mapper/UserMapper.xml
View file @
b3be338d
...
@@ -23,10 +23,10 @@
...
@@ -23,10 +23,10 @@
javaType=
"java.util.ArrayList"
select=
"org.rcisoft.sys.user.dao.SysUserMapper.queryRoleByUserId"
javaType=
"java.util.ArrayList"
select=
"org.rcisoft.sys.user.dao.SysUserMapper.queryRoleByUserId"
column=
"business_id"
>
column=
"business_id"
>
</collection>
</collection>
<collection
property=
"roleIdList"
ofType=
"org.rcisoft.sys.user.entity.SysUser"
<!-- <collection property="roleIdList" ofType="org.rcisoft.sys.user.entity.SysUser"-->
javaType=
"java.util.ArrayList"
select=
"org.rcisoft.sys.user.dao.SysUserMapper.queryRoleIdByUserId"
<!-- javaType="java.util.ArrayList" select="org.rcisoft.sys.user.dao.SysUserMapper.queryRoleIdByUserId"-->
column=
"business_id"
>
<!-- column="business_id">--
>
</collection
>
<!-- </collection>--
>
</resultMap>
</resultMap>
...
@@ -36,6 +36,12 @@
...
@@ -36,6 +36,12 @@
<result
column=
"href"
jdbcType=
"VARCHAR"
property=
"href"
/>
<result
column=
"href"
jdbcType=
"VARCHAR"
property=
"href"
/>
</resultMap>
</resultMap>
<resultMap
id=
"RoleDtoMap"
type=
"org.rcisoft.sys.user.dto.RoleDto"
>
<result
column=
"r_name"
jdbcType=
"VARCHAR"
property=
"roleName"
/>
<result
column=
"r_id"
jdbcType=
"VARCHAR"
property=
"roleId"
/>
<result
column=
"r_type"
jdbcType=
"VARCHAR"
property=
"roleType"
/>
</resultMap>
<resultMap
id=
"ChildResultMap"
type=
"org.rcisoft.sys.user.dto.QueryMenuResDTO"
extends=
"DtoResultMap"
>
<resultMap
id=
"ChildResultMap"
type=
"org.rcisoft.sys.user.dto.QueryMenuResDTO"
extends=
"DtoResultMap"
>
<association
column=
"business_id"
property=
"childList"
select=
"org.rcisoft.sys.menu.dao.SysMenuRepository"
></association>
<association
column=
"business_id"
property=
"childList"
select=
"org.rcisoft.sys.menu.dao.SysMenuRepository"
></association>
</resultMap>
</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