# warm-sun **Repository Path**: littlecoder/warm-sun ## Basic Information - **Project Name**: warm-sun - **Description**: 🎉基于solon开发,jdk17+satoken+redisx/redisson+mybaitsflex/mybaitsplus+hutool+jackson+mapstruct+poi - **Primary Language**: Java - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 47 - **Created**: 2024-02-02 - **Last Updated**: 2024-04-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # warm-sun #### 基于solon+Vue3前后端分离的Java+多租户工作流快速开发框架 #### 组件orm/cache一键切换,可快捷简便集成第三方框架(后期不限于此切换) [![star](https://gitee.com/min290/warm-sun/badge/star.svg?theme=dark)](https://gitee.com/min290/warm-sun/stargazers) ## 本框架介绍 | 功能 | 框架 | | -------- | ------------------------------------------------------------ | | 前端项目 | 采用 Vue3 + js + Vite + ElementPlus, 前端项目地址([warm-vue3](https://gitee.com/min290/warm-vue3.git)) | | 后端 | jdk17、solon、satoken、redisson、mybati-flex、jackjsonjdk17+satoken+redisx/redisson+mybaits-flex+hutool+jackson+mapstruct+poi+warm-flow等。组件orm一键切换,可快捷简便集成第三方orm框架(包括orm,但后期不限于orm) | ## [orm扩展框架集成情况和步骤](https://gitee.com/min290/warm-sun/wikis/orm扩展思路和步骤?sort_id=8683162) 目前改造成solon框架,已经还原ruoyi-vue大部分功能,还差数据库监控、缓存监控。 **希望一键三连,你的⭐️ Star ⭐️是我持续开发的动力。 加入QQ群:778470567** - 启动速度由 14.7s--> 2.5s - 打包后大小减半一半 - 前端项目秒启动 - 支持前后端代码生成 - **组件一键切换,可极其快捷方便集成第三方orm/cache框架** 让我惊喜的是提升如此巨大,并且solon、snack3、satoken、mybati-flex、hutool和smart-http国内开源项目的开源社区及其活跃,很多问题可以快速解决 ## 联系方式 **联系方式:qq群:778470567, 微信:warm-houhou** ## 在线体验 - admin/admin123 演示地址:[http://www.warm-sun.vip](http://www.warm-sun.vip/) 文档地址:https://gitee.com/min290/warm-sun ## 后端模块介绍([点击跳转](https://gitee.com/min290/warm-sun/wikis/模块介绍)) ## 部署步骤 ### 准备工作 ``` JDK >= 17 (以上的每测过) Mysql >= 5.7.0 (推荐5.7版本,以上的没测过) Redis >= 5.0 Maven >= 3.6 Node >= 16 ``` ### 后端启动 1、导入/sql/warm.sql 2、修改数据库和redis配置 3、启动warm-admin下AppAdmin | ![img](https://foruda.gitee.com/images/1693547874693282967/8b1b8dc2_2218307.png) | ![img](https://foruda.gitee.com/images/1693547874666704694/00c3f78c_2218307.png) | | ------------------------------------------------------------ | ------------------------------------------------------------ | | | | ### 前端部署 ``` # 克隆项目 git clone https://gitee.com/min290/warm-sun.git # 进入项目目录 cd warm-vue3 # 安装依赖 yarn --registry=https://registry.npmmirror.com # 启动服务 yarn dev # 构建测试环境 yarn build:stage # 构建生产环境 yarn build:prod # 前端访问地址 http://localhost:80 ``` ## 组件切换 1、redis客户端和mybatis增强版orm框架可一键切换 > 比如切换到mp,需要把其他orm依赖注释掉,防止编译报错,然后重新加载依赖 ![img](https://foruda.gitee.com/images/1697126416998821124/52b801a8_2218307.png) ![输入图片说明](https://foruda.gitee.com/images/1709706232363596061/d26c349b_2218307.png "屏幕截图") 2、warm-admin中pom.xml通过多环境切换是否加载knife4j页面 | ![img](https://foruda.gitee.com/images/1696956919362054285/55db22bd_2218307.png) | ![img](https://foruda.gitee.com/images/1696956919362054285/55db22bd_2218307.png) | | ------------------------------------------------------------ | ------------------------------------------------------------ | | | | ## 多租户 目前mybatis-plus支持多租户,默认关闭,可按需自行开启 ![输入图片说明](https://foruda.gitee.com/images/1699943457213886087/9e9ee351_2218307.png "屏幕截图") | ![img](https://foruda.gitee.com/images/1699943298135579558/feebdc1a_2218307.png) | ![img](https://foruda.gitee.com/images/1699943598783844414/e4337369_2218307.png) | | ------------------------------------------------------------ | ------------------------------------------------------------ | | | | ## 工作流 ### [warm-flow](https://gitee.com/warm_4/warm-flow.git) 此项目是极其简单的工作流,没有太多设计,代码量少,并且只有6张表,个把小时就可以看完整个设计。使用起来方便 1. 支持简单的流程流转,比如跳转、回退、审批 2. 支持角色、部门和用户等权限配置 3. 官方提供简单流程封装demo项目,很实用 4. 支持多租户 5. 支持代办任务和已办任务,通过权限标识过滤数据 6. 支持互斥网关,并行网关(会签、或签) 7. 可退回任意节点 8. 支持条件表达式,可扩展 9. 同时支持spring和solon 10. 兼容java8和java17,理论11也可以 ### 演示图 | ![img](https://foruda.gitee.com/images/1697704379975758657/558474f6_2218307.png) | ![img](https://foruda.gitee.com/images/1703576997421577844/a1dc2737_2218307.png) | | ------------------------------------------------------------ | ------------------------------------------------------------ | | ![img](https://foruda.gitee.com/images/1703577051212751284/203a05b0_2218307.png) | ![img](https://foruda.gitee.com/images/1703577120823449150/ba952a84_2218307.png) | | ![img](https://foruda.gitee.com/images/1703577416508497463/863d8da1_2218307.png) | ![img](https://foruda.gitee.com/images/1703641952765512992/dc187080_2218307.png) | | ![img](https://foruda.gitee.com/images/1703639870569018221/453a0e0e_2218307.png) | ![img](https://foruda.gitee.com/images/1703639949778635820/34a6c14e_2218307.png) | | ![img](https://foruda.gitee.com/images/1703640045465410604/c14affda_2218307.png) | ![img](https://foruda.gitee.com/images/1703641581976369452/e4629da5_2218307.png) | | ![img](https://foruda.gitee.com/images/1703640080823852176/bdf9a360_2218307.png) | ![img](https://foruda.gitee.com/images/1703640099939146504/b19b2b85_2218307.png) | | ![img](https://foruda.gitee.com/images/1703641659022331552/cc4e0af2_2218307.png) | ![img](https://foruda.gitee.com/images/1703641675840058630/3430da37_2218307.png) | | ![img](https://foruda.gitee.com/images/1703641687716655707/62a8b20c_2218307.png) | ![img](https://foruda.gitee.com/images/1703641702939748288/6da6c4f6_2218307.png) | ## 常见问题 [https://gitee.com/min290/warm-sun/wikis/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98?sort_id=8387532](https://gitee.com/min290/warm-sun/wikis/常见问题?sort_id=8387532) ## 你可以请作者喝杯咖啡表示鼓励 ![donate](http://localhost:63342/markdownPreview/808109568/warm-vue3/src/assets/images/pay.png) ## 最后要感谢: [solon](https://gitee.com/noear/solon.git): 生态框架支持 [RuoYi-Vue](https://gitee.com/y_project/RuoYi-Vue.git):系统管理 [Sa-Token](https://gitee.com/dromara/sa-token.git):登录鉴权 [hutool](https://gitee.com/dromara/hutool.git):工具类 [MyBatis-Flex](https://gitee.com/mybatis-flex/mybatis-flex.git):orm框架 [MyBatis-Pluse](https://gitee.com/baomidou/mybatis-plus.git):orm框架 [smart-http](https://gitee.com/smartboot/smart-http.git):web服务器 [Ruoyi-Vue-Plus](https://gitee.com/dromara/RuoYi-Vue-Plus.git):多租户 ## 内置功能 1. 用户管理:用户是系统操作者,该功能主要完成系统用户配置。 2. 部门管理:配置系统组织机构(公司、部门、小组),树结构展现支持数据权限。 3. 岗位管理:配置系统用户所属担任职务。 4. 菜单管理:配置系统菜单,操作权限,按钮权限标识等。 5. 角色管理:角色菜单权限分配、设置角色按机构进行数据范围权限划分。 6. 字典管理:对系统中经常使用的一些较为固定的数据进行维护。 7. 参数管理:对系统动态配置常用参数。 8. 通知公告:系统通知公告信息发布维护。 9. 操作日志:系统正常操作日志记录和查询;系统异常信息日志记录和查询。 10. 登录日志:系统登录日志记录查询包含登录异常。 11. 在线用户:当前系统中活跃用户状态监控。 12. 定时任务:在线(添加、修改、删除)任务调度包含执行结果日志。 13. 代码生成:前后端代码的生成(java、html、xml、sql)支持CRUD下载 。 14. 系统接口:根据业务代码自动生成相关的api接口文档。 15. 缓存监控:对系统的缓存信息查询,命令统计等。 ## 演示图 | ![img](https://oscimg.oschina.net/oscnet/cd1f90be5f2684f4560c9519c0f2a232ee8.jpg) | ![img](https://oscimg.oschina.net/oscnet/1cbcf0e6f257c7d3a063c0e3f2ff989e4b3.jpg) | | ------------------------------------------------------------ | ------------------------------------------------------------ | | ![img](https://oscimg.oschina.net/oscnet/up-8074972883b5ba0622e13246738ebba237a.png) | ![img](https://oscimg.oschina.net/oscnet/up-9f88719cdfca9af2e58b352a20e23d43b12.png) | | ![img](https://oscimg.oschina.net/oscnet/up-39bf2584ec3a529b0d5a3b70d15c9b37646.png) | ![img](https://oscimg.oschina.net/oscnet/up-936ec82d1f4872e1bc980927654b6007307.png) | | ![img](https://oscimg.oschina.net/oscnet/up-b2d62ceb95d2dd9b3fbe157bb70d26001e9.png) | ![img](https://oscimg.oschina.net/oscnet/up-d67451d308b7a79ad6819723396f7c3d77a.png) | | ![img](https://oscimg.oschina.net/oscnet/5e8c387724954459291aafd5eb52b456f53.jpg) | ![img](https://oscimg.oschina.net/oscnet/644e78da53c2e92a95dfda4f76e6d117c4b.jpg) | | ![img](https://oscimg.oschina.net/oscnet/up-8370a0d02977eebf6dbf854c8450293c937.png) | ![img](https://oscimg.oschina.net/oscnet/up-49003ed83f60f633e7153609a53a2b644f7.png) | | ![img](https://oscimg.oschina.net/oscnet/up-d4fe726319ece268d4746602c39cffc0621.png) | ![img](https://oscimg.oschina.net/oscnet/up-c195234bbcd30be6927f037a6755e6ab69c.png) |