| | |
| | | @Autowired |
| | | private PositionService positionService; |
| | | |
| | | |
| | | @Autowired |
| | | private PlanService planService; |
| | | |
| | | @Autowired |
| | | private ScreenAccountService screenAccountService; |
| | | |
| | | |
| | | @ApiOperation(value = "获取项目/委托方列表",response = LoginNameVo.class) |
| | | @GetMapping("/getLoginNameVoList") |
| | | public R<List<LoginNameVo>> getProjectList(@RequestParam Integer userId) { |
| | | ScreenAccount screenAccount = screenAccountService.getById(userId); |
| | | String clientProjectIds = screenAccount.getClientProjectIds(); |
| | | if(screenAccount.getType()==1){ |
| | | // 委托方 |
| | | List<LoginNameVo> list = screenAccountService.getLoginClient(clientProjectIds); |
| | | return R.ok(list); |
| | | }else { |
| | | // 项目 |
| | | List<LoginNameVo> list = screenAccountService.getLoginProject(clientProjectIds); |
| | | return R.ok(list); |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | |
| | | return R.ok(list); |
| | | } |
| | | |
| | | @ApiOperation(value = "获取项目重大风险源详情") |
| | | @GetMapping("/getProjectDangerousSourceDetail/{id}") |
| | | public R<?> getProjectDangerousSourceDetail(@PathVariable Integer id) { |
| | | ProjectInfo projectInfo = projectInfoService.getById(id); |
| | | return R.ok(projectInfo); |
| | | } |
| | | |
| | | @ApiOperation(value = "设备类型") |
| | | @GetMapping("/deviceTypes") |
| | | public R<?> deviceTypeOptions(@RequestParam(value = "title", required = false) String title) { |