use of com.gwc.workday.vo.EventVO in project workday by peer44.
the class HolidayController method init.
@ApiOperation(value = "加载节假日")
@GetMapping(value = "holiday/init")
@ResponseBody
public List<EventVO> init() {
List<WorkDay> workDays = workDayService.findAllHolidays();
List<EventVO> events = new ArrayList<>();
if (!CollectionUtils.isEmpty(workDays)) {
workDays.forEach(workDay -> {
EventVO event = new EventVO(workDay.getDate());
events.add(event);
});
}
return events;
}
Aggregations