Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
KnowledgePlanet
road-map
xfg-frame-archetype-lite
提交
475e4845
xfg-frame-archetype-lite
项目概览
KnowledgePlanet
/
road-map
/
xfg-frame-archetype-lite
通知
1164
Star
58
Fork
71
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
xfg-frame-archetype-lite
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
475e4845
编写于
11月 04, 2023
作者:
小傅哥
⛹
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
小傅哥,feat:基础环境配置
上级
a3fe8a92
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
179 addition
and
0 deletion
+179
-0
docs/dev-ops/app/docker-compose-1.0.yml
docs/dev-ops/app/docker-compose-1.0.yml
+21
-0
docs/dev-ops/app/start.sh
docs/dev-ops/app/start.sh
+20
-0
docs/dev-ops/app/stop.sh
docs/dev-ops/app/stop.sh
+1
-0
docs/dev-ops/mysql/docker-compose.yml
docs/dev-ops/mysql/docker-compose.yml
+29
-0
docs/dev-ops/mysql/sql/xfg-frame-archetype.sql
docs/dev-ops/mysql/sql/xfg-frame-archetype.sql
+108
-0
未找到文件。
docs/dev-ops/app/docker-compose-1.0.yml
0 → 100644
浏览文件 @
475e4845
# /usr/local/bin/docker-compose -f /docs/dev-ops/environment/environment-docker-compose-2.4.yml up -d
version
:
'
3.8'
# docker-compose -f docker-compose-1.0.yml up -d
# 你需要修改system为你自身系统的仓库名
services
:
x-api-app
:
image
:
system/xfg-frame-archetype-lite:1.0-SNAPSHOT
container_name
:
xfg-frame-archetype-lite
restart
:
on-failure
ports
:
-
"
8091:8091"
environment
:
-
TZ=PRC
-
SERVER_PORT=8091
volumes
:
-
./log:/data/log
logging
:
driver
:
"
json-file"
options
:
max-size
:
"
10m"
max-file
:
"
3"
\ No newline at end of file
docs/dev-ops/app/start.sh
0 → 100644
浏览文件 @
475e4845
CONTAINER_NAME
=
xfg-frame-archetype-lite
IMAGE_NAME
=
system/xfg-frame-archetype-lite:1.0-SNAPSHOT
PORT
=
8091
echo
"容器部署开始
${
CONTAINER_NAME
}
"
# 停止容器
docker stop
${
CONTAINER_NAME
}
# 删除容器
docker
rm
${
CONTAINER_NAME
}
# 启动容器
docker run
--name
${
CONTAINER_NAME
}
\
-p
${
PORT
}
:
${
PORT
}
\
-d
${
IMAGE_NAME
}
echo
"容器部署成功
${
CONTAINER_NAME
}
"
docker logs
-f
${
CONTAINER_NAME
}
\ No newline at end of file
docs/dev-ops/app/stop.sh
0 → 100644
浏览文件 @
475e4845
docker stop xfg-frame-archetype-lite
\ No newline at end of file
docs/dev-ops/mysql/docker-compose.yml
0 → 100644
浏览文件 @
475e4845
# 命令执行 docker-compose up -d
version
:
'
3.9'
services
:
mysql
:
image
:
mysql:8.0.32
container_name
:
mysql
command
:
--default-authentication-plugin=mysql_native_password
restart
:
always
environment
:
TZ
:
Asia/Shanghai
# MYSQL_ALLOW_EMPTY_PASSWORD: 'yes' # 可配置无密码,注意配置 SPRING_DATASOURCE_PASSWORD=
MYSQL_ROOT_PASSWORD
:
123456
MYSQL_USER
:
xfg
MYSQL_PASSWORD
:
123456
depends_on
:
-
mysql-job-dbdata
ports
:
-
"
3306:3306"
volumes
:
-
./sql:/docker-entrypoint-initdb.d
volumes_from
:
-
mysql-job-dbdata
# 自动加载数据
mysql-job-dbdata
:
image
:
alpine:3.18.2
container_name
:
mysql-job-dbdata
volumes
:
-
/var/lib/mysql
\ No newline at end of file
docs/dev-ops/mysql/sql/xfg-frame-archetype.sql
0 → 100644
浏览文件 @
475e4845
/*
Navicat Premium Data Transfer
Source Server : 127.0.0.1
Source Server Type : MySQL
Source Server Version : 50639
Source Host : localhost:3306
Source Schema : road-map
Target Server Type : MySQL
Target Server Version : 50639
File Encoding : 65001
Date: 15/07/2023 09:26:39
*/
SET
NAMES
utf8mb4
;
SET
FOREIGN_KEY_CHECKS
=
0
;
CREATE
database
if
NOT
EXISTS
`xfg_frame_archetype`
default
character
set
utf8mb4
collate
utf8mb4_0900_ai_ci
;
use
`xfg_frame_archetype`
;
-- ----------------------------
-- Table structure for employee
-- ----------------------------
DROP
TABLE
IF
EXISTS
`employee`
;
CREATE
TABLE
`employee`
(
`id`
int
(
11
)
unsigned
NOT
NULL
AUTO_INCREMENT
,
`employee_number`
varchar
(
16
)
NOT
NULL
DEFAULT
''
COMMENT
'雇员ID'
,
`employee_name`
varchar
(
32
)
NOT
NULL
DEFAULT
''
COMMENT
'雇员姓名'
,
`employee_level`
varchar
(
8
)
NOT
NULL
DEFAULT
''
COMMENT
'雇员级别'
,
`employee_title`
varchar
(
16
)
NOT
NULL
DEFAULT
''
COMMENT
'雇员岗位Title'
,
`create_time`
datetime
NOT
NULL
COMMENT
'创建时间'
,
`update_time`
datetime
NOT
NULL
COMMENT
'更新时间'
,
PRIMARY
KEY
(
`id`
),
UNIQUE
KEY
`idx_employee_number`
(
`employee_number`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
40
DEFAULT
CHARSET
=
utf8
;
-- ----------------------------
-- Records of employee
-- ----------------------------
BEGIN
;
INSERT
INTO
`employee`
VALUES
(
1
,
'10000001'
,
'sXvfDpsWnJdLsCVk64tJgw=='
,
'T-3'
,
'中级工程师'
,
'2023-07-14 15:26:26'
,
'2023-07-14 15:26:26'
);
INSERT
INTO
`employee`
VALUES
(
2
,
'10000010'
,
'sXvfDpsWnJdLsCVk64tJgw=='
,
'T2'
,
'见习工程师'
,
'2023-07-14 15:34:40'
,
'2023-07-14 15:34:40'
);
INSERT
INTO
`employee`
VALUES
(
3
,
'10000011'
,
'sXvfDpsWnJdLsCVk64tJgw=='
,
'T2'
,
'见习工程师'
,
'2023-07-14 15:34:40'
,
'2023-07-14 15:34:40'
);
INSERT
INTO
`employee`
VALUES
(
4
,
'10000012'
,
'sXvfDpsWnJdLsCVk64tJgw=='
,
'T2'
,
'见习工程师'
,
'2023-07-14 15:34:40'
,
'2023-07-14 15:34:40'
);
INSERT
INTO
`employee`
VALUES
(
5
,
'10000013'
,
'sXvfDpsWnJdLsCVk64tJgw=='
,
'T2'
,
'见习工程师'
,
'2023-07-14 15:34:40'
,
'2023-07-14 15:34:40'
);
INSERT
INTO
`employee`
VALUES
(
6
,
'10000014'
,
'sXvfDpsWnJdLsCVk64tJgw=='
,
'T2'
,
'见习工程师'
,
'2023-07-14 15:34:40'
,
'2023-07-14 15:34:40'
);
INSERT
INTO
`employee`
VALUES
(
9
,
'10000002'
,
'sXvfDpsWnJdLsCVk64tJgw=='
,
'T2'
,
'见习工程师'
,
'2023-07-15 07:42:52'
,
'2023-07-15 07:42:52'
);
INSERT
INTO
`employee`
VALUES
(
22
,
'10000015'
,
'hMCgLG6WV3CsNBQ1UD6PEQ=='
,
'T2'
,
'见习工程师'
,
'2023-07-15 08:02:31'
,
'2023-07-15 08:02:31'
);
INSERT
INTO
`employee`
VALUES
(
23
,
'10000016'
,
'hMCgLG6WV3CsNBQ1UD6PEQ=='
,
'T2'
,
'见习工程师'
,
'2023-07-15 08:02:31'
,
'2023-07-15 08:02:31'
);
INSERT
INTO
`employee`
VALUES
(
24
,
'10000017'
,
'hMCgLG6WV3CsNBQ1UD6PEQ=='
,
'T2'
,
'见习工程师'
,
'2023-07-15 08:02:31'
,
'2023-07-15 08:02:31'
);
INSERT
INTO
`employee`
VALUES
(
39
,
'10000022'
,
'GyG+V0r6mBCNsdusuKl03g=='
,
'T1'
,
'实习工程师'
,
'2023-07-15 09:17:49'
,
'2023-07-15 09:17:49'
);
COMMIT
;
-- ----------------------------
-- Table structure for employee_salary
-- ----------------------------
DROP
TABLE
IF
EXISTS
`employee_salary`
;
CREATE
TABLE
`employee_salary`
(
`id`
int
(
11
)
unsigned
NOT
NULL
AUTO_INCREMENT
,
`employee_number`
varchar
(
16
)
NOT
NULL
DEFAULT
''
COMMENT
'雇员编号'
,
`salary_total_amount`
decimal
(
8
,
2
)
NOT
NULL
COMMENT
'薪资总额'
,
`salary_merit_amount`
decimal
(
8
,
2
)
NOT
NULL
COMMENT
'绩效工资'
,
`salary_base_amount`
decimal
(
8
,
2
)
NOT
NULL
COMMENT
'基础工资'
,
`create_time`
datetime
NOT
NULL
COMMENT
'创建时间'
,
`update_time`
datetime
DEFAULT
NULL
COMMENT
'更新时间'
,
PRIMARY
KEY
(
`id`
),
KEY
`idx_employee_number`
(
`employee_number`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
9
DEFAULT
CHARSET
=
utf8
;
-- ----------------------------
-- Records of employee_salary
-- ----------------------------
BEGIN
;
INSERT
INTO
`employee_salary`
VALUES
(
1
,
'10000001'
,
5100
.
00
,
1020
.
00
,
4080
.
00
,
'2023-07-14 16:09:06'
,
'2023-07-14 16:09:06'
);
INSERT
INTO
`employee_salary`
VALUES
(
2
,
'10000010'
,
5000
.
00
,
1000
.
00
,
4000
.
00
,
'2023-07-14 16:17:10'
,
'2023-07-14 16:17:10'
);
INSERT
INTO
`employee_salary`
VALUES
(
3
,
'10000011'
,
5000
.
00
,
1000
.
00
,
4000
.
00
,
'2023-07-14 16:17:10'
,
'2023-07-14 16:17:10'
);
INSERT
INTO
`employee_salary`
VALUES
(
4
,
'10000012'
,
5000
.
00
,
1000
.
00
,
4000
.
00
,
'2023-07-14 16:17:10'
,
'2023-07-14 16:17:10'
);
INSERT
INTO
`employee_salary`
VALUES
(
5
,
'10000013'
,
5000
.
00
,
1000
.
00
,
4000
.
00
,
'2023-07-14 16:17:10'
,
'2023-07-14 16:17:10'
);
INSERT
INTO
`employee_salary`
VALUES
(
6
,
'10000014'
,
5000
.
00
,
1000
.
00
,
4000
.
00
,
'2023-07-14 16:17:10'
,
'2023-07-14 16:17:10'
);
INSERT
INTO
`employee_salary`
VALUES
(
8
,
'10000022'
,
100
.
00
,
10
.
00
,
90
.
00
,
'2023-07-15 09:17:49'
,
'2023-07-15 09:17:49'
);
COMMIT
;
-- ----------------------------
-- Table structure for employee_salary_adjust
-- ----------------------------
DROP
TABLE
IF
EXISTS
`employee_salary_adjust`
;
CREATE
TABLE
`employee_salary_adjust`
(
`id`
int
(
11
)
unsigned
NOT
NULL
AUTO_INCREMENT
,
`employee_number`
varchar
(
16
)
NOT
NULL
DEFAULT
''
COMMENT
'雇员编号'
,
`adjust_order_id`
varchar
(
32
)
NOT
NULL
DEFAULT
''
COMMENT
'调薪单号'
,
`adjust_total_amount`
decimal
(
8
,
2
)
NOT
NULL
COMMENT
'总额调薪'
,
`adjust_base_amount`
decimal
(
8
,
2
)
NOT
NULL
COMMENT
'基础调薪'
,
`adjust_merit_amount`
decimal
(
8
,
2
)
NOT
NULL
COMMENT
'绩效调薪'
,
`create_time`
datetime
NOT
NULL
COMMENT
'创建时间'
,
`update_time`
datetime
NOT
NULL
COMMENT
'更新时间'
,
PRIMARY
KEY
(
`id`
),
UNIQUE
KEY
`idx_order_id`
(
`adjust_order_id`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
3
DEFAULT
CHARSET
=
utf8
;
-- ----------------------------
-- Records of employee_salary_adjust
-- ----------------------------
BEGIN
;
INSERT
INTO
`employee_salary_adjust`
VALUES
(
1
,
'10000001'
,
'109089990198888811'
,
1000
.
00
,
800
.
00
,
200
.
00
,
'2023-07-14 16:55:53'
,
'2023-07-14 16:55:53'
);
INSERT
INTO
`employee_salary_adjust`
VALUES
(
2
,
'10000001'
,
'100908977676001'
,
100
.
00
,
20
.
00
,
80
.
00
,
'2023-07-14 21:57:39'
,
'2023-07-14 21:57:39'
);
COMMIT
;
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录