forked from WuKongOpenSource/Wukong_HRM
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit af89ce0
Showing
2,632 changed files
with
302,910 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.DS_Store | ||
.idea/ | ||
*.iml | ||
gateway/src/main/webapp/public/** | ||
logs/** | ||
test | ||
target | ||
*/target/** | ||
rebel.xml | ||
rebel-remote.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
@echo off | ||
title ${project.artifactId} | ||
rem ------------------------------------------------------------------------- | ||
rem | ||
rem 使用说明: | ||
rem | ||
rem 1: 打包时默认使用application-test.yml配置文件,如需要更改,直接更改下面的命令即可,如 -Dspring.profiles.include=core,prod | ||
rem | ||
rem ------------------------------------------------------------------------- | ||
|
||
setlocal & pushd | ||
|
||
set JAVA_OPTS=-Dspring.profiles.include=core,test | ||
if "${project.artifactId}" == "gateway" ( | ||
set JAVA_OPTS = | ||
) | ||
rem -Xms分配堆最小内存,默认为物理内存的1/64;-Xmx分配最大内存,默认为物理内存的1/4 如果程序会崩溃请将此值调高 | ||
java -Xms128m -Xmx512m -jar %JAVA_OPTS% ${project.artifactId}-${project.version}.jar | ||
|
||
endlocal & popd | ||
pause | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash | ||
|
||
COMMAND="$1" | ||
|
||
if [[ "$COMMAND" != "start" ]] && [[ "$COMMAND" != "stop" ]] && [[ "$COMMAND" != "restart" ]]; then | ||
echo "Usage: $0 start | stop | restart" | ||
exit 0 | ||
fi | ||
|
||
APP_BASE_PATH=$(cd `dirname $0`; pwd) | ||
|
||
function start() | ||
{ | ||
# -Xms分配堆最小内存,默认为物理内存的1/64;-Xmx分配最大内存,默认为物理内存的1/4 如果程序会崩溃请将此值调高 | ||
nohup java -jar ${JAVA_OPTS} ${project.artifactId}-${project.version}.jar >> /dev/null 2>&1 & | ||
echo "--------项目启动成功--------" | ||
echo "--------欢迎使用悟空CRM ^_^--------" | ||
} | ||
|
||
function stop() | ||
{ | ||
P_ID=`ps -ef | grep -w ${project.artifactId}-${project.version}.jar | grep -v "grep" | awk '{print $2}'` | ||
kill $P_ID | ||
echo "项目已关闭" | ||
} | ||
|
||
function restart() | ||
{ | ||
P_ID=`ps -ef | grep -w ${project.artifactId}-${project.version}.jar | grep -v "grep" | awk '{print $2}'` | ||
start | ||
sleep 25s | ||
kill $P_ID | ||
echo "项目重启成功" | ||
} | ||
|
||
if [[ "$COMMAND" == "start" ]]; then | ||
start | ||
elif [[ "$COMMAND" == "stop" ]]; then | ||
stop | ||
else | ||
restart | ||
fi |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,228 @@ | ||
# wk_open_hrm | ||
体验地址:[https://www.72crm.com](http://www.72crm.com) | ||
|
||
## 悟空人力资源管理介绍 | ||
|
||
|
||
悟空人力资源管理系统正式开源,从人力资源管理的角度出发,用集中的数据将几乎所有与人力资源相关的信息(组织规划、招聘管理、员工管理、考勤管理、社保管理、绩效管理)统一管理起来。 | ||
|
||
|
||
官网地址:[http://www.5kcrm.com](http://www.5kcrm.com/) | ||
|
||
|
||
QQ群交流群群:[259359511](https://qm.qq.com/cgi-bin/qm/qr?k=G9T2audQqbZBR_HG0aTP9E-8fE7oMeb8&jump_from=webapi) | ||
|
||
|
||
扫码添加小悟官方客服微信,邀您加入千人微信交流群: | ||
|
||
<img src="https://images.gitee.com/uploads/images/2019/1231/115927_f9c580c8_345098.png" width="120"> | ||
|
||
关注悟空CRM公众号,了解更多悟空资讯 | ||
|
||
<img src="https://images.gitee.com/uploads/images/2019/1202/135713_d3566c6a_345098.jpeg" width="120"> | ||
|
||
扫码加入微信群,在线客服解答疑问 | ||
|
||
<img src="https://gitee.com/wukongcrm/project/raw/master/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20230505171952.jpg" width="120"> | ||
|
||
|
||
:boom: :boom: :boom: 注:悟空人力资源管理系统采用全新的前后端分离模式,本仓库代码中已集成前端vue打包后文件, **可免去打包操作,无需运行前端** | ||
|
||
|
||
|
||
# 悟空项目管理目录结构 | ||
|
||
``` lua | ||
wk_open_hrm | ||
├── common -- 基础模块 | ||
├── DB -- sql文件 | ||
├── hrm -- 人力资源管理模块 | ||
├── ux -- 前端源码 | ||
``` | ||
|
||
# 核心功能模块 | ||
|
||
**员工组织管理,最优配置人才资源** <br/> | ||
**考勤管理,增加员工行动力** <br/> | ||
**薪资管理,助力企业人才战略** <br/> | ||
**社保管理,给与员工充足的保障** <br/> | ||
**绩效管理,调动全员积极性** <br/> | ||
**员工自助,员工所有相关信息一览无余** <br/> | ||
|
||
|
||
# 悟空人力资源管理使用的主要技术栈 | ||
|
||
# 后端: | ||
|
||
|名称 | 版本 | 说明 | | ||
|---------------------|---------------------------|---- | | ||
| spring-cloud-alibaba| 2021.0.5.0 | 核心框架 | | ||
| spring-boot | 2.7.15 | spring版本 | | ||
| mybatis-plus | 3.5.3.2 | ORM框架 | | ||
|
||
# 前端: | ||
|
||
| 技术 | 说明 | 版本 | | ||
| --- | --- | --- | | ||
| [Vue](https://vuejs.org) | 框架 | 2.5.17 | | ||
| [Vue-router](https://router.vuejs.org) | 路由框架 | 3.0.1 | | ||
| [Vuex](https://vuex.vuejs.org) | 全局状态管理框架 | 3.0.1 | | ||
| [Element](https://element.eleme.io) | UI框架 | 2.12.0 | | ||
| [Axios](https://github.com/axios/axios) | HTTP框架 | 0.18.0 | | ||
|
||
# 使用说明 | ||
|
||
### 一、前置环境 | ||
- Jdk1.8 | ||
- Maven3.5^ | ||
- Mysql8^ | ||
- Redis(版本不限) | ||
- elasticsearch8.5.3 | ||
|
||
### 安装说明 | ||
|
||
#### 一、依赖环境安装 | ||
|
||
###### 1. 安装jdk | ||
``` | ||
yum -y install java-1.8.0-openjdk-devel; | ||
``` | ||
|
||
###### 2. 安装redis | ||
``` | ||
yum -y install epel-release; | ||
yum -y install redis; | ||
chkconfig redis on; | ||
#-- 修改redis密码为123456 | ||
yum -y install vim; | ||
vim /etc/redis.conf; | ||
#-- 在文件最下面追加一行 | ||
requirepass 123456 | ||
#-- 或者输入 / 搜索 # requirepass foobared | ||
#-- 将前面的#删除,将foobared改为123456 | ||
#-- 修改完成之后 :wq 保存并退出,重启redis | ||
service redis restart; | ||
``` | ||
|
||
###### 3.安装mysql | ||
``` | ||
wget https://repo.mysql.com//mysql80-community-release-el7-3.noarch.rpm | ||
yum -y install mysql80-community-release-el7-3.noarch.rpm | ||
yum -y install mysql-community-server --nogpgcheck | ||
sudo systemctl start mysqld.service; | ||
sudo systemctl enable mysqld.service; | ||
--查看安装的mysql默认密码 | ||
grep "password" /var/log/mysqld.log | ||
--进入mysql 例:mysql -u root -p"GXOO%eiI/7o>" | ||
mysql - u root -p"此处为上一步的默认密码" | ||
--修改mysql密码,如下图所示 | ||
set global validate_password_policy=LOW; | ||
ALTER USER 'root'@'localhost' IDENTIFIED BY 'password'; | ||
--退出mysql | ||
exit | ||
--修改mysql配置 | ||
vim /etc/my.cnf; | ||
--输入 i 进入编辑模式,修改sql_mode设置,将下面sql_mode配置复制,到 [mysqld]下使用 shift+insert 粘贴 | ||
sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION | ||
--修改完毕,按esc按键,然后 :wq 保存并退出,重启mysql | ||
service mysqld restart; | ||
``` | ||
### 4.安装elasticsearch(es) | ||
``` | ||
--下载es | ||
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.5.3-linux-x86_64.tar.gz | ||
tar xvf elasticsearch-8.5.3-linux-x86_64.tar.gz | ||
chown -R elasticsearch:elasticsearch elasticsearch-8.5.3-linux-x86_64 | ||
chmod -R 777 elasticsearch-8.5.3-linux-x86_64 | ||
--修改es配置文件 | ||
ingest.geoip.downloader.enabled: false ## 添加配置 | ||
xpack.security.enabled: true | ||
xpack.security.enrollment.enabled: true | ||
xpack.security.http.ssl: | ||
enabled: false # 改为false | ||
keystore.path: certs/http.p12 | ||
--Enable encryption and mutual authentication between cluster nodes | ||
xpack.security.transport.ssl: | ||
enabled: false # 改为false | ||
verification_mode: certificate | ||
keystore.path: certs/transport.p12 | ||
truststore.path: certs/transport.p12 | ||
-- 安装es分词器 | ||
./elasticsearch-plugin install analysis-icu | ||
--重置 es 账户密码 | ||
./elasticsearch-reset-password -u elastic | ||
-- 进入bin启动es | ||
su elasticsearch | ||
./elasticsearch | ||
``` | ||
#### 二、项目配置与启动 | ||
|
||
###### 1.导入DB目录下数据库 | ||
###### 2.在项目根目录执行mvn install | ||
###### 2.修改配置信息 | ||
###### 3.在hrm模块下resource目录配置数据库帐号信息以及redis帐号信息` | ||
|
||
###### 4. 访问[悟空ID](https://id.72crm.com/)获取账号 | ||
###### 注册之后点击默认企业,应用列表中选择人力资源管理 | ||
 | ||
###### 点击人力资源管理 | ||
 | ||
##### 将App ID,accessKey,secretKey复制到 hrm-web\src\main\resources\application.yml,分别对应appId,clientId,clientSecret 如下图所示 | ||
 | ||
将appId复制到hrm-web\src\main\resources\static\APPLICATION_ID.txt内,替换里面内容 | ||
###### 5. 项目打包部署 | ||
``` | ||
--项目打包 | ||
mkdir /opt/package | ||
mvn clean -Dmaven.test.skip=true package | ||
cp hrm-web/target/hrm-web.zip /opt/package | ||
cd /opt/package | ||
unzip hrm-web.zip -d hrm | ||
cd hrm-web | ||
sh 72crm.sh start | ||
``` | ||
|
||
###### 6. 前端项目项目运行、打包 | ||
``` | ||
- 下载node并安装(LTS):https://nodejs.org/; | ||
- 该项目为前后端分离项目,本地访问需搭建后台环境,请参考[后端项目](https://gitee.com/wukongcrm/crm_pro); | ||
- 访问线上接口无需搭建后台环境,只需将config/index.js文件中的dev下的proxyTable中的target改为线上地址即可; | ||
- 执行 npm install,下载相关依赖; | ||
- 执行 npm run dev,运行项目; | ||
- 执行成功,即可访问http://localhost:8090,查看; | ||
打包: | ||
- 需将config/prod.env.js文件中的BASE_API,调整为自己需要的 | ||
- 执行 npm run build | ||
- 打包完成 | ||
``` | ||
|
||
|
||
### 三、其他说明 | ||
|
||
#### 1.接口文档<br/> | ||
|
||
``` | ||
接口文档地址:http://localhost:44311/doc.html | ||
``` | ||
#### 2.docker镜像<br/> | ||
``` | ||
敬请期待 | ||
``` | ||
### 四、悟空人力资源功能模块预览 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<assembly | ||
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/2.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd"> | ||
<id>make-assembly</id> | ||
<formats> | ||
<format>zip</format> | ||
<format>tar.gz</format> | ||
</formats> | ||
<includeBaseDirectory>false</includeBaseDirectory> | ||
<fileSets> | ||
<fileSet> | ||
<directory>${project.parent.parent.basedir}</directory> | ||
<outputDirectory>/</outputDirectory> | ||
<filtered>true</filtered> | ||
<includes> | ||
<include>72crm.sh</include> | ||
</includes> | ||
<fileMode>755</fileMode> | ||
<lineEnding>unix</lineEnding> | ||
</fileSet> | ||
<fileSet> | ||
<directory>${project.parent.parent.basedir}</directory> | ||
<outputDirectory>/</outputDirectory> | ||
<filtered>true</filtered> | ||
<includes> | ||
<include>72crm.bat</include> | ||
</includes> | ||
</fileSet> | ||
<fileSet> | ||
<directory>${project.build.directory}/config/</directory> | ||
<outputDirectory>config</outputDirectory> | ||
</fileSet> | ||
<fileSet> | ||
<directory>${project.build.directory}/public/</directory> | ||
<outputDirectory>public</outputDirectory> | ||
</fileSet> | ||
<fileSet> | ||
<directory>${project.build.directory}/lib/</directory> | ||
<outputDirectory>lib</outputDirectory> | ||
</fileSet> | ||
<fileSet> | ||
<directory>${project.build.directory}/</directory> | ||
<includes> | ||
<!--<include>${pom.artifactId}-${pom.version}.jar</include>--> | ||
<include>*.jar</include> | ||
</includes> | ||
<outputDirectory>/</outputDirectory> | ||
</fileSet> | ||
</fileSets> | ||
</assembly> |
Oops, something went wrong.