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