• SpringBoot+Vue项目招生管理系统


    文末获取源码

    开发语言:Java

    框架:springboot

    JDK版本:JDK1.8

    服务器:tomcat7

    数据库:mysql 5.7/8.0

    数据库工具:Navicat11

    开发软件:eclipse/myeclipse/idea

    Maven包:Maven3.3.9

    浏览器:谷歌浏览器

    前言介绍  

    招生管理系统采用java技术,基于springboot框架,mysql数据库进行开发。本系统主要包括管理员和学生两个角色组成,主要包括以下功能:

    (1)前台:首页、专业信息、招生公告、个人中心、后台管理 。

    (2)管理员:首页、个人中心、学生管理、专业信息管理、专业报名管理、录取通知管理、系统管理等功能。

    (3)学生:首页、个人中心、专业报名管理、录取通知管理等功能。

    系统功能结构图 

    系统功能结构图是系统设计阶段,系统功能结构图只是这个阶段一个基础,整个系统的架构决定了系统的整体模式,是系统的根据。招生管理系统的整个设计结构如图

    系统功能模块

    招生管理系统,在系统首页可以查看首页、专业信息、招生公告、个人中心、后台管理等内容进行详细操作,如图 

    学生注册

    在学生注册页面通过填写学号、密码、确认密码、姓名、手机等内容进行注册等操作,如图 

     

    专业信息

    在专业信息页面可以查看学校名称、专业类别、招录人数、招录要求、招录状态等内容进行报名等操作,如图

     

    个人中心

    在个人中心页面通过填写个人中心,学号、密码、 姓名、性别、图片、手机等内容进行更新信息等操作,如图 

    管理员功能模块

    管理员登录,在系统首页通过填写用户名、密码选择角色进行操作,登录后就可以使用了,如图 

     

    管理员登录系统后,可以对首页、个人中心、学生管理、专业信息管理、专业报名管理、录取通知管理、系统管理等功能模块进行相应操作,如图

     

    学生管理

    在学生管理页面可以对索引、学号、姓名、性别、头像、手机等内容进行修改或删除等操作,如图 

    专业信息管理

    在专业信息管理页面可以对索引、学校名称、专业名称、专业类别、图片、招录人数、招录状态等内容进行详情、修改或删除等操作,如图 

    专业报名管理

    在专业报名管理页面可以对索引、学校名称、专业名称、报名资料、报名时间、学号、姓名、手机、审核回复、审核状态、审核等内容进行详情、通知、修改或删除等操作,如图 

     

    录取通知管理

    在录取通知管理页面可以对索引、学校名称、专业名称、学号、姓名、手机、通知时间、录取结果等内容进行详情、修改或删除等操作,如图 

    系统管理

    在招生公告页面中可以对索引、标题、图片等内容进行详情、修改或删除等操作,也可以对轮播图管理进行相应的操作,如图 

    学生功能模块

    进入学生系统首页可以查看首页、个人中心、专业报名管理、录取通知管理等内容进行详细的操作,如图 

    专业报名管理

    在专业报名管理页面可以对索引、学校名称、专业名称、报名资料、报名时间、学号、姓名、手机、审核回复、审核状态等内容进行详情或删除等操作,如图 

     

    录取通知管理

    在录取通知管理页面可以对索引、学校名称、专业名称、学号、姓名、手机、通知时间、录取结果等内容进行详情等操作,如图 

    部分核心代码 

    1. /**
    2. * 专业报名
    3. * 后端接口
    4. * @author
    5. * @email
    6. * @date 2022-03-12 20:42:35
    7. */
    8. @RestController
    9. @RequestMapping("/zhuanyebaoming")
    10. public class ZhuanyebaomingController {
    11. @Autowired
    12. private ZhuanyebaomingService zhuanyebaomingService;
    13. /**
    14. * 后端列表
    15. */
    16. @RequestMapping("/page")
    17. public R page(@RequestParam Map<String, Object> params,ZhuanyebaomingEntity zhuanyebaoming,
    18. HttpServletRequest request){
    19. String tableName = request.getSession().getAttribute("tableName").toString();
    20. if(tableName.equals("xuesheng")) {
    21. zhuanyebaoming.setXuehao((String)request.getSession().getAttribute("username"));
    22. }
    23. EntityWrapper<ZhuanyebaomingEntity> ew = new EntityWrapper<ZhuanyebaomingEntity>();
    24. PageUtils page = zhuanyebaomingService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, zhuanyebaoming), params), params));
    25. return R.ok().put("data", page);
    26. }
    27. /**
    28. * 前端列表
    29. */
    30. @IgnoreAuth
    31. @RequestMapping("/list")
    32. public R list(@RequestParam Map<String, Object> params,ZhuanyebaomingEntity zhuanyebaoming,
    33. HttpServletRequest request){
    34. EntityWrapper<ZhuanyebaomingEntity> ew = new EntityWrapper<ZhuanyebaomingEntity>();
    35. PageUtils page = zhuanyebaomingService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, zhuanyebaoming), params), params));
    36. return R.ok().put("data", page);
    37. }
    38. /**
    39. * 列表
    40. */
    41. @RequestMapping("/lists")
    42. public R list( ZhuanyebaomingEntity zhuanyebaoming){
    43. EntityWrapper<ZhuanyebaomingEntity> ew = new EntityWrapper<ZhuanyebaomingEntity>();
    44. ew.allEq(MPUtil.allEQMapPre( zhuanyebaoming, "zhuanyebaoming"));
    45. return R.ok().put("data", zhuanyebaomingService.selectListView(ew));
    46. }
    47. /**
    48. * 查询
    49. */
    50. @RequestMapping("/query")
    51. public R query(ZhuanyebaomingEntity zhuanyebaoming){
    52. EntityWrapper< ZhuanyebaomingEntity> ew = new EntityWrapper< ZhuanyebaomingEntity>();
    53. ew.allEq(MPUtil.allEQMapPre( zhuanyebaoming, "zhuanyebaoming"));
    54. ZhuanyebaomingView zhuanyebaomingView = zhuanyebaomingService.selectView(ew);
    55. return R.ok("查询专业报名成功").put("data", zhuanyebaomingView);
    56. }
    57. /**
    58. * 后端详情
    59. */
    60. @RequestMapping("/info/{id}")
    61. public R info(@PathVariable("id") Long id){
    62. ZhuanyebaomingEntity zhuanyebaoming = zhuanyebaomingService.selectById(id);
    63. return R.ok().put("data", zhuanyebaoming);
    64. }
    65. /**
    66. * 前端详情
    67. */
    68. @IgnoreAuth
    69. @RequestMapping("/detail/{id}")
    70. public R detail(@PathVariable("id") Long id){
    71. ZhuanyebaomingEntity zhuanyebaoming = zhuanyebaomingService.selectById(id);
    72. return R.ok().put("data", zhuanyebaoming);
    73. }
    74. /**
    75. * 后端保存
    76. */
    77. @RequestMapping("/save")
    78. public R save(@RequestBody ZhuanyebaomingEntity zhuanyebaoming, HttpServletRequest request){
    79. zhuanyebaoming.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    80. //ValidatorUtils.validateEntity(zhuanyebaoming);
    81. zhuanyebaomingService.insert(zhuanyebaoming);
    82. return R.ok();
    83. }
    84. /**
    85. * 前端保存
    86. */
    87. @RequestMapping("/add")
    88. public R add(@RequestBody ZhuanyebaomingEntity zhuanyebaoming, HttpServletRequest request){
    89. zhuanyebaoming.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    90. //ValidatorUtils.validateEntity(zhuanyebaoming);
    91. zhuanyebaomingService.insert(zhuanyebaoming);
    92. return R.ok();
    93. }
    94. /**
    95. * 修改
    96. */
    97. @RequestMapping("/update")
    98. public R update(@RequestBody ZhuanyebaomingEntity zhuanyebaoming, HttpServletRequest request){
    99. //ValidatorUtils.validateEntity(zhuanyebaoming);
    100. zhuanyebaomingService.updateById(zhuanyebaoming);//全部更新
    101. return R.ok();
    102. }
    103. /**
    104. * 删除
    105. */
    106. @RequestMapping("/delete")
    107. public R delete(@RequestBody Long[] ids){
    108. zhuanyebaomingService.deleteBatchIds(Arrays.asList(ids));
    109. return R.ok();
    110. }
    111. /**
    112. * 提醒接口
    113. */
    114. @RequestMapping("/remind/{columnName}/{type}")
    115. public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request,
    116. @PathVariable("type") String type,@RequestParam Map<String, Object> map) {
    117. map.put("column", columnName);
    118. map.put("type", type);
    119. if(type.equals("2")) {
    120. SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
    121. Calendar c = Calendar.getInstance();
    122. Date remindStartDate = null;
    123. Date remindEndDate = null;
    124. if(map.get("remindstart")!=null) {
    125. Integer remindStart = Integer.parseInt(map.get("remindstart").toString());
    126. c.setTime(new Date());
    127. c.add(Calendar.DAY_OF_MONTH,remindStart);
    128. remindStartDate = c.getTime();
    129. map.put("remindstart", sdf.format(remindStartDate));
    130. }
    131. if(map.get("remindend")!=null) {
    132. Integer remindEnd = Integer.parseInt(map.get("remindend").toString());
    133. c.setTime(new Date());
    134. c.add(Calendar.DAY_OF_MONTH,remindEnd);
    135. remindEndDate = c.getTime();
    136. map.put("remindend", sdf.format(remindEndDate));
    137. }
    138. }
    139. Wrapper<ZhuanyebaomingEntity> wrapper = new EntityWrapper<ZhuanyebaomingEntity>();
    140. if(map.get("remindstart")!=null) {
    141. wrapper.ge(columnName, map.get("remindstart"));
    142. }
    143. if(map.get("remindend")!=null) {
    144. wrapper.le(columnName, map.get("remindend"));
    145. }
    146. String tableName = request.getSession().getAttribute("tableName").toString();
    147. if(tableName.equals("xuesheng")) {
    148. wrapper.eq("xuehao", (String)request.getSession().getAttribute("username"));
    149. }
    150. int count = zhuanyebaomingService.selectCount(wrapper);
    151. return R.ok().put("count", count);
    152. }
    153. }

     

    1. /**
    2. * 通用接口
    3. */
    4. @RestController
    5. public class CommonController{
    6. @Autowired
    7. private CommonService commonService;
    8. private static AipFace client = null;
    9. @Autowired
    10. private ConfigService configService;
    11. /**
    12. * 获取table表中的column列表(联动接口)
    13. * @param table
    14. * @param column
    15. * @return
    16. */
    17. @IgnoreAuth
    18. @RequestMapping("/option/{tableName}/{columnName}")
    19. public R getOption(@PathVariable("tableName") String tableName, @PathVariable("columnName") String columnName,String level,String parent) {
    20. Map<String, Object> params = new HashMap<String, Object>();
    21. params.put("table", tableName);
    22. params.put("column", columnName);
    23. if(StringUtils.isNotBlank(level)) {
    24. params.put("level", level);
    25. }
    26. if(StringUtils.isNotBlank(parent)) {
    27. params.put("parent", parent);
    28. }
    29. List<String> data = commonService.getOption(params);
    30. return R.ok().put("data", data);
    31. }
    32. /**
    33. * 根据table中的column获取单条记录
    34. * @param table
    35. * @param column
    36. * @return
    37. */
    38. @IgnoreAuth
    39. @RequestMapping("/follow/{tableName}/{columnName}")
    40. public R getFollowByOption(@PathVariable("tableName") String tableName, @PathVariable("columnName") String columnName, @RequestParam String columnValue) {
    41. Map<String, Object> params = new HashMap<String, Object>();
    42. params.put("table", tableName);
    43. params.put("column", columnName);
    44. params.put("columnValue", columnValue);
    45. Map<String, Object> result = commonService.getFollowByOption(params);
    46. return R.ok().put("data", result);
    47. }
    48. /**
    49. * 修改table表的sfsh状态
    50. * @param table
    51. * @param map
    52. * @return
    53. */
    54. @RequestMapping("/sh/{tableName}")
    55. public R sh(@PathVariable("tableName") String tableName, @RequestBody Map<String, Object> map) {
    56. map.put("table", tableName);
    57. commonService.sh(map);
    58. return R.ok();
    59. }
    60. /**
    61. * 获取需要提醒的记录数
    62. * @param tableName
    63. * @param columnName
    64. * @param type 1:数字 2:日期
    65. * @param map
    66. * @return
    67. */
    68. @IgnoreAuth
    69. @RequestMapping("/remind/{tableName}/{columnName}/{type}")
    70. public R remindCount(@PathVariable("tableName") String tableName, @PathVariable("columnName") String columnName,
    71. @PathVariable("type") String type,@RequestParam Map<String, Object> map) {
    72. map.put("table", tableName);
    73. map.put("column", columnName);
    74. map.put("type", type);
    75. if(type.equals("2")) {
    76. SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
    77. Calendar c = Calendar.getInstance();
    78. Date remindStartDate = null;
    79. Date remindEndDate = null;
    80. if(map.get("remindstart")!=null) {
    81. Integer remindStart = Integer.parseInt(map.get("remindstart").toString());
    82. c.setTime(new Date());
    83. c.add(Calendar.DAY_OF_MONTH,remindStart);
    84. remindStartDate = c.getTime();
    85. map.put("remindstart", sdf.format(remindStartDate));
    86. }
    87. if(map.get("remindend")!=null) {
    88. Integer remindEnd = Integer.parseInt(map.get("remindend").toString());
    89. c.setTime(new Date());
    90. c.add(Calendar.DAY_OF_MONTH,remindEnd);
    91. remindEndDate = c.getTime();
    92. map.put("remindend", sdf.format(remindEndDate));
    93. }
    94. }
    95. int count = commonService.remindCount(map);
    96. return R.ok().put("count", count);
    97. }
    98. /**
    99. * 单列求和
    100. */
    101. @IgnoreAuth
    102. @RequestMapping("/cal/{tableName}/{columnName}")
    103. public R cal(@PathVariable("tableName") String tableName, @PathVariable("columnName") String columnName) {
    104. Map<String, Object> params = new HashMap<String, Object>();
    105. params.put("table", tableName);
    106. params.put("column", columnName);
    107. Map<String, Object> result = commonService.selectCal(params);
    108. return R.ok().put("data", result);
    109. }
    110. /**
    111. * 分组统计
    112. */
    113. @IgnoreAuth
    114. @RequestMapping("/group/{tableName}/{columnName}")
    115. public R group(@PathVariable("tableName") String tableName, @PathVariable("columnName") String columnName) {
    116. Map<String, Object> params = new HashMap<String, Object>();
    117. params.put("table", tableName);
    118. params.put("column", columnName);
    119. List<Map<String, Object>> result = commonService.selectGroup(params);
    120. SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
    121. for(Map<String, Object> m : result) {
    122. for(String k : m.keySet()) {
    123. if(m.get(k) instanceof Date) {
    124. m.put(k, sdf.format((Date)m.get(k)));
    125. }
    126. }
    127. }
    128. return R.ok().put("data", result);
    129. }
    130. /**
    131. * (按值统计)
    132. */
    133. @IgnoreAuth
    134. @RequestMapping("/value/{tableName}/{xColumnName}/{yColumnName}")
    135. public R value(@PathVariable("tableName") String tableName, @PathVariable("yColumnName") String yColumnName, @PathVariable("xColumnName") String xColumnName) {
    136. Map<String, Object> params = new HashMap<String, Object>();
    137. params.put("table", tableName);
    138. params.put("xColumn", xColumnName);
    139. params.put("yColumn", yColumnName);
    140. List<Map<String, Object>> result = commonService.selectValue(params);
    141. SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
    142. for(Map<String, Object> m : result) {
    143. for(String k : m.keySet()) {
    144. if(m.get(k) instanceof Date) {
    145. m.put(k, sdf.format((Date)m.get(k)));
    146. }
    147. }
    148. }
    149. return R.ok().put("data", result);
    150. }
    151. /**
    152. * (按值统计)时间统计类型
    153. */
    154. @IgnoreAuth
    155. @RequestMapping("/value/{tableName}/{xColumnName}/{yColumnName}/{timeStatType}")
    156. public R valueDay(@PathVariable("tableName") String tableName, @PathVariable("yColumnName") String yColumnName, @PathVariable("xColumnName") String xColumnName, @PathVariable("timeStatType") String timeStatType) {
    157. Map<String, Object> params = new HashMap<String, Object>();
    158. params.put("table", tableName);
    159. params.put("xColumn", xColumnName);
    160. params.put("yColumn", yColumnName);
    161. params.put("timeStatType", timeStatType);
    162. List<Map<String, Object>> result = commonService.selectTimeStatValue(params);
    163. SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
    164. for(Map<String, Object> m : result) {
    165. for(String k : m.keySet()) {
    166. if(m.get(k) instanceof Date) {
    167. m.put(k, sdf.format((Date)m.get(k)));
    168. }
    169. }
    170. }
    171. return R.ok().put("data", result);
    172. }
    173. /**
    174. * 人脸比对
    175. *
    176. * @param face1 人脸1
    177. * @param face2 人脸2
    178. * @return
    179. */
    180. @RequestMapping("/matchFace")
    181. @IgnoreAuth
    182. public R matchFace(String face1, String face2,HttpServletRequest request) {
    183. if(client==null) {
    184. /*String AppID = configService.selectOne(new EntityWrapper().eq("name", "AppID")).getValue();*/
    185. String APIKey = configService.selectOne(new EntityWrapper<ConfigEntity>().eq("name", "APIKey")).getValue();
    186. String SecretKey = configService.selectOne(new EntityWrapper<ConfigEntity>().eq("name", "SecretKey")).getValue();
    187. String token = BaiduUtil.getAuth(APIKey, SecretKey);
    188. if(token==null) {
    189. return R.error("请在配置管理中正确配置APIKey和SecretKey");
    190. }
    191. client = new AipFace(null, APIKey, SecretKey);
    192. client.setConnectionTimeoutInMillis(2000);
    193. client.setSocketTimeoutInMillis(60000);
    194. }
    195. JSONObject res = null;
    196. try {
    197. File path = new File(ResourceUtils.getURL("classpath:static").getPath());
    198. if(!path.exists()) {
    199. path = new File("");
    200. }
    201. File upload = new File(path.getAbsolutePath(),"/upload/");
    202. File file1 = new File(upload.getAbsolutePath()+"/"+face1);
    203. File file2 = new File(upload.getAbsolutePath()+"/"+face2);
    204. String img1 = Base64Util.encode(FileUtil.FileToByte(file1));
    205. String img2 = Base64Util.encode(FileUtil.FileToByte(file2));
    206. MatchRequest req1 = new MatchRequest(img1, "BASE64");
    207. MatchRequest req2 = new MatchRequest(img2, "BASE64");
    208. ArrayList<MatchRequest> requests = new ArrayList<MatchRequest>();
    209. requests.add(req1);
    210. requests.add(req2);
    211. res = client.match(requests);
    212. System.out.println(res.get("result"));
    213. } catch (FileNotFoundException e) {
    214. e.printStackTrace();
    215. return R.error("文件不存在");
    216. } catch (IOException e) {
    217. e.printStackTrace();
    218. }
    219. return R.ok().put("data", com.alibaba.fastjson.JSONObject.parse(res.get("result").toString()));
    220. }
    221. }

  • 相关阅读:
    Mxnet速查_CPU和GPU的mnist预测训练_模型导出_模型导入再预测_导出onnx并预测
    Towards Class-Oriented Poisoning Attacks Against Neural Networks 论文笔记
    10驾校科目一考试系统——窗口交互
    泄露35TB数据,医疗巨头Henry Schein遭受黑猫勒索组织攻击
    C++重载 强制类型转换运算符
    QML SplitView
    Leetcode 754. 到达终点数字
    2023年萤石C6C系列监控如何设置群晖Surveillance网络摄像机套件教程
    R语言使用nnet包的multinom函数构建无序多分类logistic回归模型、使用AIC函数比较两个模型的AIC值的差异(简单模型和复杂模型)
    全球顶尖数据中心排行榜上的领军者TOP10——Verizon
  • 原文地址:https://blog.csdn.net/m0_49113107/article/details/126101609