| | |
| | | public TableDataInfo list(TjReservation tjReservation) { |
| | | startPage(); |
| | | List<TjReservation> list = tjReservationService.selectTjReservationList(tjReservation); |
| | | if(null !=list && list.size()>0){ |
| | | for (TjReservation reservation : list) { |
| | | reservation.setName(MatchUtils.hideCusName(reservation.getName())); |
| | | reservation.setPhoe(MatchUtils.hidePhoneNum(reservation.getPhoe())); |
| | | reservation.setIdCard(MatchUtils.hideIdCardNum(reservation.getIdCard())); |
| | | } |
| | | } |
| | | // if(null !=list && list.size()>0){ |
| | | // for (TjReservation reservation : list) { |
| | | // reservation.setName(MatchUtils.hideCusName(reservation.getName())); |
| | | // reservation.setPhoe(MatchUtils.hidePhoneNum(reservation.getPhoe())); |
| | | // reservation.setIdCard(MatchUtils.hideIdCardNum(reservation.getIdCard())); |
| | | // } |
| | | // } |
| | | return getDataTable(list); |
| | | } |
| | | |
| | |
| | | String idCard = tjReservation.getIdCard(); |
| | | String phoe = tjReservation.getPhoe(); |
| | | if (null != idCard && null != phoe) { |
| | | if (!MatchUtils.isIdCard(idCard) || !MatchUtils.isMobileNO(phoe)) { |
| | | // if (!MatchUtils.isIdCard(idCard) || !MatchUtils.isMobileNO(phoe)) { |
| | | if (idCard.isEmpty() || phoe.isEmpty()) { |
| | | wrongList.add(tjReservation.getName()); |
| | | } else { |
| | | //年龄 |
| | | tjReservation.setAge(String.valueOf(MatchUtils.getAgeByIdCard(tjReservation.getIdCard()))); |
| | | //出生日期 |
| | | tjReservation.setBirthday(DateUtil.parse(MatchUtils.getBirthDayByIdCard(tjReservation.getIdCard()),"yyyy-MM-dd")); |
| | | |
| | | if (null != groupingMan && groupingMan.getSex().equals(String.valueOf(tjReservation.getSex()))) { |
| | | |
| | | tjReservation.setGroupingId(groupingMan.getId()); |
| | |
| | | */ |
| | | @PostMapping("/tjReappoint") |
| | | @ApiOperation(value = "体检预约修改接口") |
| | | @Transactional |
| | | public AjaxResult tjReappoint(@RequestBody TjReservation tjReservation) { |
| | | TjReservation reservation = tjReservationService.getById(tjReservation.getId()); |
| | | |
| | |
| | | if (tjReservationService.updateById(tjReservation)) { |
| | | taskService.removeTask(new TjReservationTask(tjReservation.getId())); |
| | | taskService.addTask(new TjReservationTask(tjReservation.getId(), |
| | | DateUtil.between(new Date(),DateUtil.endOfDay(tjReservation.getReservationTime()), DateUnit.MS))); |
| | | DateUtil.between(new Date(),DateUtil.endOfDay(DateUtil.offsetDay(tjReservation.getReservationTime(),reservation.getYxts())), DateUnit.MS))); |
| | | return AjaxResult.success("操作成功"); |
| | | } |
| | | return AjaxResult.error("操作失败"); |
| | |
| | | tramNum+=1; |
| | | reservation.setTjType(String.valueOf(1)); |
| | | reservation.setTeamNo(teamNo); |
| | | reservation.setYxts(dto.getYxts()); |
| | | tjReservationService.save(reservation); |
| | | taskService.addTask(new TjReservationTask(reservation.getId(),DateUtil.between(new Date(),DateUtil.endOfDay(reservation.getReservationTime()), DateUnit.MS))); |
| | | taskService.addTask(new TjReservationTask(reservation.getId(),DateUtil.between(new Date(),DateUtil.endOfDay(DateUtil.offsetDay(reservation.getReservationTime(),dto.getYxts())), DateUnit.MS))); |
| | | } |
| | | LambdaQueryWrapper<TjCompPay> wq0 = new LambdaQueryWrapper<>(); |
| | | wq0.eq(TjCompPay::getCompId, dwDept.getDwId()); |