|
@ -327,7 +327,7 @@ public class IcPartyServiceCenterServiceImpl extends BaseServiceImpl<IcPartyServ |
|
|
if (null == entity){ |
|
|
if (null == entity){ |
|
|
throw new EpmetException("不存在此预约事项"); |
|
|
throw new EpmetException("不存在此预约事项"); |
|
|
} |
|
|
} |
|
|
List<String> dateList = getDateList(entity.getAppointmentType()); |
|
|
List<String> dateList = getDateList(entity.getAppointmentType(), entity.getCustomDay()); |
|
|
Boolean s = false; |
|
|
Boolean s = false; |
|
|
for (String d : dateList) { |
|
|
for (String d : dateList) { |
|
|
if (d.equals(formDTO.getAppointmentDate())){ |
|
|
if (d.equals(formDTO.getAppointmentDate())){ |
|
@ -388,7 +388,7 @@ public class IcPartyServiceCenterServiceImpl extends BaseServiceImpl<IcPartyServ |
|
|
if (null == entity){ |
|
|
if (null == entity){ |
|
|
throw new EpmetException("不存在此预约事项"); |
|
|
throw new EpmetException("不存在此预约事项"); |
|
|
} |
|
|
} |
|
|
List<String> dateList = getDateList(entity.getAppointmentType()); |
|
|
List<String> dateList = getDateList(entity.getAppointmentType(), entity.getCustomDay()); |
|
|
Boolean s = false; |
|
|
Boolean s = false; |
|
|
for (String d : dateList) { |
|
|
for (String d : dateList) { |
|
|
if (d.equals(formDTO.getAppointmentDate())){ |
|
|
if (d.equals(formDTO.getAppointmentDate())){ |
|
@ -499,7 +499,7 @@ public class IcPartyServiceCenterServiceImpl extends BaseServiceImpl<IcPartyServ |
|
|
throw new RenException("事项不存在..."); |
|
|
throw new RenException("事项不存在..."); |
|
|
} |
|
|
} |
|
|
result.setAppointmentType(matter.getAppointmentType()); |
|
|
result.setAppointmentType(matter.getAppointmentType()); |
|
|
result.setDateList(getDateList(result.getAppointmentType())); |
|
|
result.setDateList(getDateList(result.getAppointmentType(), matter.getCustomDay())); |
|
|
LambdaQueryWrapper<IcMatterAppointmentRecordEntity> l = new LambdaQueryWrapper<>(); |
|
|
LambdaQueryWrapper<IcMatterAppointmentRecordEntity> l = new LambdaQueryWrapper<>(); |
|
|
l.eq(IcMatterAppointmentRecordEntity::getMatterId,formDTO.getMatterId()) |
|
|
l.eq(IcMatterAppointmentRecordEntity::getMatterId,formDTO.getMatterId()) |
|
|
.eq(IcMatterAppointmentRecordEntity::getAppointmentDate,formDTO.getDate()) |
|
|
.eq(IcMatterAppointmentRecordEntity::getAppointmentDate,formDTO.getDate()) |
|
@ -564,14 +564,16 @@ public class IcPartyServiceCenterServiceImpl extends BaseServiceImpl<IcPartyServ |
|
|
return result; |
|
|
return result; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public List<String> getDateList(String type) { |
|
|
public List<String> getDateList(String type, String customDay) { |
|
|
List<String> result = new ArrayList<>(); |
|
|
List<String> result = new ArrayList<>(); |
|
|
if (type.equals(PartyServiceCenterConstant.APPOINTMENT_TYPE_EVERY_DAY)){ |
|
|
if (type.equals(PartyServiceCenterConstant.APPOINTMENT_TYPE_EVERY_DAY)){ |
|
|
result = DateUtils.getEveryDayList(new Date(),NumConstant.SEVEN); |
|
|
result = DateUtils.getEveryDayList(new Date(),NumConstant.SEVEN); |
|
|
}else if (type.equals(PartyServiceCenterConstant.APPOINTMENT_TYPE_WORK_DAY)){ |
|
|
}else if (type.equals(PartyServiceCenterConstant.APPOINTMENT_TYPE_WORK_DAY)){ |
|
|
result = DateUtils.getWorkDayList(new Date(),NumConstant.SEVEN); |
|
|
result = DateUtils.getWorkDayList(new Date(),NumConstant.SEVEN); |
|
|
}else { |
|
|
}else if (type.equals(PartyServiceCenterConstant.APPOINTMENT_TYPE_WEEKEND)){ |
|
|
result = DateUtils.getWeekendDayList(new Date(),NumConstant.SEVEN); |
|
|
result = DateUtils.getWeekendDayList(new Date(),NumConstant.SEVEN); |
|
|
|
|
|
}else if (type.equals(PartyServiceCenterConstant.APPOINTMENT_TYPE_CUSTOM)){ |
|
|
|
|
|
result = DateUtils.getCustomDay(new Date(),NumConstant.SEVEN, customDay); |
|
|
} |
|
|
} |
|
|
return result; |
|
|
return result; |
|
|
} |
|
|
} |
|
|