| | |
| | | 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()); |