| | |
| | | /** |
| | | * 获取未挂接权限的三一车辆 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('sy:syCar:getArdSyCarNoRight')") |
| | | // @PreAuthorize("@ss.hasPermi('sy:syCar:getArdSyCarNoRight')") |
| | | @PostMapping("/getArdSyCarNoRight") |
| | | @ApiOperation("获取未挂接权限的三一车辆") |
| | | public Map<String,Object> getArdSyCarNoRight(){ |
| | |
| | | String usersId = SecurityUtils.getUserId(); |
| | | ArdSyUser ardSyUser = iArdSyUserService.userById(usersId); |
| | | String syURL = sysConfigService.getSYURL(); |
| | | return ardSyCarService.allListByUser(ardSyUser,syURL,usersId); |
| | | //根据userId查询部门Id |
| | | SysUser sysUser = sysUserService.selectUserById(usersId); |
| | | //根据当前deptId或者当前及所属下级的所有deptId |
| | | List<Long> deptList = sysDeptService.deptIdBySub(sysUser.getDeptId()); |
| | | return ardSyCarService.allListByUser(ardSyUser,syURL,usersId,deptList); |
| | | } |
| | | |
| | | @PreAuthorize("@ss.hasPermi('sy:syCar:carList')") |