| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import jodd.util.StringUtil; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | |
| | | } |
| | | return AjaxResult.error("暂无体检记录"); |
| | | } |
| | | |
| | | |
| | | |
| | | @GetMapping ("/getYxJcXxJg") |
| | | @ApiOperation (value = "获取影像检查骨密度心电图结果接口") |
| | | @Transactional |
| | | public AjaxResult getYxJcXxJg(@ApiParam (value = "体检号") @RequestParam String tjNumber, |
| | | @ApiParam (value = "项目id") @RequestParam String proId) { |
| | | TjOrder order = orderService.getOrderByTjNum(tjNumber); |
| | | if(null !=order){ |
| | | TjProject project = projectService.getById(proId); |
| | | if(null !=project){ |
| | | List<TjProject> projects = projectService.getTjProjectListBySoneId(proId); |
| | | LambdaQueryWrapper<TjOrderDetail>wq1=new LambdaQueryWrapper<>(); |
| | | wq1.eq(TjOrderDetail::getProId,projects.get(0).getProParentId()); |
| | | wq1.eq(TjOrderDetail::getOrderId,order.getOrderId()); |
| | | TjOrderDetail detail = detailService.getOne(wq1); |
| | | if(null !=detail && StringUtil.isNotBlank(detail.getProResult())){ |
| | | Map<String,Object> map=new HashMap<>(); |
| | | String string = detail.getProResult(); |
| | | |
| | | } |
| | | } |
| | | return AjaxResult.success(); |
| | | } |
| | | return AjaxResult.error("暂无体检记录"); |
| | | } |
| | | } |