Browse Source

预约时间段

dev_shibei_match
zxc 4 years ago
parent
commit
be0c5f97a3
  1. 11
      epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/IcPartyServiceCenterServiceImpl.java

11
epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/IcPartyServiceCenterServiceImpl.java

@ -438,6 +438,17 @@ public class IcPartyServiceCenterServiceImpl extends BaseServiceImpl<IcPartyServ
String concat = formDTO.getDate().concat(" ").concat(list.get(NumConstant.ONE)).concat(":00");
LocalDateTime parse = LocalDateTime.parse(concat, df);
t.setIsAppointment(parse.isAfter(now));
if (CollectionUtils.isNotEmpty(records)){
records.forEach(r -> {
String[] split = r.getTimeId().split(",");
for (String s : split) {
if (s.equals(t.getTimeId())) {
t.setIsMiss(true);
break;
}
}
});
}
}
}
if (LocalDate.now().isAfter(LocalDate.parse(formDTO.getDate()))){

Loading…
Cancel
Save