| | |
| | | */ |
| | | @GetMapping("/getAllChildListById") |
| | | @ApiOperation(value = "查询项目子项") |
| | | public AjaxResult getAllChildListById(String proId) { |
| | | List<TjProject> tjProjects = tjProjectService.getAllChildListById(proId); |
| | | public AjaxResult getAllChildListById(@RequestParam(required = false)String proId, |
| | | @RequestParam(required = false) String proName, |
| | | @RequestParam(required = false) String checkType) { |
| | | LambdaQueryWrapper<TjProject> wq=new LambdaQueryWrapper<>(); |
| | | if (proId!=null){ |
| | | wq.eq(TjProject::getProParentId,proId); |
| | | } |
| | | if (proName!=null){ |
| | | wq.like(TjProject::getProName,proName); |
| | | } |
| | | if (checkType!=null){ |
| | | wq.eq(TjProject::getProCheckType,checkType); |
| | | } |
| | | List<TjProject> tjProjects = tjProjectService.list(wq); |
| | | // List<TjProject> tjProjects = tjProjectService.getAllChildListById(proId); |
| | | if (tjProjects != null) { |
| | | for (TjProject project : tjProjects) { |
| | | SysDept sysDept = deptService.selectDeptById(project.getDeptId()); |
| | |
| | | */ |
| | | @GetMapping(value = "/getInfoByProId") |
| | | @ApiOperation(value = "获取体检项目详细信息") |
| | | public AjaxResult getInfoByProId(Long proId) { |
| | | public AjaxResult getInfoByProId(@RequestParam Long proId) { |
| | | TjProject tjProject = tjProjectService.getById(proId); |
| | | return AjaxResult.success(tjProject); |
| | | } |