| | |
| | | |
| | | |
| | | @Override |
| | | public VisitDetailVO getVisitDetail(Integer id){ |
| | | public VisitDetailVO getVisitDetail(Integer id,Integer memberId){ |
| | | Visits visits = visitsMapper.selectById(id); |
| | | if(Objects.isNull(visits)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY); |
| | |
| | | visitsMapper.selectList(new QueryWrapper<Visits>().lambda() |
| | | .select(Visits::getName,Visits::getPhone,Visits::getQrcode,Visits::getFaceImg,Visits::getImgurl,Visits::getIdcardDecode,Visits::getStatus) |
| | | .eq(Visits::getParentId,id))); |
| | | |
| | | |
| | | if(Objects.nonNull(memberId)){ |
| | | visitDetailVO.setApproveDateVO( |
| | | approveService.arrangeApprovedData(id, |
| | | visits.getType(), |
| | | memberId) |
| | | ); |
| | | } |
| | | return visitDetailVO; |
| | | } |
| | | |