| | |
| | | TjReservation reservation = tjReservationService.getById(id); |
| | | if (null != reservation && reservation.getIsExpire() == 2) { |
| | | if (tjReservationService.removeById(id)) { |
| | | transitionService.remove(new LambdaQueryWrapper<TbTransition>().eq(TbTransition::getCusId, reservation.getIdCard())); |
| | | transitionService.remove(new LambdaQueryWrapper<TbTransition>().eq(TbTransition::getCusId, reservation.getIdCard()) |
| | | .isNull(TbTransition::getTjNum)); |
| | | taskService.removeTask(new TjReservationTask(id)); |
| | | } |
| | | } |
| | |
| | | LambdaQueryWrapper<TjGroupingPro> wq = new LambdaQueryWrapper<>(); |
| | | wq.eq(TjGroupingPro::getGroupingId, groupingId); |
| | | List<TjGroupingPro> proList = groupingProService.list(wq); |
| | | if (null != proList && proList.size() > 0) { |
| | | if (null != proList && !proList.isEmpty()) { |
| | | for (TjGroupingPro groupingPro : proList) { |
| | | TjProject project = projectService.getById(groupingPro.getProId()); |
| | | if (null != project) { |
| | | if (project.getProType() == null || project.getProType().equals("")) { |
| | | if (project.getProType() == null || project.getProType().isEmpty()) { |
| | | groupingPro.setProType("2"); |
| | | } else { |
| | | groupingPro.setProType(project.getProType()); |
| | |
| | | return AjaxResult.error("此身份证号: "+reservation.getIdCard()+" 重复,请核对后上传!"); |
| | | |
| | | } |
| | | |
| | | reservation.setName(reservation.getName().replaceAll(" ","").replaceAll(" ","")); |
| | | ids.add(reservation.getIdCard()); |
| | | |
| | | TjDwGrouping dwGrouping = dwGroupingService.getById(reservation.getGroupingId()); |