|
|
@ -16,6 +16,7 @@ import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.mapper.Condition;
|
|
|
|
import com.baomidou.mybatisplus.mapper.Condition;
|
|
|
|
import com.baomidou.mybatisplus.plugins.Page;
|
|
|
|
import com.baomidou.mybatisplus.plugins.Page;
|
|
|
|
|
|
|
|
import com.tamguo.common.utils.DateUtil;
|
|
|
|
import com.tamguo.common.utils.SystemConstant;
|
|
|
|
import com.tamguo.common.utils.SystemConstant;
|
|
|
|
import com.tamguo.modules.sys.model.SysAreaEntity;
|
|
|
|
import com.tamguo.modules.sys.model.SysAreaEntity;
|
|
|
|
import com.tamguo.modules.sys.service.ISysAreaService;
|
|
|
|
import com.tamguo.modules.sys.service.ISysAreaService;
|
|
|
@ -57,7 +58,7 @@ public class PaperController {
|
|
|
|
@PathVariable String year , @PathVariable String area , @PathVariable Integer pageNum, ModelAndView model) {
|
|
|
|
@PathVariable String year , @PathVariable String area , @PathVariable Integer pageNum, ModelAndView model) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
// request url
|
|
|
|
// request url
|
|
|
|
logger.info("request url :{}" , request.getRequestURI());
|
|
|
|
logger.info("request url :{} , time:{} " , request.getRequestURI() , DateUtil.getCurrentDateYYYYMMDDStr() );
|
|
|
|
CourseEntity course = iCourseService.selectById(courseId);
|
|
|
|
CourseEntity course = iCourseService.selectById(courseId);
|
|
|
|
List<CourseEntity> courseList = iCourseService.selectList(Condition.create().eq("subject_id", subjectId));
|
|
|
|
List<CourseEntity> courseList = iCourseService.selectList(Condition.create().eq("subject_id", subjectId));
|
|
|
|
SubjectEntity subject = iSubjectService.selectById(subjectId);
|
|
|
|
SubjectEntity subject = iSubjectService.selectById(subjectId);
|
|
|
@ -112,7 +113,7 @@ public class PaperController {
|
|
|
|
public ModelAndView indexAction(HttpServletRequest request , @PathVariable String paperId , ModelAndView model){
|
|
|
|
public ModelAndView indexAction(HttpServletRequest request , @PathVariable String paperId , ModelAndView model){
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
// request url
|
|
|
|
// request url
|
|
|
|
logger.info("request url :{}" , request.getRequestURI());
|
|
|
|
logger.info("request url :{} , time:{} " , request.getRequestURI() , DateUtil.getCurrentDateYYYYMMDDStr() );
|
|
|
|
model.setViewName("paper");
|
|
|
|
model.setViewName("paper");
|
|
|
|
PaperEntity paper = iPaperService.selectById(paperId);
|
|
|
|
PaperEntity paper = iPaperService.selectById(paperId);
|
|
|
|
model.addObject("paper", paper);
|
|
|
|
model.addObject("paper", paper);
|
|
|
|