基于javaweb的SSM+Maven大学生综合素质测评(java+ssm+vue+mysql)

运行环境

Java≥8、MySQL≥5.7、Tomcat≥8、Node.js≥14

开发工具

后端:eclipse/idea/myeclipse/sts等均可配置运行
前端:WebStorm/VSCode/HBuilderX等均可

❗没学过node.js的不要搞前后端分离项目

适用

课程设计,大作业,毕业设计,项目练习,学习演示等

功能说明

171523260309

191523260309

201523260309

211523260309

221523260309

231523260309

241523260309

251523260309

基于javaweb的SSM+Maven大学生综合素质测评(java+ssm+vue+mysql)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
管理员:
admin 123456

学生:
学生1 123456
学生2 123456
学生3 123456
学生4 123456
学生5 123456
学生6 123456


老师:
老师1 123456
老师2 123456
老师3 123456
老师4 123456
老师5 123456
老师6 123456

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
				c.setTime(new Date()); 
c.add(Calendar.DAY_OF_MONTH,remindStart);
remindStartDate = c.getTime();
map.put("remindstart", sdf.format(remindStartDate));
}
if(map.get("remindend")!=null) {
Integer remindEnd = Integer.parseInt(map.get("remindend").toString());
c.setTime(new Date());
c.add(Calendar.DAY_OF_MONTH,remindEnd);
remindEndDate = c.getTime();
map.put("remindend", sdf.format(remindEndDate));
}
}

Wrapper<XueshengfankuiEntity> wrapper = new EntityWrapper<XueshengfankuiEntity>();
if(map.get("remindstart")!=null) {
wrapper.ge(columnName, map.get("remindstart"));
}
if(map.get("remindend")!=null) {
wrapper.le(columnName, map.get("remindend"));
}

String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("xuesheng")) {
wrapper.eq("xuehao", (String)request.getSession().getAttribute("username"));
}
if(tableName.equals("laoshi")) {
wrapper.eq("laoshizhanghao", (String)request.getSession().getAttribute("username"));
}

int count = xueshengfankuiService.selectCount(wrapper);
return R.ok().put("count", count);
}



}


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
public R info(@PathVariable("id") Long id){
ZongcechengjiEntity zongcechengji = zongcechengjiService.selectById(id);
return R.ok().put("data", zongcechengji);
}

/**
* 前端详情
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
ZongcechengjiEntity zongcechengji = zongcechengjiService.selectById(id);
return R.ok().put("data", zongcechengji);
}




/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody ZongcechengjiEntity zongcechengji, HttpServletRequest request){
zongcechengji.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(zongcechengji);

zongcechengjiService.insert(zongcechengji);
return R.ok();
}

/**
* 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody ZongcechengjiEntity zongcechengji, HttpServletRequest request){
zongcechengji.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(zongcechengji);

zongcechengjiService.insert(zongcechengji);
return R.ok();
}

/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody ZongcechengjiEntity zongcechengji, HttpServletRequest request){
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36




/**
* 老师
* 后端接口
* @email
*/
@RestController
@RequestMapping("/laoshi")
public class LaoshiController {
@Autowired
private LaoshiService laoshiService;

@Autowired
private TokenService tokenService;

/**
* 登录
*/
@IgnoreAuth
@RequestMapping(value = "/login")
public R login(String username, String password, String captcha, HttpServletRequest request) {
LaoshiEntity user = laoshiService.selectOne(new EntityWrapper<LaoshiEntity>().eq("laoshizhanghao", username));
if(user==null || !user.getMima().equals(password)) {
return R.error("账号或密码不正确");
}
String token = tokenService.generateToken(user.getId(), username,"laoshi", "老师" );
return R.ok().put("token", token);
}

/**
* 注册
*/
@IgnoreAuth
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
YuanxixinxiEntity yuanxixinxi = yuanxixinxiService.selectById(id);
return R.ok().put("data", yuanxixinxi);
}

/**
* 前端详情
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
YuanxixinxiEntity yuanxixinxi = yuanxixinxiService.selectById(id);
return R.ok().put("data", yuanxixinxi);
}




/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody YuanxixinxiEntity yuanxixinxi, HttpServletRequest request){
yuanxixinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(yuanxixinxi);

yuanxixinxiService.insert(yuanxixinxi);
return R.ok();
}

/**
* 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody YuanxixinxiEntity yuanxixinxi, HttpServletRequest request){
yuanxixinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(yuanxixinxi);

yuanxixinxiService.insert(yuanxixinxi);
return R.ok();
}

/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody YuanxixinxiEntity yuanxixinxi, HttpServletRequest request){
//ValidatorUtils.validateEntity(yuanxixinxi);
yuanxixinxiService.updateById(yuanxixinxi);//全部更新
return R.ok();
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
			SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar c = Calendar.getInstance();
Date remindStartDate = null;
Date remindEndDate = null;
if(map.get("remindstart")!=null) {
Integer remindStart = Integer.parseInt(map.get("remindstart").toString());
c.setTime(new Date());
c.add(Calendar.DAY_OF_MONTH,remindStart);
remindStartDate = c.getTime();
map.put("remindstart", sdf.format(remindStartDate));
}
if(map.get("remindend")!=null) {
Integer remindEnd = Integer.parseInt(map.get("remindend").toString());
c.setTime(new Date());
c.add(Calendar.DAY_OF_MONTH,remindEnd);
remindEndDate = c.getTime();
map.put("remindend", sdf.format(remindEndDate));
}
}

Wrapper<SushewenmingEntity> wrapper = new EntityWrapper<SushewenmingEntity>();
if(map.get("remindstart")!=null) {
wrapper.ge(columnName, map.get("remindstart"));
}
if(map.get("remindend")!=null) {
wrapper.le(columnName, map.get("remindend"));
}

String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("xuesheng")) {
wrapper.eq("xuehao", (String)request.getSession().getAttribute("username"));
}
if(tableName.equals("laoshi")) {
wrapper.eq("laoshizhanghao", (String)request.getSession().getAttribute("username"));
}

int count = sushewenmingService.selectCount(wrapper);
return R.ok().put("count", count);
}



}


项目链接:
https://javayms.github.io?id=171523260309201dl
https://javayms.pages.dev?id=171523260309201dl