——————————DescriptionStart——————————
运行环境 Java≥8、MySQL≥5.7、Tomcat≥8
开发工具 eclipse/idea/myeclipse/sts等均可配置运行
适用 课程设计,大作业,毕业设计,项目练习,学习演示等
功能说明
基于javaweb的SSM+Maven高校研招信息共享系统(java+ssm+js+jquery+layui+mysql)
基于SSM的高校研招信息及专业信息共享系统
角色:管理员、学生、第三方,分为前后台;
管理员:登录进入高校研招信息及专业信息共享系统可以查看主页、个人中心、学生管理、第三方管理、院系管理、专业管理、院校信息管理、专业信息管理、专业辅导管理、交流论坛、系统管理等信息进行详细操作;
学生:学生登录进入系统可以查看首页、院校信息、专业信息、专业辅导、交流论坛、新闻资讯、在线客服、个人中心等内容,并进行详细操作
第三方:第三方登录进入高校研招信息及专业信息共享系统可以查看主页、院校信息、专业信息、专业辅导、交流论坛、新闻资讯、在线客服、个人中心等内容,
使用人群: 由于本程序规模不大,可供课程设计,毕业设计学习演示之用
技术栈 后端:SSM(Spring+SpringMVC+Mybatis) 前端:JSP+CSS+JS+JQUERY+Layui
——————————CodeStart——————————
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 return R.error("用户已存在" ); } disanfang.setId(new Date().getTime()); disanfangService.insert(disanfang); return R.ok(); } @RequestMapping("/add") public R add (@RequestBody DisanfangEntity disanfang, HttpServletRequest request) { disanfang.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000 )).longValue()); DisanfangEntity u = disanfangService.selectOne(new EntityWrapper<DisanfangEntity>().eq("disanfangzhanghao" , disanfang.getDisanfangzhanghao())); if (u!=null ) { return R.error("用户已存在" ); } disanfang.setId(new Date().getTime()); disanfangService.insert(disanfang); return R.ok(); } @RequestMapping("/update") @Transactional public R update (@RequestBody DisanfangEntity disanfang, HttpServletRequest request) { disanfangService.updateById(disanfang); return R.ok(); } @RequestMapping("/delete") public R delete (@RequestBody Long[] ids) { disanfangService.deleteBatchIds(Arrays.asList(ids)); 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 @RestController @RequestMapping("/yuanxiaoxinxi") public class YuanxiaoxinxiController { @Autowired private YuanxiaoxinxiService yuanxiaoxinxiService; @Autowired private StoreupService storeupService; @RequestMapping("/page") public R page (@RequestParam Map<String, Object> params,YuanxiaoxinxiEntity yuanxiaoxinxi, HttpServletRequest request) { EntityWrapper<YuanxiaoxinxiEntity> ew = new EntityWrapper<YuanxiaoxinxiEntity>(); PageUtils page = yuanxiaoxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, yuanxiaoxinxi), params), params)); request.setAttribute("data" , page); return R.ok().put("data" , page); }
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 @RequestMapping("/save") public R save (@RequestBody DiscusszhuanyexinxiEntity discusszhuanyexinxi, HttpServletRequest request) { discusszhuanyexinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000 )).longValue()); discusszhuanyexinxiService.insert(discusszhuanyexinxi); return R.ok(); } @RequestMapping("/add") public R add (@RequestBody DiscusszhuanyexinxiEntity discusszhuanyexinxi, HttpServletRequest request) { discusszhuanyexinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000 )).longValue()); discusszhuanyexinxiService.insert(discusszhuanyexinxi); return R.ok(); } @RequestMapping("/update") @Transactional public R update (@RequestBody DiscusszhuanyexinxiEntity discusszhuanyexinxi, HttpServletRequest request) { discusszhuanyexinxiService.updateById(discusszhuanyexinxi); 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 @Transactional public R update (@RequestBody SystemintroEntity systemintro, HttpServletRequest request) { systemintroService.updateById(systemintro); return R.ok(); } @RequestMapping("/delete") public R delete (@RequestBody Long[] ids) { systemintroService.deleteBatchIds(Arrays.asList(ids)); 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 45 46 47 48 49 50 51 return R.ok().put("data" , result); } @RequestMapping("/value/{xColumnName}/{yColumnName}/{timeStatType}") public R valueDay (@PathVariable("yColumnName") String yColumnName, @PathVariable("xColumnName") String xColumnName, @PathVariable("timeStatType") String timeStatType,HttpServletRequest request) { Map<String, Object> params = new HashMap<String, Object>(); params.put("xColumn" , xColumnName); params.put("yColumn" , yColumnName); params.put("timeStatType" , timeStatType); EntityWrapper<ZhuanyexinxiEntity> ew = new EntityWrapper<ZhuanyexinxiEntity>(); List<Map<String, Object>> result = zhuanyexinxiService.selectTimeStatValue(params, ew); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd" ); for (Map<String, Object> m : result) { for (String k : m.keySet()) { if (m.get(k) instanceof Date) { m.put(k, sdf.format((Date)m.get(k))); } } } return R.ok().put("data" , result); } @RequestMapping("/group/{columnName}") public R group (@PathVariable("columnName") String columnName,HttpServletRequest request) { Map<String, Object> params = new HashMap<String, Object>(); params.put("column" , columnName); EntityWrapper<ZhuanyexinxiEntity> ew = new EntityWrapper<ZhuanyexinxiEntity>(); List<Map<String, Object>> result = zhuanyexinxiService.selectGroup(params, ew); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd" ); for (Map<String, Object> m : result) { for (String k : m.keySet()) { if (m.get(k) instanceof Date) { m.put(k, sdf.format((Date)m.get(k))); } } } return R.ok().put("data" , result); }
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 } @RequestMapping("/page") public R page (@RequestParam Map<String, Object> params,DisanfangEntity disanfang, HttpServletRequest request) { EntityWrapper<DisanfangEntity> ew = new EntityWrapper<DisanfangEntity>(); PageUtils page = disanfangService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, disanfang), params), params)); request.setAttribute("data" , page); return R.ok().put("data" , page); } @IgnoreAuth @RequestMapping("/list") public R list (@RequestParam Map<String, Object> params,DisanfangEntity disanfang, HttpServletRequest request) { EntityWrapper<DisanfangEntity> ew = new EntityWrapper<DisanfangEntity>(); PageUtils page = disanfangService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, disanfang), params), params)); request.setAttribute("data" , page); return R.ok().put("data" , page); } @RequestMapping("/lists") public R list ( DisanfangEntity disanfang) { EntityWrapper<DisanfangEntity> ew = new EntityWrapper<DisanfangEntity>(); ew.allEq(MPUtil.allEQMapPre( disanfang, "disanfang" )); return R.ok().put("data" , disanfangService.selectListView(ew)); } @RequestMapping("/query") public R query (DisanfangEntity disanfang) { EntityWrapper< DisanfangEntity> ew = new EntityWrapper< DisanfangEntity>();
——————————PayStart——————————
项目链接: https://javayms.github.io?id=411524522608201pn https://javayms.pages.dev?id=411524522608201pn