| | |
| | | List<LtkjHybgd> hybgds = ltkjHybgdService.getReportJianYanBaoGaoDanList(hysqd.getTmh()); |
| | | if(null !=hybgds && !hybgds.isEmpty()){ |
| | | // hybgds = hybgds.stream().distinct().collect(Collectors.toList()); |
| | | hybgds = new ArrayList<>(hybgds.stream() |
| | | .collect(Collectors.toMap(LtkjHybgd::getJcxm, p -> p, (existing, replacement) -> existing)) |
| | | .values()); |
| | | // hybgds = new ArrayList<>(hybgds.stream() |
| | | // .collect(Collectors.toMap(LtkjHybgd::getJcxm, p -> p, (existing, replacement) -> existing)) |
| | | // .values()); |
| | | |
| | | |
| | | Map<String, List<LtkjHybgd>> listMap = hybgds.stream().collect(Collectors.groupingBy(LtkjHybgd::getJyjg)); |
| | |
| | | LambdaQueryWrapper<SysDictData> wrapper = new LambdaQueryWrapper<>(); |
| | | wrapper.eq(SysDictData::getDictType,"qj_type"); |
| | | wrapper.eq(SysDictData::getDictLabel,firstKey); |
| | | List<SysDictData> dictList = sysDictDataService.list(); |
| | | List<SysDictData> dictList = sysDictDataService.list(wrapper); |
| | | if (!dictList.isEmpty()) { |
| | | isGroupOnce = true; |
| | | groupOnceProResult = firstKey; |
| | |
| | | parent.put("", remark.getXmlb()); |
| | | List<TjOrderDetail> dels = new ArrayList<>(); |
| | | if (null != tjOrderDetails && !tjOrderDetails.isEmpty()) { |
| | | |
| | | Map<String, List<TjOrderDetail>> listMap = tjOrderDetails.stream() |
| | | .filter(i -> StrUtil.isNotBlank(i.getProResult()) && remark.getProsId().equals(i.getProsId())) |
| | | .collect(Collectors.groupingBy(TjOrderDetail::getProResult)); |
| | | // null !=dictList && |
| | | |
| | | boolean isGroupOnce = false; |
| | | String groupOnceProResult = ""; |
| | | if (listMap.size() == 1){ |
| | |
| | | LambdaQueryWrapper<SysDictData> wrapper = new LambdaQueryWrapper<>(); |
| | | wrapper.eq(SysDictData::getDictType,"qj_type"); |
| | | wrapper.eq(SysDictData::getDictLabel,firstKey); |
| | | List<SysDictData> dictList = sysDictDataService.list(); |
| | | if (!dictList.isEmpty()) { |
| | | List<SysDictData> dictList = sysDictDataService.list(wrapper); |
| | | if (!dictList.isEmpty()) { |
| | | isGroupOnce = true; |
| | | groupOnceProResult = firstKey; |
| | | } |
| | |
| | | if (tjReservation.getIsExpire() == 1) { |
| | | return AjaxResult.error("预约已过期不可修改"); |
| | | } |
| | | tjReservation.setIdCard(reservation.getIdCard()); |
| | | tjReservation.setPhoe(reservation.getPhoe()); |
| | | tjReservation.setName(reservation.getName()); |
| | | // tjReservation.setIdCard(reservation.getIdCard()); |
| | | // tjReservation.setPhoe(reservation.getPhoe()); |
| | | // tjReservation.setName(reservation.getName()); |
| | | if (tjReservationService.updateById(tjReservation)) { |
| | | taskService.removeTask(new TjReservationTask(tjReservation.getId())); |
| | | taskService.addTask(new TjReservationTask(tjReservation.getId(), |