工时管理系统,一款灵活性强、轻量级工时记录和管理工具

一、开源项目简介

无鱼工时管理系统,是一款轻量级工时记录和管理工具,包括项目管理,工时上报,工时日报,工时统计等功能。

无鱼工时管理系统可通过员工工时上报的方式,来记录项目所花费的工时,帮助企业进行项目工时统计、核算人工成本。实时、动态、真实的展示项目投入。

二、开源协议

使用MulanPubL-2.0开源协议

三、界面展示

功能截图

首页

我的工时

提交工时

我的项目

我的工时统计

我的填报率

我的填报日历

我的工时列表

项目日报

项目月报

项目月报记录

项目日历

填报记录

项目统计

数据统计

填报率

项目填报详情

四、功能概述

无鱼项目工时系统,是一款开源、免费的轻量级项目工时统计系统,是目前企业进行项工时管理统计的推荐选择。

开源免费

  • 开源免费
  • 开发支持多语言
  • 全系列可商用无需授权

私有化部署

  • 可将系统部署在企业/团队内部
  • 可自行进行二次开发扩展
  • 提供支持虚拟化模式的一键部署安装包

主流技术栈

  • 无鱼工时 SpringBoot+MyBatis+Vue
  • 无鱼工时 G0+Gin +Gorm+Vue
  • 移动端 UniApp + Vue

业务特色

1、视角创新

从管理视角设计系统功能,实时在线收集和分析项目工时数据。

2、功能创新

围绕项目工时统计,延展出任务看板、原型管理、知识库等项目实用功能。

3、管理创新

用数据说话,智能统计各个项目工时情况、自动进行项目风险提醒。

4、应用创新

开源、免费、迭代快、灵活性强。

五、技术选型

软件架构

JAVA 1.8 + MYSQL 8 +VUE 本项目基于前后端分离架构:服务端:springboot 前端:vue

模块

说明

wuyu-common

项目公共模块

wuyu-system

系统功能的Module模块

wuyu-framework

基础框架

wuyu-admin-web

系统功能接口服务模块

wuyu-prototype

系统工时原型Module模块

感谢

该项目基于若依、ele-admin-ui等相关框架,在此进行感谢。

六、源码地址

wyprojectWeb: 无鱼项目工时系统,是一款开源、免费的轻量级项目工时统计系统,是目前企业进行项工时管理统计的推荐选择。

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
好的,我来给您设计一款基于 Spring Boot 的工时管理系统。 首先,我们需要确定该系统的功能模块。一般来说,一款工时管理系统需要包含以下模块: 1.用户管理模块:包括用户登录、注册、密码重置等功能。 2.项目管理模块:包括项目的创建、修改、删除等功能。 3.任务管理模块:包括任务的创建、修改、删除等功能。 4.工时管理模块:包括工时的录入、查询、统计等功能。 5.报表管理模块:包括报表的生成、导出等功能。 6.权限管理模块:包括用户权限的管理等功能。 接下来,我们可以开始编写代码。首先,创建一个 Spring Boot 项目,并添加相关的依赖项,如 Spring MVC、Spring Data JPA、Thymeleaf 等。 在项目中创建实体类,如 User、Project、Task、TimeSheet 等。这些实体类用于映射数据库中的表,同时还需要编写对应的 Repository 接口,用于实现对数据库的增删改查操作。 然后,我们编写控制器类,用于处理用户请求。在控制器类中,我们可以定义一些请求处理方法,如处理用户登录、注册、项目创建、任务创建等请求。在这些方法中,我们可以调用对应的 Service 层方法,实现相应的业务逻辑。 在 Service 层中,我们可以定义一些服务方法,如创建用户、创建项目、创建任务等。在这些方法中,我们可以调用对应的 Repository 接口方法,实现对数据库的操作。 最后,我们可以编写视图模板,如登录页面、首页、项目管理页面、任务管理页面等,这些视图模板用于呈现给用户进行交互。 具体的代码实现过程可以参考以下示例代码: 1. 实体类 ``` @Entity @Table(name = "user") public class User { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; private String username; private String password; // getter 和 setter 方法 } @Entity @Table(name = "project") public class Project { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; private String name; private Date startDate; private Date endDate; // getter 和 setter 方法 } @Entity @Table(name = "task") public class Task { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; private String name; private String description; // getter 和 setter 方法 } @Entity @Table(name = "timesheet") public class TimeSheet { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; private Long userId; private Long projectId; private Long taskId; private Date date; private Double hours; // getter 和 setter 方法 } ``` 2. Repository 接口 ``` public interface UserRepository extends JpaRepository<User, Long> { User findByUsername(String username); } public interface ProjectRepository extends JpaRepository<Project, Long> { } public interface TaskRepository extends JpaRepository<Task, Long> { } public interface TimeSheetRepository extends JpaRepository<TimeSheet, Long> { List<TimeSheet> findByUserIdAndDateBetween(Long userId, Date startDate, Date endDate); } ``` 3. Service 层 ``` @Service public class UserService { @Autowired private UserRepository userRepository; public User findByUsername(String username) { return userRepository.findByUsername(username); } public User createUser(User user) { return userRepository.save(user); } } @Service public class ProjectService { @Autowired private ProjectRepository projectRepository; public Project createProject(Project project) { return projectRepository.save(project); } public List<Project> findAllProjects() { return projectRepository.findAll(); } } @Service public class TaskService { @Autowired private TaskRepository taskRepository; public Task createTask(Task task) { return taskRepository.save(task); } public List<Task> findAllTasks() { return taskRepository.findAll(); } } @Service public class TimeSheetService { @Autowired private TimeSheetRepository timeSheetRepository; public List<TimeSheet> findByUserIdAndDateBetween(Long userId, Date startDate, Date endDate) { return timeSheetRepository.findByUserIdAndDateBetween(userId, startDate, endDate); } public TimeSheet createTimeSheet(TimeSheet timeSheet) { return timeSheetRepository.save(timeSheet); } } ``` 4. 控制器类 ``` @Controller public class UserController { @Autowired private UserService userService; @GetMapping("/login") public String login() { return "login"; } @PostMapping("/login") public String doLogin(String username, String password, HttpSession session) { User user = userService.findByUsername(username); if (user != null && user.getPassword().equals(password)) { session.setAttribute("user", user); return "redirect:/"; } else { return "login"; } } @GetMapping("/register") public String register() { return "register"; } @PostMapping("/register") public String doRegister(User user) { userService.createUser(user); return "redirect:/login"; } @GetMapping("/logout") public String logout(HttpSession session) { session.invalidate(); return "redirect:/login"; } } @Controller public class ProjectController { @Autowired private ProjectService projectService; @GetMapping("/project") public String project(Model model) { List<Project> projects = projectService.findAllProjects(); model.addAttribute("projects", projects); return "project"; } @PostMapping("/project") public String createProject(Project project) { projectService.createProject(project); return "redirect:/project"; } } @Controller public class TaskController { @Autowired private TaskService taskService; @GetMapping("/task") public String task(Model model) { List<Task> tasks = taskService.findAllTasks(); model.addAttribute("tasks", tasks); return "task"; } @PostMapping("/task") public String createTask(Task task) { taskService.createTask(task); return "redirect:/task"; } } @Controller public class TimeSheetController { @Autowired private TimeSheetService timeSheetService; @GetMapping("/timesheet") public String timeSheet(Model model, HttpSession session) { User user = (User) session.getAttribute("user"); if (user != null) { List<TimeSheet> timeSheets = timeSheetService.findByUserIdAndDateBetween(user.getId(), new Date(), new Date()); model.addAttribute("timeSheets", timeSheets); } return "timesheet"; } @PostMapping("/timesheet") public String createTimeSheet(TimeSheet timeSheet) { timeSheetService.createTimeSheet(timeSheet); return "redirect:/timesheet"; } } ``` 5. 视图模板 ``` <!-- login.html --> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Login</title> </head> <body> <h1>Login</h1> <form action="/login" method="post"> <label>Username:</label> <input type="text" name="username"><br> <label>Password:</label> <input type="password" name="password"><br> <button type="submit">Login</button> </form> <a href="/register">Register</a> </body> </html> <!-- register.html --> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Register</title> </head> <body> <h1>Register</h1> <form action="/register" method="post"> <label>Username:</label> <input type="text" name="username"><br> <label>Password:</label> <input type="password" name="password"><br> <button type="submit">Register</button> </form> <a href="/login">Login</a> </body> </html> <!-- project.html --> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Project Management</title> </head> <body> <h1>Project Management</h1> <table> <thead> <tr> <th>ID</th> <th>Name</th> <th>Start Date</th> <th>End Date</th> </tr> </thead> <tbody> <tr th:each="project : ${projects}"> <td th:text="${project.id}"></td> <td th:text="${project.name}"></td> <td th:text="${project.startDate}"></td> <td th:text="${project.endDate}"></td> </tr> </tbody> </table> <form action="/project" method="post"> <label>Name:</label> <input type="text" name="name"><br> <label>Start Date:</label> <input type="date" name="startDate"><br> <label>End Date:</label> <input type="date" name="endDate"><br> <button type="submit">Create Project</button> </form> </body> </html> <!-- task.html --> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Task Management</title> </head> <body> <h1>Task Management</h1> <table> <thead> <tr> <th>ID</th> <th>Name</th> <th>Description</th> </tr> </thead> <tbody> <tr th:each="task : ${tasks}"> <td th:text="${task.id}"></td> <td th:text="${task.name}"></td> <td th:text="${task.description}"></td> </tr> </tbody> </table> <form action="/task" method="post"> <label>Name:</label> <input type="text" name="name"><br> <label>Description:</label> <input type="text" name="description"><br> <button type="submit">Create Task</button> </form> </body> </html> <!-- timesheet.html --> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Time Sheet</title> </head> <body> <h1>Time Sheet</h1> <table> <thead> <tr> <th>User ID</th> <th>Project ID</th> <th>Task ID</th> <th>Date</th> <th>Hours</th> </tr> </thead> <tbody> <tr th:each="timeSheet : ${timeSheets}"> <td th:text="${timeSheet.userId}"></td> <td th:text="${timeSheet.projectId}"></td> <td th:text="${timeSheet.taskId}"></td> <td th:text="${timeSheet.date}"></td> <td th:text="${timeSheet.hours}"></td> </tr> </tbody> </table> <form action="/timesheet" method="post"> <label>Project ID:</label> <input type="text" name="projectId"><br> <label>Task ID:</label> <input type="text" name="taskId"><br> <label>Date:</label> <input type="date" name="date"><br> <label>Hours:</label> <input type="text" name="hours"><br> <button type="submit">Submit Time Sheet</button> </form> </body> </html> ``` 以上是一个简单的工时管理系统的设计和实现过程。当然,其中还有很多细节需要根据实际需求进行调整和完善。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

weixin_37576193

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值