• 大小: 28.68MB
    文件类型: .zip
    金币: 2
    下载: 0 次
    发布日期: 2024-01-31
  • 语言: 数据库
  • 标签: SSM  复习系统  

资源简介

基于SSM及前后端分离的复习系统源码及sql文件,希望大家能够喜欢

资源截图

代码片段和文件信息

package com.kfzx.controller;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.kfzx.model.Courses;
import com.kfzx.model.EnglishBook;
import com.kfzx.model.Politics;
import com.kfzx.service.CoursesService;
import com.kfzx.service.EnglishBookService;
import com.kfzx.service.PoliticsBookService;

@Controller
@RequestMapping
public class CoursesController {
@Autowired
private CoursesService coursesService;
@Autowired
private EnglishBookService englishBookService;
@Autowired
private PoliticsBookService politicsBookServics;

@RequestMapping(“/selectcourses“)
@ResponseBody
public void selectCourses(HttpServletRequest request HttpServletResponse response) {
coursesService.selectCourses(request response);
}

@RequestMapping(“/selectenglishbook“)
@ResponseBody
public List selectEnglishBook(HttpServletRequest request HttpServletResponse response) {
List selectEnglishBook = englishBookService.selectEnglishBook(request response);
return selectEnglishBook;
}

@RequestMapping(“/selectcoursesbyid“)
@ResponseBody
public Map> selectCoursesById(HttpServletRequest request HttpServletResponse response) {
List courses = coursesService.selectCoursesById(request response);
List english = englishBookService.selectEnglishBook(request response);
Map> map = new HashMap<>();
String c = courses.get(0).getName();
map.put(c english);
return map;
}

@RequestMapping(“/selectallcourses“)
@ResponseBody
public Map> selectAllCoursesById(HttpServletRequest request HttpServletResponse response) {
Map> map = new HashMap<>();
List list = coursesService.selectCourses(request response);
for (Courses courses : list) {
if (courses.getName().equals(“英语“)) {
List english = englishBookService.selectEnglishBook(request response);
String c = courses.getName();
map.put(c english);
}
}
for (Courses courses : list) {
if (courses.getName().equals(“政治“)) {
List politics = politicsBookServics.selectPoliticsBook(request response);
String c = courses.getName();
map.put(c politics);
}
}
return map;
}
@RequestMapping(“/selectpoliticsbook“)
@ResponseBody
public void selectPoliticsBook(HttpServletRequest request HttpServletResponse response) {
politicsBookServics.selectPoliticsBook(request response);

}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件      528070  2018-07-03 17:07  PTE1.sql
     目录           0  2018-07-09 11:01  review_vip\
     文件         661  2018-06-24 09:22  review_vip\.classpath
     目录           0  2018-07-09 11:04  review_vip\.git\
     文件           9  2018-07-09 11:04  review_vip\.git\COMMIT_EDITMSG
     文件         238  2018-07-09 11:01  review_vip\.git\config
     文件          73  2018-07-09 11:01  review_vip\.git\description
     文件           0  2018-07-09 11:03  review_vip\.git\FETCH_HEAD
     文件          23  2018-07-09 11:01  review_vip\.git\HEAD
     目录           0  2018-07-09 11:01  review_vip\.git\hooks\
     文件         478  2018-07-09 11:01  review_vip\.git\hooks\applypatch-msg.sample
     文件         896  2018-07-09 11:01  review_vip\.git\hooks\commit-msg.sample
     文件        3327  2018-07-09 11:01  review_vip\.git\hooks\fsmonitor-watchman.sample
     文件         189  2018-07-09 11:01  review_vip\.git\hooks\post-update.sample
     文件         424  2018-07-09 11:01  review_vip\.git\hooks\pre-applypatch.sample
     文件        1642  2018-07-09 11:01  review_vip\.git\hooks\pre-commit.sample
     文件        1348  2018-07-09 11:01  review_vip\.git\hooks\pre-push.sample
     文件        4898  2018-07-09 11:01  review_vip\.git\hooks\pre-rebase.sample
     文件         544  2018-07-09 11:01  review_vip\.git\hooks\pre-receive.sample
     文件        1492  2018-07-09 11:01  review_vip\.git\hooks\prepare-commit-msg.sample
     文件        3610  2018-07-09 11:01  review_vip\.git\hooks\update.sample
     文件       10306  2018-07-09 11:04  review_vip\.git\index
     目录           0  2018-07-09 11:01  review_vip\.git\info\
     文件         240  2018-07-09 11:01  review_vip\.git\info\exclude
     目录           0  2018-07-09 11:04  review_vip\.git\logs\
     文件         154  2018-07-09 11:04  review_vip\.git\logs\HEAD
     目录           0  2018-07-09 11:04  review_vip\.git\logs\refs\
     目录           0  2018-07-09 11:04  review_vip\.git\logs\refs\heads\
     文件         154  2018-07-09 11:04  review_vip\.git\logs\refs\heads\master
     目录           0  2018-07-09 11:04  review_vip\.git\objects\
     目录           0  2018-07-09 11:04  review_vip\.git\objects\01\
............此处省略424个文件信息

评论

共有 条评论