chore: 忽略并取消跟踪 target 构建产物
This commit is contained in:
parent
1793685601
commit
3d3d2214d3
20
.gitignore
vendored
Normal file
20
.gitignore
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
# Maven build artifacts
|
||||
target/
|
||||
target_old*/
|
||||
*.class
|
||||
|
||||
# IDE
|
||||
.idea/
|
||||
*.iml
|
||||
.vscode/
|
||||
.settings/
|
||||
.classpath
|
||||
.project
|
||||
|
||||
# Logs
|
||||
*.log
|
||||
logs/
|
||||
|
||||
# OS
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
@ -1,17 +0,0 @@
|
||||
spring:
|
||||
datasource:
|
||||
url: jdbc:h2:mem:staff_mgr;MODE=MySQL;DB_CLOSE_DELAY=-1;DATABASE_TO_LOWER=TRUE
|
||||
driver-class-name: org.h2.Driver
|
||||
username: sa
|
||||
password:
|
||||
jpa:
|
||||
hibernate:
|
||||
ddl-auto: create-drop
|
||||
open-in-view: false
|
||||
properties:
|
||||
hibernate:
|
||||
format_sql: true
|
||||
h2:
|
||||
console:
|
||||
enabled: true
|
||||
path: /h2-console
|
||||
@ -1,13 +0,0 @@
|
||||
spring:
|
||||
datasource:
|
||||
url: jdbc:mysql://${MYSQL_HOST:localhost}:3306/hr_main_db?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
username: ${MYSQL_USER:root}
|
||||
password: ${MYSQL_PASSWORD:root}
|
||||
jpa:
|
||||
hibernate:
|
||||
ddl-auto: none
|
||||
open-in-view: false
|
||||
sql:
|
||||
init:
|
||||
mode: never
|
||||
@ -1,17 +0,0 @@
|
||||
spring:
|
||||
application:
|
||||
name: staff-mgr
|
||||
profiles:
|
||||
active: dev
|
||||
|
||||
server:
|
||||
port: 8080
|
||||
|
||||
app:
|
||||
jwt:
|
||||
secret: ${JWT_SECRET:staff-mgr-dev-secret-key-must-be-at-least-32-bytes}
|
||||
expiration-ms: 86400000
|
||||
|
||||
springdoc:
|
||||
swagger-ui:
|
||||
path: /swagger-ui.html
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,101 +0,0 @@
|
||||
-- 员工管理模块 MySQL 8.0 DDL(生产库手动执行)
|
||||
CREATE TABLE IF NOT EXISTS staff_employee (
|
||||
id BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键ID',
|
||||
employee_no VARCHAR(32) NOT NULL COMMENT '工号,唯一标识',
|
||||
name VARCHAR(64) NOT NULL COMMENT '员工姓名',
|
||||
id_number VARCHAR(64) NOT NULL COMMENT '身份证号,应用层加密存储',
|
||||
gender TINYINT DEFAULT 0 COMMENT '性别:0-未知,1-男,2-女',
|
||||
department_id BIGINT NOT NULL COMMENT '所属部门ID',
|
||||
department_name VARCHAR(128) DEFAULT '' COMMENT '部门名称(冗余,加快查询)',
|
||||
position VARCHAR(128) NOT NULL COMMENT '岗位名称',
|
||||
hire_date DATE NOT NULL COMMENT '入职日期',
|
||||
phone VARCHAR(20) DEFAULT NULL COMMENT '联系电话',
|
||||
email VARCHAR(128) DEFAULT NULL COMMENT '邮箱',
|
||||
emergency_contact VARCHAR(64) DEFAULT NULL COMMENT '紧急联系人姓名',
|
||||
emergency_phone VARCHAR(20) DEFAULT NULL COMMENT '紧急联系人电话',
|
||||
status VARCHAR(16) NOT NULL DEFAULT 'active' COMMENT '状态:active-在职,inactive-离职,probation-试用期',
|
||||
created_by BIGINT DEFAULT NULL COMMENT '创建人ID',
|
||||
updated_by BIGINT DEFAULT NULL COMMENT '最后更新人ID',
|
||||
created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
|
||||
PRIMARY KEY (id),
|
||||
UNIQUE KEY uk_employee_no (employee_no),
|
||||
UNIQUE KEY uk_id_number (id_number),
|
||||
KEY idx_name (name),
|
||||
KEY idx_department_id (department_id),
|
||||
KEY idx_status (status),
|
||||
KEY idx_hire_date (hire_date),
|
||||
KEY idx_created_at (created_at)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='员工主表';
|
||||
|
||||
CREATE TABLE IF NOT EXISTS staff_employee_extra (
|
||||
id BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键ID',
|
||||
employee_id BIGINT NOT NULL COMMENT '员工ID',
|
||||
education VARCHAR(32) DEFAULT NULL COMMENT '学历',
|
||||
major VARCHAR(128) DEFAULT NULL COMMENT '专业',
|
||||
school VARCHAR(128) DEFAULT NULL COMMENT '毕业院校',
|
||||
graduation_date DATE DEFAULT NULL COMMENT '毕业时间',
|
||||
previous_company VARCHAR(128) DEFAULT NULL COMMENT '前工作单位',
|
||||
work_years INT DEFAULT 0 COMMENT '总工作年限',
|
||||
technical_level VARCHAR(32) DEFAULT NULL COMMENT '技术级别,仅 Admin/HR 可见',
|
||||
salary_grade VARCHAR(32) DEFAULT NULL COMMENT '薪资等级,仅 Admin/HR 可见',
|
||||
contract_type VARCHAR(32) DEFAULT NULL COMMENT '合同类型',
|
||||
contract_start DATE DEFAULT NULL COMMENT '合同开始日期',
|
||||
contract_end DATE DEFAULT NULL COMMENT '合同结束日期',
|
||||
probation_end DATE DEFAULT NULL COMMENT '试用期截止日',
|
||||
address VARCHAR(256) DEFAULT NULL COMMENT '现住址',
|
||||
remark TEXT DEFAULT NULL COMMENT '备注',
|
||||
created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
|
||||
PRIMARY KEY (id),
|
||||
UNIQUE KEY uk_employee_id (employee_id),
|
||||
KEY idx_technical_level (technical_level),
|
||||
KEY idx_contract_end (contract_end)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='员工扩展信息表';
|
||||
|
||||
CREATE TABLE IF NOT EXISTS staff_change_log (
|
||||
id BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键ID',
|
||||
employee_id BIGINT NOT NULL COMMENT '员工ID',
|
||||
change_type VARCHAR(32) NOT NULL COMMENT '变更类型',
|
||||
old_value VARCHAR(256) DEFAULT NULL COMMENT '原值',
|
||||
new_value VARCHAR(256) DEFAULT NULL COMMENT '新值',
|
||||
operator_id BIGINT NOT NULL COMMENT '操作人ID',
|
||||
operator_name VARCHAR(64) DEFAULT NULL COMMENT '操作人姓名',
|
||||
change_reason VARCHAR(512) DEFAULT NULL COMMENT '变更原因',
|
||||
created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '变更时间',
|
||||
PRIMARY KEY (id),
|
||||
KEY idx_employee_id (employee_id),
|
||||
KEY idx_change_type (change_type),
|
||||
KEY idx_created_at (created_at)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='员工变更记录表';
|
||||
|
||||
CREATE TABLE IF NOT EXISTS staff_audit_log (
|
||||
id BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键ID',
|
||||
target_type VARCHAR(32) NOT NULL COMMENT '操作目标类型',
|
||||
target_id BIGINT NOT NULL COMMENT '操作目标ID',
|
||||
operation VARCHAR(32) NOT NULL COMMENT '操作类型:CREATE/UPDATE/DELETE/VIEW',
|
||||
operator_id BIGINT NOT NULL COMMENT '操作人ID',
|
||||
operator_name VARCHAR(64) DEFAULT '' COMMENT '操作人姓名',
|
||||
field_name VARCHAR(64) DEFAULT NULL COMMENT '变更字段名',
|
||||
before_value TEXT DEFAULT NULL COMMENT '变更前值',
|
||||
after_value TEXT DEFAULT NULL COMMENT '变更后值',
|
||||
request_ip VARCHAR(64) DEFAULT NULL COMMENT '请求IP',
|
||||
user_agent VARCHAR(512) DEFAULT NULL COMMENT '浏览器UA',
|
||||
created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '操作时间',
|
||||
PRIMARY KEY (id),
|
||||
KEY idx_target (target_type, target_id),
|
||||
KEY idx_operator_id (operator_id),
|
||||
KEY idx_created_at (created_at)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='操作审计日志表';
|
||||
|
||||
CREATE TABLE IF NOT EXISTS staff_department_cache (
|
||||
id BIGINT NOT NULL COMMENT '部门ID(来自 org-mgr)',
|
||||
name VARCHAR(128) NOT NULL COMMENT '部门名称',
|
||||
parent_id BIGINT DEFAULT NULL COMMENT '上级部门ID',
|
||||
level INT DEFAULT 0 COMMENT '层级深度',
|
||||
employee_count INT DEFAULT 0 COMMENT '部门人数',
|
||||
status VARCHAR(16) NOT NULL DEFAULT 'active' COMMENT '状态',
|
||||
sync_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '最后同步时间',
|
||||
PRIMARY KEY (id),
|
||||
KEY idx_parent_id (parent_id)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='部门信息本地缓存表';
|
||||
@ -1,3 +0,0 @@
|
||||
artifactId=staff-mgr
|
||||
groupId=com.hr
|
||||
version=0.1.0-SNAPSHOT
|
||||
@ -1,49 +0,0 @@
|
||||
com/hr/staff/entity/StaffEmployee.class
|
||||
com/hr/staff/common/MaskUtil.class
|
||||
com/hr/staff/entity/StaffChangeLog.class
|
||||
com/hr/staff/dto/DepartmentItem.class
|
||||
com/hr/staff/dto/BatchDeleteResult$FailedItem$FailedItemBuilder.class
|
||||
com/hr/staff/dto/StaffUpdateRequest.class
|
||||
com/hr/staff/dto/StaffListItem.class
|
||||
com/hr/staff/dto/CheckEmployeeNoResult$CheckEmployeeNoResultBuilder.class
|
||||
com/hr/staff/repository/StaffEmployeeExtraRepository.class
|
||||
com/hr/staff/dto/ExtraDto$ExtraDtoBuilder.class
|
||||
com/hr/staff/common/ApiResponse.class
|
||||
com/hr/staff/service/StaffService.class
|
||||
com/hr/staff/dto/StaffDetailResponse$StaffDetailResponseBuilder.class
|
||||
com/hr/staff/dto/BatchDeleteResult$FailedItem.class
|
||||
com/hr/staff/config/JwtAuthenticationFilter.class
|
||||
com/hr/staff/repository/StaffAuditLogRepository.class
|
||||
com/hr/staff/security/JwtService.class
|
||||
com/hr/staff/dto/StaffListItem$StaffListItemBuilder.class
|
||||
com/hr/staff/dto/AuditLogItem.class
|
||||
com/hr/staff/dto/ChangeLogItem$ChangeLogItemBuilder.class
|
||||
com/hr/staff/dto/StaffDetailResponse.class
|
||||
com/hr/staff/entity/StaffAuditLog.class
|
||||
com/hr/staff/config/SecurityConfig.class
|
||||
com/hr/staff/dto/CheckEmployeeNoResult.class
|
||||
com/hr/staff/security/AuthUser.class
|
||||
com/hr/staff/entity/StaffDepartmentCache.class
|
||||
com/hr/staff/dto/StaffBrief$StaffBriefBuilder.class
|
||||
com/hr/staff/dto/BatchDeleteResult.class
|
||||
com/hr/staff/dto/BatchDeleteResult$BatchDeleteResultBuilder.class
|
||||
com/hr/staff/service/DataInitializer.class
|
||||
com/hr/staff/StaffMgrApplication.class
|
||||
com/hr/staff/common/PageResult.class
|
||||
com/hr/staff/dto/StaffCreateRequest.class
|
||||
com/hr/staff/dto/DepartmentItem$DepartmentItemBuilder.class
|
||||
com/hr/staff/repository/StaffDepartmentCacheRepository.class
|
||||
com/hr/staff/dto/ExtraDto.class
|
||||
com/hr/staff/security/SecurityUtils.class
|
||||
com/hr/staff/entity/StaffEmployeeExtra.class
|
||||
com/hr/staff/repository/StaffChangeLogRepository.class
|
||||
com/hr/staff/repository/StaffEmployeeRepository.class
|
||||
com/hr/staff/security/AesCipher.class
|
||||
com/hr/staff/dto/StaffBrief.class
|
||||
com/hr/staff/controller/StaffController.class
|
||||
com/hr/staff/common/BusinessException.class
|
||||
com/hr/staff/service/ExternalProcessClient.class
|
||||
com/hr/staff/common/GlobalExceptionHandler.class
|
||||
com/hr/staff/dto/ChangeLogItem.class
|
||||
com/hr/staff/dto/AuditLogItem$AuditLogItemBuilder.class
|
||||
com/hr/staff/dto/BatchDeleteRequest.class
|
||||
@ -1,38 +0,0 @@
|
||||
/d/pipeline/pipeline_ws/web版本的人事系统/repos/staff-mgr/src/main/java/com/hr/staff/config/JwtAuthenticationFilter.java
|
||||
/d/pipeline/pipeline_ws/web版本的人事系统/repos/staff-mgr/src/main/java/com/hr/staff/service/StaffService.java
|
||||
/d/pipeline/pipeline_ws/web版本的人事系统/repos/staff-mgr/src/main/java/com/hr/staff/repository/StaffChangeLogRepository.java
|
||||
/d/pipeline/pipeline_ws/web版本的人事系统/repos/staff-mgr/src/main/java/com/hr/staff/dto/ChangeLogItem.java
|
||||
/d/pipeline/pipeline_ws/web版本的人事系统/repos/staff-mgr/src/main/java/com/hr/staff/common/PageResult.java
|
||||
/d/pipeline/pipeline_ws/web版本的人事系统/repos/staff-mgr/src/main/java/com/hr/staff/dto/StaffCreateRequest.java
|
||||
/d/pipeline/pipeline_ws/web版本的人事系统/repos/staff-mgr/src/main/java/com/hr/staff/common/GlobalExceptionHandler.java
|
||||
/d/pipeline/pipeline_ws/web版本的人事系统/repos/staff-mgr/src/main/java/com/hr/staff/repository/StaffEmployeeExtraRepository.java
|
||||
/d/pipeline/pipeline_ws/web版本的人事系统/repos/staff-mgr/src/main/java/com/hr/staff/StaffMgrApplication.java
|
||||
/d/pipeline/pipeline_ws/web版本的人事系统/repos/staff-mgr/src/main/java/com/hr/staff/common/BusinessException.java
|
||||
/d/pipeline/pipeline_ws/web版本的人事系统/repos/staff-mgr/src/main/java/com/hr/staff/dto/CheckEmployeeNoResult.java
|
||||
/d/pipeline/pipeline_ws/web版本的人事系统/repos/staff-mgr/src/main/java/com/hr/staff/dto/ExtraDto.java
|
||||
/d/pipeline/pipeline_ws/web版本的人事系统/repos/staff-mgr/src/main/java/com/hr/staff/config/SecurityConfig.java
|
||||
/d/pipeline/pipeline_ws/web版本的人事系统/repos/staff-mgr/src/main/java/com/hr/staff/service/ExternalProcessClient.java
|
||||
/d/pipeline/pipeline_ws/web版本的人事系统/repos/staff-mgr/src/main/java/com/hr/staff/security/JwtService.java
|
||||
/d/pipeline/pipeline_ws/web版本的人事系统/repos/staff-mgr/src/main/java/com/hr/staff/repository/StaffDepartmentCacheRepository.java
|
||||
/d/pipeline/pipeline_ws/web版本的人事系统/repos/staff-mgr/src/main/java/com/hr/staff/entity/StaffDepartmentCache.java
|
||||
/d/pipeline/pipeline_ws/web版本的人事系统/repos/staff-mgr/src/main/java/com/hr/staff/dto/StaffListItem.java
|
||||
/d/pipeline/pipeline_ws/web版本的人事系统/repos/staff-mgr/src/main/java/com/hr/staff/dto/StaffDetailResponse.java
|
||||
/d/pipeline/pipeline_ws/web版本的人事系统/repos/staff-mgr/src/main/java/com/hr/staff/common/MaskUtil.java
|
||||
/d/pipeline/pipeline_ws/web版本的人事系统/repos/staff-mgr/src/main/java/com/hr/staff/dto/DepartmentItem.java
|
||||
/d/pipeline/pipeline_ws/web版本的人事系统/repos/staff-mgr/src/main/java/com/hr/staff/repository/StaffEmployeeRepository.java
|
||||
/d/pipeline/pipeline_ws/web版本的人事系统/repos/staff-mgr/src/main/java/com/hr/staff/dto/BatchDeleteResult.java
|
||||
/d/pipeline/pipeline_ws/web版本的人事系统/repos/staff-mgr/src/main/java/com/hr/staff/service/DataInitializer.java
|
||||
/d/pipeline/pipeline_ws/web版本的人事系统/repos/staff-mgr/src/main/java/com/hr/staff/dto/StaffUpdateRequest.java
|
||||
/d/pipeline/pipeline_ws/web版本的人事系统/repos/staff-mgr/src/main/java/com/hr/staff/controller/StaffController.java
|
||||
/d/pipeline/pipeline_ws/web版本的人事系统/repos/staff-mgr/src/main/java/com/hr/staff/dto/StaffBrief.java
|
||||
/d/pipeline/pipeline_ws/web版本的人事系统/repos/staff-mgr/src/main/java/com/hr/staff/security/AuthUser.java
|
||||
/d/pipeline/pipeline_ws/web版本的人事系统/repos/staff-mgr/src/main/java/com/hr/staff/entity/StaffAuditLog.java
|
||||
/d/pipeline/pipeline_ws/web版本的人事系统/repos/staff-mgr/src/main/java/com/hr/staff/repository/StaffAuditLogRepository.java
|
||||
/d/pipeline/pipeline_ws/web版本的人事系统/repos/staff-mgr/src/main/java/com/hr/staff/entity/StaffChangeLog.java
|
||||
/d/pipeline/pipeline_ws/web版本的人事系统/repos/staff-mgr/src/main/java/com/hr/staff/dto/AuditLogItem.java
|
||||
/d/pipeline/pipeline_ws/web版本的人事系统/repos/staff-mgr/src/main/java/com/hr/staff/security/SecurityUtils.java
|
||||
/d/pipeline/pipeline_ws/web版本的人事系统/repos/staff-mgr/src/main/java/com/hr/staff/common/ApiResponse.java
|
||||
/d/pipeline/pipeline_ws/web版本的人事系统/repos/staff-mgr/src/main/java/com/hr/staff/entity/StaffEmployeeExtra.java
|
||||
/d/pipeline/pipeline_ws/web版本的人事系统/repos/staff-mgr/src/main/java/com/hr/staff/security/AesCipher.java
|
||||
/d/pipeline/pipeline_ws/web版本的人事系统/repos/staff-mgr/src/main/java/com/hr/staff/entity/StaffEmployee.java
|
||||
/d/pipeline/pipeline_ws/web版本的人事系统/repos/staff-mgr/src/main/java/com/hr/staff/dto/BatchDeleteRequest.java
|
||||
@ -1 +0,0 @@
|
||||
com/hr/staff/StaffApiIntegrationTest.class
|
||||
@ -1 +0,0 @@
|
||||
/d/pipeline/pipeline_ws/web版本的人事系统/repos/staff-mgr/src/test/java/com/hr/staff/StaffApiIntegrationTest.java
|
||||
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
@ -1,4 +0,0 @@
|
||||
-------------------------------------------------------------------------------
|
||||
Test set: com.hr.staff.StaffApiIntegrationTest
|
||||
-------------------------------------------------------------------------------
|
||||
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.882 s -- in com.hr.staff.StaffApiIntegrationTest
|
||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user