| | |
| | | */ |
| | | @GetMapping("/getTjParentProjectList") |
| | | @ApiOperation(value = "获取体检单项项目信息") |
| | | public AjaxResult getTjParentProjectList(@RequestParam(required = false) @ApiParam(value = "单项名") String proName) { |
| | | public AjaxResult getTjParentProjectList(@RequestParam(required = false) @ApiParam(value = "单项名") String proName, |
| | | @RequestParam(required = false) @ApiParam(value = "拼音码") String pym) { |
| | | LambdaQueryWrapper<TjProject> wq =new LambdaQueryWrapper<>(); |
| | | wq.eq(TjProject::getProParentId,0); |
| | | wq.eq(TjProject::getProStatus,0); |
| | | if(null !=proName && !proName.isEmpty()){ |
| | | wq.like(TjProject::getProName,proName); |
| | | } |
| | | if(null !=pym && !pym.isEmpty()){ |
| | | wq.apply("LOWER(pro_eng_name) LIKE {0}", "%" + pym.toLowerCase() + "%"); |
| | | } |
| | | |
| | | List<TjProject> tjProjectList = projectService.list(wq); |
| | | return success(tjProjectList); |
| | | } |
| | | |
| | | |
| | | @GetMapping("/huoqutuantitaocanxiangmuList") |
| | | @ApiOperation(value = "获取所有单位团体套餐项目") |
| | | public AjaxResult huoqutuantitaocanxiangmuList(@RequestParam(required = false) String dwId) { |
| | | List<TjPackage> list= tjDwGroupingService.huoqutuantitaocanxiangmuhuoqutuantitaocanxiangmuList(dwId); |
| | | if (null !=list && !list.isEmpty()){ |
| | | for (TjPackage tjPackage : list) { |
| | | List<TjProject> res=new ArrayList<>(); |
| | | LambdaQueryWrapper<TjGroupingPro> wqq=new LambdaQueryWrapper<>(); |
| | | wqq.eq(TjGroupingPro::getGroupingId,tjPackage.getPacId()); |
| | | final List<TjGroupingPro> groupingProList = groupingProService.list(wqq); |
| | | if (null !=groupingProList && !groupingProList.isEmpty()){ |
| | | for (TjGroupingPro pro : groupingProList) { |
| | | final TjProject byId = projectService.getById(pro.getProId()); |
| | | if(null !=byId){ |
| | | res.add(byId); |
| | | } |
| | | } |
| | | tjPackage.setTjProjectList(res); |
| | | } |
| | | } |
| | | } |
| | | return AjaxResult.success(list); |
| | | } |
| | | } |