| | |
| | | import com.doumee.service.business.third.EmayService; |
| | | import com.github.xiaoymin.knife4j.core.util.CollectionUtils; |
| | | import com.github.yulichang.wrapper.MPJLambdaWrapper; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | * @date 2023/11/30 15:33 |
| | | */ |
| | | @Service |
| | | @Slf4j |
| | | public class VisitsServiceImpl implements VisitsService { |
| | | |
| | | @Autowired |
| | |
| | | } |
| | | @Override |
| | | public void visitNoCheckCancel(){ |
| | | log.info("===============待审批记录超时自动取消预约===========start======="); |
| | | List<Visits> visitsList = visitsMapper.selectList(new QueryWrapper<Visits>().lambda() |
| | | .eq(Visits::getIsdeleted,Constants.ZERO) |
| | | .eq(Visits::getStatus,Constants.VisitStatus.waitCheck) |
| | |
| | | dealAutoCancelBiz(s,date); |
| | | } |
| | | } |
| | | |
| | | log.info("===============待审批记录超时自动取消预约===========end======="); |
| | | } |
| | | |
| | | @Transactional |
| | |
| | | new UpdateWrapper<Approve>().lambda() |
| | | .set(Approve::getEditDate,date) |
| | | .set(Approve::getStatus,Constants.approveStatus.cancel) |
| | | .set(Approve::getStatusInfo,"系统已取消") |
| | | .set(Approve::getCheckInfo,"访问时间已过,系统自动取消") |
| | | .eq(Approve::getIsdeleted,Constants.ZERO) |
| | | .eq(Approve::getStatusInfo,"已取消") |
| | | .eq(Approve::getCheckInfo,"访问时间已过,系统自动取消") |
| | | .in(Approve::getStatus,Constants.approveStatus.auditIng,Constants.approveStatus.wait) |
| | | .eq(Approve::getObjId,s.getId()) |
| | | .eq(Approve::getObjType,s.getType())); |
| | | //更新待办消息状态 |
| | | noticesJoinMapper.update(null, |
| | | new UpdateWrapper<Notices>().lambda() |
| | | .set(Notices::getEditDate,date) |