springboot职称评审管理系统

收藏关注不迷路!!

🌟文末获取源码+数据库🌟

感兴趣的可以先收藏起来,还有大家在毕设选题(免费咨询指导选题),项目以及论文编写等相关问题都可以给我留言咨询,希望帮助更多的人

文章目录

摘要

不管是从事哪个行业、对于职称是对一个对个人的最高荣誉,有通过科技手段、农业、工业、教育等都有评职称,开发一套职称评审管理系统就很有必要了。职称评审管理系统是以实际运用为开发背景,运用软件工程原理和开发方法,采用springboot框架构建的一个管理系统。整个开发过程首先对软件系统进行需求分析,得出系统的主要功能。接着对系统进行总体设计和详细设计。总体设计主要包括系统功能设计、系统总体结构设计、系统数据结构设计和系统安全设计等;详细设计主要包括系统数据库访问的实现,主要功能模块的具体实现,模块实现关键代码等。最后对系统进行功能测试,并对测试结果进行分析总结,得出系统中存在的不足及需要改进的地方,为以后的系统维护提供了方便,同时也为今后开发类似系统提供了借鉴和帮助。这种个性化的网上职称评审管理系统特别注重交互协调与管理的相互配合,激发了管理人员的创造性与主动性,对职称评审管理系统而言非常有利。
本职称评审管理系统采用的数据库是Mysql,使用springboot框架开发。在设计过程中,充分保证了系统代码的良好可读性、实用性、易扩展性、通用性、便于后期维护、操作方便以及页面简洁等特点。

关键词:职称评审管理系统,springboot框架 Mysql数据库 Java技术

一、开发技术介绍

  • B/S 架构
  • Java
  • MySQL
  • SpringBoot

二、功能介绍

可以管理管理员:首页、个人中心、用户管理、评审员管理、省份管理、评审条件管理、职称申请管理、结果公布管理、论坛管理、系统管理。

评审员;首页、个人中心、职称申请管理、结果公布管理。

用户;首页、个人中心、职称申请管理、结果公布管理、我的收藏管理。

前台首页;首页、评审条件、论坛信息、系统公告、个人中心、后台管理、客服功能等功能模块。

三、代码展示

package com.controller;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Map;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;

import com.utils.ValidatorUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.annotation.IgnoreAuth;

import com.entity.PingshenyuanEntity;
import com.entity.view.PingshenyuanView;

import com.service.PingshenyuanService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MPUtil;
import com.utils.CommonUtil;


/**
 * 评审员
 * 后端接口
 * @author 
 * @email 
 * @date 2021-01-11 11:06:06
 */
@RestController
@RequestMapping("/pingshenyuan")
public class PingshenyuanController {
    @Autowired
    private PingshenyuanService pingshenyuanService;
    
	@Autowired
	private TokenService tokenService;
	
	/**
	 * 登录
	 */
	@IgnoreAuth
	@RequestMapping(value = "/login")
	public R login(String username, String password, String captcha, HttpServletRequest request) {
		PingshenyuanEntity user = pingshenyuanService.selectOne(new EntityWrapper<PingshenyuanEntity>().eq("gonghao", username));
		if(user==null || !user.getMima().equals(password)) {
			return R.error("账号或密码不正确");
		}
		String token = tokenService.generateToken(user.getId(), username,"pingshenyuan",  "评审员" );
		return R.ok().put("token", token);
	}
	
	/**
     * 注册
     */
	@IgnoreAuth
    @RequestMapping("/register")
    public R register(@RequestBody PingshenyuanEntity pingshenyuan){
    	//ValidatorUtils.validateEntity(pingshenyuan);
    	PingshenyuanEntity user = pingshenyuanService.selectOne(new EntityWrapper<PingshenyuanEntity>().eq("gonghao", pingshenyuan.getGonghao()));
		if(user!=null) {
			return R.error("注册用户已存在");
		}
		Long uId = new Date().getTime();
		pingshenyuan.setId(uId);
        pingshenyuanService.insert(pingshenyuan);
        return R.ok();
    }
	
	/**
	 * 退出
	 */
	@RequestMapping("/logout")
	public R logout(HttpServletRequest request) {
		request.getSession().invalidate();
		return R.ok("退出成功");
	}
	
	/**
     * 获取用户的session用户信息
     */
    @RequestMapping("/session")
    public R getCurrUser(HttpServletRequest request){
    	Long id = (Long)request.getSession().getAttribute("userId");
        PingshenyuanEntity user = pingshenyuanService.selectById(id);
        return R.ok().put("data", user);
    }
    
    /**
     * 密码重置
     */
    @IgnoreAuth
	@RequestMapping(value = "/resetPass")
    public R resetPass(String username, HttpServletRequest request){
    	PingshenyuanEntity user = pingshenyuanService.selectOne(new EntityWrapper<PingshenyuanEntity>().eq("gonghao", username));
    	if(user==null) {
    		return R.error("账号不存在");
    	}
    	user.setMima("123456");
        pingshenyuanService.updateById(user);
        return R.ok("密码已重置为:123456");
    }


    /**
     * 后端列表
     */
    @RequestMapping("/page")
    public R page(@RequestParam Map<String, Object> params,PingshenyuanEntity pingshenyuan, HttpServletRequest request){
        EntityWrapper<PingshenyuanEntity> ew = new EntityWrapper<PingshenyuanEntity>();
		PageUtils page = pingshenyuanService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, pingshenyuan), params), params));

        return R.ok().put("data", page);
    }
    
    /**
     * 前端列表
     */
    @RequestMapping("/list")
    public R list(@RequestParam Map<String, Object> params,PingshenyuanEntity pingshenyuan, HttpServletRequest request){
        EntityWrapper<PingshenyuanEntity> ew = new EntityWrapper<PingshenyuanEntity>();
		PageUtils page = pingshenyuanService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, pingshenyuan), params), params));
        return R.ok().put("data", page);
    }

	/**
     * 列表
     */
    @RequestMapping("/lists")
    public R list( PingshenyuanEntity pingshenyuan){
       	EntityWrapper<PingshenyuanEntity> ew = new EntityWrapper<PingshenyuanEntity>();
      	ew.allEq(MPUtil.allEQMapPre( pingshenyuan, "pingshenyuan")); 
        return R.ok().put("data", pingshenyuanService.selectListView(ew));
    }

	 /**
     * 查询
     */
    @RequestMapping("/query")
    public R query(PingshenyuanEntity pingshenyuan){
        EntityWrapper< PingshenyuanEntity> ew = new EntityWrapper< PingshenyuanEntity>();
 		ew.allEq(MPUtil.allEQMapPre( pingshenyuan, "pingshenyuan")); 
		PingshenyuanView pingshenyuanView =  pingshenyuanService.selectView(ew);
		return R.ok("查询评审员成功").put("data", pingshenyuanView);
    }
	
    /**
     * 后端详情
     */
    @RequestMapping("/info/{id}")
    public R info(@PathVariable("id") String id){
        PingshenyuanEntity pingshenyuan = pingshenyuanService.selectById(id);
        return R.ok().put("data", pingshenyuan);
    }

    /**
     * 前端详情
     */
    @RequestMapping("/detail/{id}")
    public R detail(@PathVariable("id") String id){
        PingshenyuanEntity pingshenyuan = pingshenyuanService.selectById(id);
        return R.ok().put("data", pingshenyuan);
    }
    



    /**
     * 后端保存
     */
    @RequestMapping("/save")
    public R save(@RequestBody PingshenyuanEntity pingshenyuan, HttpServletRequest request){
    	pingshenyuan.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(pingshenyuan);
    	PingshenyuanEntity user = pingshenyuanService.selectOne(new EntityWrapper<PingshenyuanEntity>().eq("gonghao", pingshenyuan.getGonghao()));
		if(user!=null) {
			return R.error("用户已存在");
		}
		pingshenyuan.setId(new Date().getTime());
        pingshenyuanService.insert(pingshenyuan);
        return R.ok();
    }
    
    /**
     * 前端保存
     */
    @RequestMapping("/add")
    public R add(@RequestBody PingshenyuanEntity pingshenyuan, HttpServletRequest request){
    	pingshenyuan.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(pingshenyuan);
    	PingshenyuanEntity user = pingshenyuanService.selectOne(new EntityWrapper<PingshenyuanEntity>().eq("gonghao", pingshenyuan.getGonghao()));
		if(user!=null) {
			return R.error("用户已存在");
		}
		pingshenyuan.setId(new Date().getTime());
        pingshenyuanService.insert(pingshenyuan);
        return R.ok();
    }

    /**
     * 修改
     */
    @RequestMapping("/update")
    public R update(@RequestBody PingshenyuanEntity pingshenyuan, HttpServletRequest request){
        //ValidatorUtils.validateEntity(pingshenyuan);
        pingshenyuanService.updateById(pingshenyuan);//全部更新
        return R.ok();
    }
    

    /**
     * 删除
     */
    @RequestMapping("/delete")
    public R delete(@RequestBody Long[] ids){
        pingshenyuanService.deleteBatchIds(Arrays.asList(ids));
        return R.ok();
    }
    
    /**
     * 提醒接口
     */
	@RequestMapping("/remind/{columnName}/{type}")
	public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request, 
						 @PathVariable("type") String type,@RequestParam Map<String, Object> map) {
		map.put("column", columnName);
		map.put("type", type);
		
		if(type.equals("2")) {
			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<PingshenyuanEntity> wrapper = new EntityWrapper<PingshenyuanEntity>();
		if(map.get("remindstart")!=null) {
			wrapper.ge(columnName, map.get("remindstart"));
		}
		if(map.get("remindend")!=null) {
			wrapper.le(columnName, map.get("remindend"));
		}


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


}

四、效果图

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

五 、源码获取

下方名片联系我即可!!


大家点赞、收藏、关注、评论啦 、查看👇🏻获取联系方式👇🏻

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值