| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | import java.util.List; |
| | | |
| | |
| | | @GetMapping(value = "/list") |
| | | public AjaxResult<List<TNotice>> list() { |
| | | return AjaxResult.success(noticeService.list(Wrappers.lambdaQuery(TNotice.class) |
| | | .ge(TNotice::getStartTime, LocalDateTime.now()) |
| | | .le(TNotice::getEndTime,LocalDateTime.now()))); |
| | | .ge(TNotice::getStartTime, LocalDate.now()) |
| | | .le(TNotice::getEndTime,LocalDate.now()))); |
| | | |
| | | } |
| | | |