基于ssm+vue的OA办公系统源码和论文235
开发工具:idea 或eclipse
数据库mysql5.7+
数据库链接工具:navcat,小海豚等
技术:ssm
基于HTML5的OA办公系统
摘要
随着信息技术在管理上越来越深入而广泛的应用,作为一个一般的企业都开始注重与自己的信息展示平台,实现基于HTML5的OA办公系统在技术上已成熟。本文介绍了基于HTML5的OA办公系统的开发全过程。通过分析企业对于博客网站的需求,创建了一个计算机管理基于HTML5的OA办公系统的方案。文章介绍了基于HTML5的OA办公系统的系统分析部分,包括可行性分析等,系统设计部分主要介绍了系统功能设计和数据库设计。
本基于HTML5的OA办公系统管理员和员工,员工可以注册。管理员功能有个人中心,员工管理,部门信息管理,岗位信息管理,公告通知管理,人事档案管理,考勤打卡管理,考勤记录管理,我的邮件过来,新建工作模板管理,待办工作管理。员工功能有个人中心,公告通知管理,人事档案管理,考勤打卡管理,考勤记录管理,我的邮件过来,新建工作模板管理,待办工作管理,因而具有一定的实用性。
本站是一个B/S模式系统,采用Java的SSM框架作为开发技术,MYSQL数据库设计开发,充分保证系统的稳定性。系统具有界面清晰、操作简单,功能齐全的特点,使得基于HTML5的OA办公系统管理工作系统化、规范化。
关键词:基于HTML5的OA办公系统;SSM框架;MYSQL数据库
Abstract
With the more and more in-depth and extensive application of information technology in management, as a general enterprise, it has begun to focus on its own information display platform, and the realization of an OA office system based on HTML5 is technically mature. This article introduces the whole development process of OA office system based on HTML5. By analyzing the needs of enterprises for blog sites, a computer management scheme based on HTML5 OA office system was created. The article introduces the system analysis part of OA office system based on HTML5, including feasibility analysis, etc. The system design part mainly introduces the system function design and database design.
This HTML5-based OA office system administrators and employees, employees can register. The administrator functions include personal center, employee management, department information management, job information management, announcement notification management, personnel file management, attendance check-in management, attendance record management, my email, new job template management, and to-do work management. Employee functions include personal center, announcement notification management, personnel file management, attendance check-in management, attendance record management, my email is over, new job template management, to-do job management, so it has a certain practicability.
This site is a B/S model system, using Java's SSM framework as the development technology, and MYSQL database design and development, which fully guarantees the stability of the system. The system has the characteristics of clear interface, simple operation and complete functions, which makes the management of OA office system based on HTML5 systematized and standardized.
Keywords: OA office system based on HTML5; SSM framework; MYSQL database
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.format.annotation.DateTimeFormat;
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.KaoqindakaEntity;
import com.entity.view.KaoqindakaView;
import com.service.KaoqindakaService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;
/**
* 考勤打卡
* 后端接口
* @author
* @email
* @date 2021-04-16 19:04:01
*/
@RestController
@RequestMapping("/kaoqindaka")
public class KaoqindakaController {
@Autowired
private KaoqindakaService kaoqindakaService;
/**
* 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,KaoqindakaEntity kaoqindaka,
HttpServletRequest request){
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("yuangong")) {
kaoqindaka.setYuangonggonghao((String)request.getSession().getAttribute("username"));
}
EntityWrapper<KaoqindakaEntity> ew = new EntityWrapper<KaoqindakaEntity>();
PageUtils page = kaoqindakaService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, kaoqindaka), params), params));
return R.ok().put("data", page);
}
/**
* 前端列表
*/
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,KaoqindakaEntity kaoqindaka, HttpServletRequest request){
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("yuangong")) {
kaoqindaka.setYuangonggonghao((String)request.getSession().getAttribute("username"));
}
EntityWrapper<KaoqindakaEntity> ew = new EntityWrapper<KaoqindakaEntity>();
PageUtils page = kaoqindakaService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, kaoqindaka), params), params));
return R.ok().put("data", page);
}
/**
* 列表
*/
@RequestMapping("/lists")
public R list( KaoqindakaEntity kaoqindaka){
EntityWrapper<KaoqindakaEntity> ew = new EntityWrapper<KaoqindakaEntity>();
ew.allEq(MPUtil.allEQMapPre( kaoqindaka, "kaoqindaka"));
return R.ok().put("data", kaoqindakaService.selectListView(ew));
}
/**
* 查询
*/
@RequestMapping("/query")
public R query(KaoqindakaEntity kaoqindaka){
EntityWrapper< KaoqindakaEntity> ew = new EntityWrapper< KaoqindakaEntity>();
ew.allEq(MPUtil.allEQMapPre( kaoqindaka, "kaoqindaka"));
KaoqindakaView kaoqindakaView = kaoqindakaService.selectView(ew);
return R.ok("查询考勤打卡成功").put("data", kaoqindakaView);
}
/**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
KaoqindakaEntity kaoqindaka = kaoqindakaService.selectById(id);
return R.ok().put("data", kaoqindaka);
}
/**
* 前端详情
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
KaoqindakaEntity kaoqindaka = kaoqindakaService.selectById(id);
return R.ok().put("data", kaoqindaka);
}
/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody KaoqindakaEntity kaoqindaka, HttpServletRequest request){
kaoqindaka.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(kaoqindaka);
kaoqindakaService.insert(kaoqindaka);
return R.ok();
}
/**
* 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody KaoqindakaEntity kaoqindaka, HttpServletRequest request){
kaoqindaka.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(kaoqindaka);
kaoqindaka.setUserid((Long)request.getSession().getAttribute("userId"));
kaoqindakaService.insert(kaoqindaka);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody KaoqindakaEntity kaoqindaka, HttpServletRequest request){
//ValidatorUtils.validateEntity(kaoqindaka);
kaoqindakaService.updateById(kaoqindaka);//全部更新
return R.ok();
}
/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
kaoqindakaService.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<KaoqindakaEntity> wrapper = new EntityWrapper<KaoqindakaEntity>();
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("yuangong")) {
wrapper.eq("yuangonggonghao", (String)request.getSession().getAttribute("username"));
}
int count = kaoqindakaService.selectCount(wrapper);
return R.ok().put("count", count);
}
}