| | |
| | | import com.ruoyi.management.query.UseGuideQuery; |
| | | import com.ruoyi.management.service.ITFeedbackService; |
| | | import com.ruoyi.management.vo.FeedbackVO; |
| | | import com.ruoyi.study.api.domain.TUser; |
| | | import com.ruoyi.study.api.feignClient.StudyClient; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Controller; |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @Autowired |
| | | private StudyClient studyClient; |
| | | @ResponseBody |
| | | @PostMapping("/listAll") |
| | | @ApiOperation(value = "列表查询", tags = {"反馈管理"}) |
| | | public AjaxResult<PageInfo<FeedbackVO>> listAll(FeedbackQuery query){ |
| | | // if (query.getEndTime()!=null){ |
| | | // query.getEndTime().setHours(23); |
| | | // query.getEndTime().setMinutes(59); |
| | | // query.getEndTime().setSeconds(59); |
| | | // } |
| | | List<FeedbackVO> list = feedbackService.listAll(query); |
| | | PageInfo<FeedbackVO> res = new PageInfo<>(query.getPageNumber(), query.getPageSize()); |
| | | res.setTotal(list.size()); |
| | | List<FeedbackVO> list = feedbackService.listAll(query,res); |
| | | res.setRecords(list); |
| | | return AjaxResult.success(res); |
| | | } |