| | |
| | | import com.mindskip.xzs.service.ExamTemplatesService; |
| | | import com.mindskip.xzs.utility.PageInfoHelper; |
| | | import com.mindskip.xzs.viewmodel.admin.exam.ExamPaperEditRequestVM; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.validation.Valid; |
| | |
| | | |
| | | @RequestMapping(value = "/list", method = RequestMethod.GET) |
| | | public RestResponse<PageInfo<ExamTemplatesVO>> list(ExamTemplatesVO examTemplatesVO) throws Exception { |
| | | PageInfo<ExamTemplates> pageInfo = examTemplatesService.gets(examTemplatesVO); |
| | | PageInfo<ExamTemplates> pageInfo = examTemplatesService.getByadmins(examTemplatesVO); |
| | | PageInfo<ExamTemplatesVO> info = PageInfoHelper.copyMap(pageInfo, e -> { |
| | | ExamTemplatesVO vo = new ExamTemplatesVO(); |
| | | vo.setName(e.getName()); |