| | |
| | | package com.ots.project.exam.controller; |
| | | |
| | | import com.ots.common.utils.security.ShiroUtils; |
| | | import com.ots.framework.web.controller.BaseController; |
| | | import com.ots.framework.web.page.TableDataInfo; |
| | |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | | |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * 首页展示内容 |
| | | */ |
| | | @Controller |
| | | @RequestMapping("/mail/index") |
| | | public class MainIndexController extends BaseController { |
| | | |
| | | |
| | | /** |
| | | * 最近50个完成测试记录 |
| | | * |
| | | * @param sysUserExtend |
| | | * @return |
| | | */ |
| | | @PostMapping("/listCompleteTestRecord") |
| | | @ResponseBody |
| | | public TableDataInfo listCompleteTestRecord(SysUserExtend sysUserExtend) { |
| | |
| | | if (Objects.nonNull(sysUserExtend.getParentUserTempId())) { |
| | | sysUserExtend.setParentUserId(sysUserExtend.getParentUserTempId()); |
| | | } |
| | | |
| | | // List<SysUserExtend> list = sysUserExtendService.selectSysUserExtendList(sysUserExtend); |
| | | return getDataTable(null); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * @param sysUserExtend |
| | | * @return |
| | | */ |
| | | @PostMapping("/listAnsweringTestRecord") |
| | | @ResponseBody |
| | | public TableDataInfo listAnsweringTestRecord(SysUserExtend sysUserExtend) { |
| | |
| | | if (Objects.nonNull(sysUserExtend.getParentUserTempId())) { |
| | | sysUserExtend.setParentUserId(sysUserExtend.getParentUserTempId()); |
| | | } |
| | | |
| | | // List<SysUserExtend> list = sysUserExtendService.selectSysUserExtendList(sysUserExtend); |
| | | return getDataTable(null); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 最近创建的20个测试包 |
| | | * |
| | | * @param sysUserExtend |
| | | * @return |
| | | */ |
| | | @PostMapping("/listRecentlyCreatedTestPackage") |
| | | @ResponseBody |
| | | public TableDataInfo listRecentlyCreatedTestPackage(SysUserExtend sysUserExtend) { |
| | |
| | | if (Objects.nonNull(sysUserExtend.getParentUserTempId())) { |
| | | sysUserExtend.setParentUserId(sysUserExtend.getParentUserTempId()); |
| | | } |
| | | |
| | | // List<SysUserExtend> list = sysUserExtendService.selectSysUserExtendList(sysUserExtend); |
| | | return getDataTable(null); |
| | | } |
| | | } |