| | |
| | | @Autowired |
| | | private RetentionMapper retentionMapper; |
| | | @Autowired |
| | | private VisitsMapper visitsMapper; |
| | | private VisitsJoinMapper visitsMapper; |
| | | @Autowired |
| | | private ApproveMapper approveMapper; |
| | | @Autowired |
| | |
| | | queryWrapper.isNull(Visits::getParentId); |
| | | queryWrapper.eq(Objects.nonNull(pageWrap.getModel().getMemberId()),Visits::getMemberId,pageWrap.getModel().getMemberId()); |
| | | queryWrapper.eq(Objects.nonNull(pageWrap.getModel().getReceptMemberId()),Visits::getReceptMemberId,pageWrap.getModel().getReceptMemberId()); |
| | | |
| | | if(Objects.nonNull(pageWrap.getModel().getBusinessStatus())){ |
| | | if(Constants.equalsInteger(pageWrap.getModel().getBusinessStatus(),Constants.TWO)){ |
| | | queryWrapper.in(Visits::getStatus, |
| | | Constants.VisitStatus.xfSuccess, |
| | | Constants.VisitStatus.xfFail, |
| | | Constants.VisitStatus.signin, |
| | | Constants.VisitStatus.signout, |
| | | Constants.VisitStatus.invalid, |
| | | Constants.VisitStatus.pass |
| | | ); |
| | | }else{ |
| | | queryWrapper.eq(Visits::getStatus,pageWrap.getModel().getBusinessStatus()); |
| | | } |
| | | |
| | | } |
| | | |
| | | queryWrapper.orderByDesc(Visits::getCreateDate); |
| | | IPage<Visits> result = visitsJoinMapper.selectJoinPage(page, Visits.class,queryWrapper); |
| | | |
| | |
| | | memberId) |
| | | ); |
| | | // } |
| | | if(Constants.equalsInteger(visits.getStatus(),Constants.VisitStatus.waitCheck)||Constants.equalsInteger(visits.getStatus(),Constants.VisitStatus.submitCheck)){ |
| | | Notices notices = noticesJoinMapper.selectOne(new QueryWrapper<Notices>().lambda().eq(Notices::getObjId,visits.getId()) |
| | | .eq(Notices::getType,Constants.equalsInteger(visits.getType(),Constants.TWO)?Constants.noticesObjectType.visitReporting:Constants.noticesObjectType.visit) |
| | | .eq(Notices::getUserId,memberId) |
| | | .eq(Notices::getSendacopy,Constants.ZERO) |
| | | .last(" limit 1 ") |
| | | ); |
| | | visitDetailVO.setInfoStatus(1); |
| | | if(Objects.nonNull(notices)){ |
| | | visitDetailVO.setInfo(notices.getInfo()); |
| | | }else{ |
| | | visitDetailVO.setInfo("暂无"); |
| | | } |
| | | }else if(Constants.equalsInteger(visits.getStatus(),Constants.VisitStatus.noPass)){ |
| | | visitDetailVO.setInfoStatus(Constants.VisitStatus.noPass); |
| | | visitDetailVO.setInfo("审批未通过"); |
| | | |
| | | }else if(Constants.equalsInteger(visits.getStatus(),Constants.VisitStatus.cancel)){ |
| | | visitDetailVO.setInfoStatus(Constants.VisitStatus.cancel); |
| | | visitDetailVO.setInfo("已取消"); |
| | | }else{ |
| | | visitDetailVO.setInfoStatus(Constants.VisitStatus.pass); |
| | | visitDetailVO.setInfo("审批已通过"); |
| | | } |
| | | return visitDetailVO; |
| | | } |
| | | |
| | |
| | | SmsEmailServiceImpl.sendVisitTimeOutSms(systemDictDataBiz, |
| | | emayService,smsEmailMapper,smsConfigMapper, |
| | | SmsConstants.visitContent.visitTimeOutSignOutNum, |
| | | visitReportTimeCount.toString(),Arrays.asList(mobile.split(",")) |
| | | visitTimeCount.toString(),Arrays.asList(mobile.split(",")) |
| | | ); |
| | | } |
| | | } |