提交修改
This commit is contained in:
parent
5166225088
commit
d025acf253
@ -266,7 +266,7 @@ public class TestController {
|
||||
R r = resultRecordService.initFlowRecord(resultRecordId);
|
||||
}
|
||||
|
||||
// http://localhost:8080/lz_management/test/getAuth?userId=314
|
||||
// http://localhost:8080/lz_management/test/getAuth?userId=298
|
||||
@RequestMapping("/test/getAuth")
|
||||
public R getAuth(Long userId) throws Exception{
|
||||
Map<String,Integer> map = staffRoleService.getRoleByUserId(userId);
|
||||
|
||||
@ -491,13 +491,13 @@ public class StaffRoleServiceImpl extends ServiceImpl<StaffRoleMapper, StaffRole
|
||||
Map<String ,Integer> map = new HashMap<>();
|
||||
List<StaffRole> staffRoleList = staffRoleMapper.selectAllByStaffId(userId);
|
||||
List<StaffMenu> staffMenus = new ArrayList<>();
|
||||
DepartmentsStaffRelateEntity departmentsStaffRelateEntity = departmentsStaffRelateService.selectLastDepartmentByStaffId(userId);
|
||||
|
||||
List<StaffMenu> commonStaffList= staffMenuService.selectByParentId( RoleMenuEnums.COMMON_STAFF.getType());
|
||||
if(CollectionUtils.isNotEmpty(commonStaffList)){
|
||||
staffMenus.addAll(commonStaffList);
|
||||
}
|
||||
|
||||
if(new Integer(1).equals(departmentsStaffRelateEntity.getIsLeader())){
|
||||
DepartmentsStaffRelateEntity departmentsStaffRelateEntity = departmentsStaffRelateService.selectLastDepartmentByStaffId(userId);
|
||||
if(departmentsStaffRelateEntity !=null && new Integer(1).equals(departmentsStaffRelateEntity.getIsLeader())){
|
||||
List<StaffMenu> staffMenuDepartmentList= staffMenuService.selectByParentId( RoleMenuEnums.DEPARTMENT_PM.getType());
|
||||
if(CollectionUtils.isNotEmpty(staffMenuDepartmentList)){
|
||||
staffMenus.addAll(staffMenuDepartmentList);
|
||||
|
||||
@ -3,9 +3,9 @@ spring:
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
druid:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://172.16.157.238:3306/lz_management?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
|
||||
username: ldd_biz
|
||||
password: Hello1234
|
||||
url: jdbc:mysql://rm-bp1xhc66ruz72t68p.mysql.rds.aliyuncs.com:3306/lz_manger?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
|
||||
username: lz_manger
|
||||
password: N8zfBwhOC
|
||||
initial-size: 10
|
||||
max-active: 100
|
||||
min-idle: 10
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user