| | |
| | | private PlanService planService; |
| | | |
| | | |
| | | @ApiOperation(value = "获取项目列表",response = Project.class) |
| | | @GetMapping("/getProjectList") |
| | | public R<List<Project>> getProjectList(@RequestParam Integer clientId) { |
| | | List<Project> list = projectService.list(new LambdaQueryWrapper<Project>().eq(Project::getDeleted, false).eq(Project::getClientId, clientId).orderByDesc(Project::getCreateTime)); |
| | | return R.ok(list); |
| | | } |
| | | |
| | | |
| | | |
| | | @ApiOperation(value = "获取项目详情",response = Project.class) |
| | | @GetMapping("/getProjectDetail/{id}") |
| | |
| | | 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) { |