一、项目简述
本系统功能包括: 管理员:学生信息管理,辅导员管理,首页,个人信息,成绩管理,宿舍管理,班级公告管理,教学管理,班级管理,宿舍评分管理等; 辅导员:个人中心 ,修改密码,学生管理,成绩管理,专业管理等 二、项目运行
开发语言:Java 开发工具:IDEA /Eclipse 数据库:MYSQL5.7 应用服务:Tomcat7/Tomcat8 使用框架:ssm
效果图
班级信息控制器类
@RestController
@RequestMapping("/banjixinxi")
public class BanjixinxiController {
@Autowired
private BanjixinxiService banjixinxiService;
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,BanjixinxiEntity banjixinxi,
HttpServletRequest request){
EntityWrapper<BanjixinxiEntity> ew = new EntityWrapper<BanjixinxiEntity>();
PageUtils page = banjixinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, banjixinxi), params), params));
return R.ok().put("data", page);
}
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,BanjixinxiEntity banjixinxi,
HttpServletRequest request){
EntityWrapper<BanjixinxiEntity> ew = new EntityWrapper<BanjixinxiEntity>();
PageUtils page = banjixinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, banjixinxi), params), params));
return R.ok().put("data", page);
}
@RequestMapping("/lists")
public R list( BanjixinxiEntity banjixinxi){
EntityWrapper<BanjixinxiEntity> ew = new EntityWrapper<BanjixinxiEntity>();
ew.allEq(MPUtil.allEQMapPre( banjixinxi, "banjixinxi"));
return R.ok().put("data", banjixinxiService.selectListView(ew));
}
@RequestMapping("/query")
public R query(BanjixinxiEntity banjixinxi){
EntityWrapper< BanjixinxiEntity> ew = new EntityWrapper< BanjixinxiEntity>();
ew.allEq(MPUtil.allEQMapPre( banjixinxi, "banjixinxi"));
BanjixinxiView banjixinxiView = banjixinxiService.selectView(ew);
return R.ok("查询班级信息成功").put("data", banjixinxiView);
}
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
BanjixinxiEntity banjixinxi = banjixinxiService.selectById(id);
return R.ok().put("data", banjixinxi);
}
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
BanjixinxiEntity banjixinxi = banjixinxiService.selectById(id);
return R.ok().put("data", banjixinxi);
}
@RequestMapping("/save")
public R save(@RequestBody BanjixinxiEntity banjixinxi, HttpServletRequest request){
banjixinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
banjixinxiService.insert(banjixinxi);
return R.ok();
}
@RequestMapping("/add")
public R add(@RequestBody BanjixinxiEntity banjixinxi, HttpServletRequest request){
banjixinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
banjixinxiService.insert(banjixinxi);
return R.ok();
}
|