| | |
| | | import com.doumee.dao.web.reqeust.VisitRecordDTO; |
| | | import com.doumee.dao.web.response.VisitDetailVO; |
| | | import com.doumee.dao.web.response.VisitRecordVO; |
| | | import com.doumee.service.business.ApproveService; |
| | | import com.doumee.service.business.InterfaceLogService; |
| | | import com.doumee.service.business.SmsEmailService; |
| | | import com.doumee.service.business.VisitsService; |
| | |
| | | private SmsEmailService smsEmailService; |
| | | @Autowired |
| | | private SystemUserMapper systemUserMapper; |
| | | @Autowired |
| | | private ApproveService approveService; |
| | | |
| | | |
| | | @Override |
| | |
| | | }else if(dataSyncConfig.getVisitorDataOrigin().equals(Constants.ZERO)){ |
| | | visits.setStatus(Constants.VisitStatus.pass); |
| | | visitsMapper.updateById(visits); |
| | | approveService.createApproveFlow(visits.getType(),visits.getId(),visits.getReceptMemberId()); |
| | | }else{ |
| | | throw new BusinessException(ResponseStatus.SERVER_ERROR.getCode(), "对不起,发起拜访审批申请失败!"); |
| | | } |
| | |
| | | .eq(ApproveParam::getMemberType,Constants.ZERO) |
| | | .last("limit 1")); |
| | | return Objects.isNull(approveParam)?null:approveParam.getId(); |
| | | |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | |
| | | @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; |
| | | } |
| | | |
| | |
| | | dto.setId(systemUser.getId()); |
| | | dto.setOperaUserId(systemUser.getId()); |
| | | systemUserBiz.resetPwd(dto); |
| | | |
| | | |
| | | } |
| | | |
| | | } |