| | |
| | | new UpdateWrapper<Notices>().lambda() |
| | | .set(Notices::getEditDate,new Date()) |
| | | .set(Notices::getInfo,"手动取消") |
| | | // .set(Notices::getStatus,Constants.ONE) |
| | | .set(Notices::getParam2,Constants.FOUR)//已取消 |
| | | .setSql(" param4 = user_id ") |
| | | .set(Notices::getStatus,Constants.ONE) |
| | | .set(Notices::getParam2,Constants.ONE)//标记已处理 |
| | | .eq(Notices::getStatus,Constants.ZERO) |
| | | .eq(Notices::getParam2,Constants.ZERO)//待处理 |
| | | .eq(Notices::getObjId,visits.getId()) |
| | | .eq(Notices::getObjType,Constants.equalsInteger(visits.getType(),Constants.ZERO)?Constants.noticesObjectType.visit:Constants.noticesObjectType.visitReporting) |
| | | ); |
| | | |
| | | Approve approve = new Approve(); |
| | | approve.setCreateDate(new Date()); |
| | | approve.setIsdeleted(Constants.ZERO); |
| | | approve.setRemark("手动取消"); |
| | | approve.setChekorId(visits.getEditor()); |
| | | approve.setTitle("取消预约"); |
| | | approve.setStatus(Constants.THREE); |
| | | approve.setStatusInfo("手动取消"); |
| | | approve.setObjId(visits.getId()); |
| | | approve.setLevel(9999); |
| | | approve.setApproveType(2); |
| | | approve.setDriverParam(Constants.ZERO); |
| | | approve.setAddrParam(Constants.ZERO); |
| | | approve.setObjType(visits.getType()); |
| | | approve.setType(Constants.ZERO); |
| | | approve.setCheckDate(new Date()); |
| | | approveMapper.insert(approve); |
| | | } |
| | | |
| | | visitsMapper.update(null,updateWrapper); |
| | |
| | | List<Visits> visitsList = visitsMapper.selectList(new QueryWrapper<Visits>().lambda() |
| | | .eq(Visits::getStatus,Constants.VisitStatus.signin) |
| | | .eq(Visits::getSendTimeOutNotice,Constants.ZERO) |
| | | .eq(Visits::getIsdeleted,Constants.ZERO) |
| | | .apply(" now() >= DATE_ADD(ENDTIME,INTERVAL -"+times+" MINUTE) ") |
| | | ); |
| | | Integer visitTimeCount = 0; |
| | |
| | | !Constants.equalsInteger(s.getType(),Constants.TWO)?Constants.noticesObjectType.visit:Constants.noticesObjectType.visitReporting |
| | | ); |
| | | |
| | | Approve approve = new Approve(); |
| | | approve.setCreateDate(new Date()); |
| | | approve.setIsdeleted(Constants.ZERO); |
| | | approve.setRemark("系统自动取消"); |
| | | approve.setTitle("取消预约"); |
| | | approve.setStatus(Constants.THREE); |
| | | approve.setStatusInfo("超时自动取消"); |
| | | approve.setObjId(s.getId()); |
| | | approve.setLevel(9999); |
| | | approve.setApproveType(2); |
| | | approve.setDriverParam(Constants.ZERO); |
| | | approve.setAddrParam(Constants.ZERO); |
| | | approve.setObjType(s.getType()); |
| | | approve.setType(Constants.ZERO); |
| | | approve.setCheckDate(new Date()); |
| | | approveMapper.insert(approve); |
| | | |
| | | // //更新审批中的记录为取消 |
| | | // approveMapper.update(null, |
| | |
| | | noticesJoinMapper.update(null, |
| | | new UpdateWrapper<Notices>().lambda() |
| | | .set(Notices::getEditDate,new Date()) |
| | | .set(Notices::getInfo,info) |
| | | .set(Notices::getParam2,Constants.FOUR)//已取消 |
| | | .set(Notices::getInfo,"自动取消") |
| | | .setSql(" param4 = user_id ") |
| | | .set(Notices::getStatus,Constants.ONE) |
| | | .set(Notices::getParam2,Constants.ONE)//已取消 |
| | | .eq(Notices::getStatus,Constants.ZERO) |
| | | .eq(Notices::getParam2,Constants.ZERO)//待处理 |
| | | .eq(Notices::getObjId,objId) |