Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fangxinjiang
yifu-mvp
Commits
dedc4978
Commit
dedc4978
authored
Jun 29, 2022
by
hongguangwu
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop' into develop
parents
92e1b740
3b3674b2
Hide whitespace changes
Inline
Side-by-side
Showing
62 changed files
with
3699 additions
and
57 deletions
+3699
-57
FddCompanyInfo.java
...fu/cloud/plus/v1/yifu/archives/entity/FddCompanyInfo.java
+2
-2
FddContractAttachInfo.java
...d/plus/v1/yifu/archives/entity/FddContractAttachInfo.java
+193
-0
FddContractInfo.java
...u/cloud/plus/v1/yifu/archives/entity/FddContractInfo.java
+175
-0
FddContractTemplate.java
...oud/plus/v1/yifu/archives/entity/FddContractTemplate.java
+96
-0
FddContractTemplateFile.java
...plus/v1/yifu/archives/entity/FddContractTemplateFile.java
+59
-0
FddGlobalFieldInfo.java
...loud/plus/v1/yifu/archives/entity/FddGlobalFieldInfo.java
+65
-0
FddTemplateFieldInfo.java
...ud/plus/v1/yifu/archives/entity/FddTemplateFieldInfo.java
+65
-0
TCertRecord.java
.../yifu/cloud/plus/v1/yifu/archives/entity/TCertRecord.java
+3
-38
TEmpBadRecord.java
...ifu/cloud/plus/v1/yifu/archives/entity/TEmpBadRecord.java
+126
-0
EmpBadRecordSearchVo.java
.../cloud/plus/v1/yifu/archives/vo/EmpBadRecordSearchVo.java
+24
-0
EmpBadRecordVo.java
...m/yifu/cloud/plus/v1/yifu/archives/vo/EmpBadRecordVo.java
+84
-0
EmployeeProjectExportVO.java
...oud/plus/v1/yifu/archives/vo/EmployeeProjectExportVO.java
+2
-0
EmployeeProjectVO.java
...ifu/cloud/plus/v1/yifu/archives/vo/EmployeeProjectVO.java
+6
-3
FddContractAttachInfoController.java
.../archives/controller/FddContractAttachInfoController.java
+114
-0
FddContractInfoController.java
...1/yifu/archives/controller/FddContractInfoController.java
+114
-0
FddContractTemplateController.java
...fu/archives/controller/FddContractTemplateController.java
+115
-0
FddContractTemplateFileController.java
...rchives/controller/FddContractTemplateFileController.java
+115
-0
FddController.java
...cloud/plus/v1/yifu/archives/controller/FddController.java
+310
-0
FddGlobalFieldInfoController.java
...ifu/archives/controller/FddGlobalFieldInfoController.java
+115
-0
FddPersonAccountController.java
.../yifu/archives/controller/FddPersonAccountController.java
+1
-1
FddTemplateFieldInfoController.java
...u/archives/controller/FddTemplateFieldInfoController.java
+115
-0
TEmpBadRecordController.java
.../v1/yifu/archives/controller/TEmpBadRecordController.java
+176
-0
TEmployeeProjectController.java
.../yifu/archives/controller/TEmployeeProjectController.java
+14
-0
FddContractAttachInfoMapper.java
.../v1/yifu/archives/mapper/FddContractAttachInfoMapper.java
+47
-0
FddContractInfoMapper.java
...d/plus/v1/yifu/archives/mapper/FddContractInfoMapper.java
+36
-0
FddContractTemplateFileMapper.java
...1/yifu/archives/mapper/FddContractTemplateFileMapper.java
+33
-0
FddContractTemplateMapper.java
...us/v1/yifu/archives/mapper/FddContractTemplateMapper.java
+44
-0
FddGlobalFieldInfoMapper.java
...lus/v1/yifu/archives/mapper/FddGlobalFieldInfoMapper.java
+33
-0
FddTemplateFieldInfoMapper.java
...s/v1/yifu/archives/mapper/FddTemplateFieldInfoMapper.java
+33
-0
TEmpBadRecordMapper.java
...oud/plus/v1/yifu/archives/mapper/TEmpBadRecordMapper.java
+33
-0
FddContractAttachInfoService.java
...1/yifu/archives/service/FddContractAttachInfoService.java
+49
-0
FddContractInfoService.java
...plus/v1/yifu/archives/service/FddContractInfoService.java
+32
-0
FddContractTemplateFileService.java
...yifu/archives/service/FddContractTemplateFileService.java
+32
-0
FddContractTemplateService.java
.../v1/yifu/archives/service/FddContractTemplateService.java
+42
-0
FddGlobalFieldInfoService.java
...s/v1/yifu/archives/service/FddGlobalFieldInfoService.java
+32
-0
FddTemplateFieldInfoService.java
...v1/yifu/archives/service/FddTemplateFieldInfoService.java
+32
-0
TEmpBadRecordService.java
...d/plus/v1/yifu/archives/service/TEmpBadRecordService.java
+49
-0
TEmployeeProjectService.java
...lus/v1/yifu/archives/service/TEmployeeProjectService.java
+3
-0
FddContractAttachInfoServiceImpl.java
...chives/service/impl/FddContractAttachInfoServiceImpl.java
+60
-0
FddContractInfoServiceImpl.java
...ifu/archives/service/impl/FddContractInfoServiceImpl.java
+36
-0
FddContractTemplateFileServiceImpl.java
...ives/service/impl/FddContractTemplateFileServiceImpl.java
+36
-0
FddContractTemplateServiceImpl.java
...archives/service/impl/FddContractTemplateServiceImpl.java
+87
-0
FddGlobalFieldInfoServiceImpl.java
.../archives/service/impl/FddGlobalFieldInfoServiceImpl.java
+34
-0
FddPersonAccountServiceImpl.java
...fu/archives/service/impl/FddPersonAccountServiceImpl.java
+11
-5
FddTemplateFieldInfoServiceImpl.java
...rchives/service/impl/FddTemplateFieldInfoServiceImpl.java
+36
-0
TCertRecordServiceImpl.java
...v1/yifu/archives/service/impl/TCertRecordServiceImpl.java
+1
-1
TEmpBadRecordServiceImpl.java
.../yifu/archives/service/impl/TEmpBadRecordServiceImpl.java
+262
-0
TEmpWorkRecordingServiceImpl.java
...u/archives/service/impl/TEmpWorkRecordingServiceImpl.java
+3
-3
TEmployeeProjectServiceImpl.java
...fu/archives/service/impl/TEmployeeProjectServiceImpl.java
+15
-0
FddContractAttachInfoMapper.xml
...src/main/resources/mapper/FddContractAttachInfoMapper.xml
+170
-0
FddContractInfoMapper.xml
...s-biz/src/main/resources/mapper/FddContractInfoMapper.xml
+54
-0
FddContractTemplateFileMapper.xml
...c/main/resources/mapper/FddContractTemplateFileMapper.xml
+31
-0
FddContractTemplateMapper.xml
...z/src/main/resources/mapper/FddContractTemplateMapper.xml
+116
-0
FddGlobalFieldInfoMapper.xml
...iz/src/main/resources/mapper/FddGlobalFieldInfoMapper.xml
+32
-0
FddTemplateFieldInfoMapper.xml
.../src/main/resources/mapper/FddTemplateFieldInfoMapper.xml
+32
-0
TEmpBadRecordMapper.xml
...ves-biz/src/main/resources/mapper/TEmpBadRecordMapper.xml
+43
-0
ErrorCodes.java
....cloud.plus.v1/yifu/common/core/exception/ErrorCodes.java
+5
-1
messages_zh_CN.properties
...on-core/src/main/resources/i18n/messages_zh_CN.properties
+2
-0
pom.xml
yifu-common/yifu-common-mybatis/pom.xml
+6
-0
BaseEntity.java
...fu.cloud.plus.v1/yifu/common/mybatis/base/BaseEntity.java
+3
-0
Controller.java.vm
...fu-codegen/src/main/resources/template/Controller.java.vm
+3
-3
Entity.java.vm
...l/yifu-codegen/src/main/resources/template/Entity.java.vm
+2
-0
No files found.
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/entity/FddCompanyInfo.java
View file @
dedc4978
...
...
@@ -32,9 +32,9 @@ import lombok.EqualsAndHashCode;
*/
@Data
@TableName
(
"fdd_company_info"
)
@EqualsAndHashCode
(
callSuper
=
true
)
@EqualsAndHashCode
()
@Schema
(
description
=
"法大大企业接入方信息"
)
public
class
FddCompanyInfo
extends
BaseEntity
{
public
class
FddCompanyInfo
{
/**
* 主键
...
...
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/entity/FddContractAttachInfo.java
0 → 100644
View file @
dedc4978
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.math.BigDecimal
;
import
java.time.LocalDateTime
;
/**
* 法大大合同附属信息表
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
@Data
@TableName
(
"fdd_contract_attach_info"
)
@EqualsAndHashCode
(
callSuper
=
true
)
@Schema
(
description
=
"法大大合同附属信息表"
)
public
class
FddContractAttachInfo
extends
BaseEntity
{
/**
* 主键
*/
@TableId
(
type
=
IdType
.
ASSIGN_ID
)
@Schema
(
description
=
"主键"
)
private
String
id
;
/**
* 合同id
*/
@Schema
(
description
=
"合同id"
)
private
String
contractId
;
/**
* 合同试用期开始时间
*/
@Schema
(
description
=
"合同试用期开始时间"
)
private
LocalDateTime
periodStart
;
/**
* 合同试用期结束时间
*/
@Schema
(
description
=
"合同试用期结束时间"
)
private
LocalDateTime
periodEnd
;
/**
* 合同起始时间
*/
@Schema
(
description
=
"合同起始时间"
)
private
LocalDateTime
contractStart
;
/**
* 合同到期时间
*/
@Schema
(
description
=
"合同到期时间"
)
private
LocalDateTime
contractEnd
;
/**
* 试用期工资 元/月
*/
@Schema
(
description
=
"试用期工资 元/月"
)
private
BigDecimal
periodSalaryPerMonth
;
/**
* 工资形式 1.计时工资 2.计件工资 3.其他
*/
@Schema
(
description
=
"工资形式 1.计时工资 2.计件工资 3.其他"
)
private
String
salaryType
;
/**
* 计时工资 工资标准 元/月
*/
@Schema
(
description
=
"计时工资 工资标准 元/月"
)
private
BigDecimal
salaryStandardPerHour
;
/**
* 计件工资 工资标准单价/元
*/
@Schema
(
description
=
"计件工资 工资标准单价/元"
)
private
BigDecimal
salaryStandardPerPiece
;
/**
* 工作地点
*/
@Schema
(
description
=
"工作地点"
)
private
String
workSpace
;
/**
* 岗位
*/
@Schema
(
description
=
"岗位"
)
private
String
post
;
/**
* 备注
*/
@Schema
(
description
=
"备注"
)
private
String
remark
;
/**
* 是否删除 0未删除/1删除
*/
@Schema
(
description
=
"是否删除 0未删除/1删除"
)
private
String
deleteFlag
;
/**
* 附件是否已转移到合同里(0:未转移;1已转移)
*/
@Schema
(
description
=
"附件是否已转移到合同里(0:未转移;1已转移)"
)
private
Integer
isMove
;
/**
* 法大大模板id
*/
@Schema
(
description
=
"法大大模板id"
)
private
String
fddTemplateId
;
/**
* 员工姓名
*/
@Schema
(
description
=
"员工姓名"
)
private
String
empName
;
/**
* 身份证号码
*/
@Schema
(
description
=
"身份证号码"
)
private
String
empIdcard
;
/**
* 手机号码
*/
@Schema
(
description
=
"手机号码"
)
private
String
empPhone
;
/**
* 结算主体编码
*/
@Schema
(
description
=
"结算主体编码"
)
private
String
departNo
;
/**
* 创建者
*/
@Schema
(
description
=
"创建者"
)
private
String
createBy
;
/**
* 更新人
*/
@Schema
(
description
=
"更新人"
)
private
String
updateBy
;
/**
* 创建时间
*/
@Schema
(
description
=
"创建时间"
)
private
LocalDateTime
createTime
;
/**
* 更新时间
*/
@Schema
(
description
=
"更新时间"
)
private
LocalDateTime
updateTime
;
/**
* 创建人姓名
*/
@Schema
(
description
=
"创建人姓名"
)
private
String
createName
;
}
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/entity/FddContractInfo.java
0 → 100644
View file @
dedc4978
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.time.LocalDateTime
;
/**
* 法大大合同与员工合同信息
*
* @author fxj
* @date 2022-06-29 16:21:51
*/
@Data
@TableName
(
"fdd_contract_info"
)
@EqualsAndHashCode
(
callSuper
=
true
)
@Schema
(
description
=
"法大大合同与员工合同信息"
)
public
class
FddContractInfo
extends
BaseEntity
{
/**
* 主键
*/
@TableId
(
type
=
IdType
.
ASSIGN_ID
)
@Schema
(
description
=
"主键"
)
private
String
id
;
/**
* 员工合同Id
*/
@Schema
(
description
=
"员工合同Id"
)
private
String
contractId
;
/**
* 甲方用户ID: FDD_PERSON_ACCOUNT的个人实名ID
*/
@Schema
(
description
=
"甲方用户ID: FDD_PERSON_ACCOUNT的个人实名ID"
)
private
String
fddPersonAccountSendId
;
/**
* 乙方用户ID: FDD_PERSON_ACCOUNT的个人实名ID
*/
@Schema
(
description
=
"乙方用户ID: FDD_PERSON_ACCOUNT的个人实名ID"
)
private
String
fddPersonAccountReceiveId
;
/**
* 组织的unionId
*/
@Schema
(
description
=
"组织的unionId"
)
private
String
sendUnionid
;
/**
* 签署人的unionId
*/
@Schema
(
description
=
"签署人的unionId"
)
private
String
receiveUnionid
;
/**
* 定稿状态 1未定稿 2.定稿成功
*/
@Schema
(
description
=
"定稿状态 1未定稿 2.定稿成功"
)
private
String
taskStatus
;
/**
* 签署发送方状态 1.未签署 2 已签署 3 已拒签 4 已撤销
*/
@Schema
(
description
=
"签署发送方状态 1.未签署 2 已签署 3 已拒签 4 已撤销"
)
private
String
sendSignStatus
;
/**
* 定稿任务编号
*/
@Schema
(
description
=
"定稿任务编号"
)
private
String
taskId
;
/**
* 定稿文件编号
*/
@Schema
(
description
=
"定稿文件编号"
)
private
String
fileId
;
/**
* 草稿id,用于生成后续签署任务
*/
@Schema
(
description
=
"草稿id,用于生成后续签署任务"
)
private
String
draftId
;
/**
* 是否删除 0未删除/1删除
*/
@Schema
(
description
=
"是否删除 0未删除/1删除"
)
private
String
deleteFlag
;
/**
* 签署任务编号
*/
@Schema
(
description
=
"签署任务编号"
)
private
String
signTaskId
;
/**
* 签署接收方状态 1.未签署 2 已签署 3 已拒签 4 已撤销
*/
@Schema
(
description
=
"签署接收方状态 1.未签署 2 已签署 3 已拒签 4 已撤销"
)
private
String
receiveSignStatus
;
/**
* 签署状态 1.未签署 2 已签署 4 已撤销 5已拒签
*/
@Schema
(
description
=
"签署状态 1.未签署 2 已签署 4 已撤销 5已拒签"
)
private
String
signStatus
;
/**
* 备注
*/
@Schema
(
description
=
"备注"
)
private
String
remark
;
/**
* 合同模板id
*/
@Schema
(
description
=
"合同模板id"
)
private
String
fddTemplateId
;
/**
* 创建者
*/
@Schema
(
description
=
"创建者"
)
private
String
createBy
;
/**
* 更新人
*/
@Schema
(
description
=
"更新人"
)
private
String
updateBy
;
/**
* 创建时间
*/
@Schema
(
description
=
"创建时间"
)
private
LocalDateTime
createTime
;
/**
* 更新时间
*/
@Schema
(
description
=
"更新时间"
)
private
LocalDateTime
updateTime
;
/**
* 创建人姓名
*/
@Schema
(
description
=
"创建人姓名"
)
private
String
createName
;
}
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/entity/FddContractTemplate.java
0 → 100644
View file @
dedc4978
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
/**
* 法大大员工合同模板
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
@Data
@TableName
(
"fdd_contract_template"
)
@EqualsAndHashCode
(
callSuper
=
true
)
@Schema
(
description
=
"法大大员工合同模板"
)
public
class
FddContractTemplate
extends
BaseEntity
{
/**
* 主键
*/
@TableId
(
type
=
IdType
.
ASSIGN_ID
)
@Schema
(
description
=
"主键"
)
private
String
id
;
/**
* 合同类型的字典
*/
@Schema
(
description
=
"合同类型的字典"
)
private
String
type
;
/**
* 合同编辑状态 1成功
*/
@Schema
(
description
=
"合同编辑状态 1成功"
)
private
String
modifyUploadStatus
;
/**
* 省
*/
@Schema
(
description
=
"省"
)
private
Integer
province
;
/**
* 市
*/
@Schema
(
description
=
"市"
)
private
Integer
city
;
/**
* 是否有加班工资 0无加班工资 1有加班工资
*/
@Schema
(
description
=
"是否有加班工资 0无加班工资 1有加班工资"
)
private
String
overtimeWageFlag
;
/**
* 法大大模板id
*/
@Schema
(
description
=
"法大大模板id"
)
private
String
fddTemplateId
;
/**
* 本地模板名称
*/
@Schema
(
description
=
"本地模板名称"
)
private
String
localName
;
/**
* 签署组织名称
*/
@Schema
(
description
=
"签署组织名称"
)
private
String
signerName
;
}
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/entity/FddContractTemplateFile.java
0 → 100644
View file @
dedc4978
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
/**
* 法大大员工合同模板文件表
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
@Data
@TableName
(
"fdd_contract_template_file"
)
@EqualsAndHashCode
(
callSuper
=
true
)
@Schema
(
description
=
"法大大员工合同模板文件表"
)
public
class
FddContractTemplateFile
extends
BaseEntity
{
/**
* 主键
*/
@TableId
(
type
=
IdType
.
ASSIGN_ID
)
@Schema
(
description
=
"主键"
)
private
String
id
;
/**
* 法大大模板id
*/
@Schema
(
description
=
"法大大模板id"
)
private
String
fddTemplateId
;
/**
* 法大大FileId
*/
@Schema
(
description
=
"法大大FileId"
)
private
String
fddFileId
;
}
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/entity/FddGlobalFieldInfo.java
0 → 100644
View file @
dedc4978
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
/**
* 法大大模板字段信息表
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
@Data
@TableName
(
"fdd_global_field_info"
)
@EqualsAndHashCode
(
callSuper
=
true
)
@Schema
(
description
=
"法大大模板字段信息表"
)
public
class
FddGlobalFieldInfo
extends
BaseEntity
{
/**
* id
*/
@TableId
(
type
=
IdType
.
ASSIGN_ID
)
@Schema
(
description
=
"id"
)
private
String
id
;
/**
* 法大大字段
*/
@Schema
(
description
=
"法大大字段"
)
private
String
filedName
;
/**
* 备注
*/
@Schema
(
description
=
"备注"
)
private
String
remark
;
/**
* 0 个人 1 公司
*/
@Schema
(
description
=
"0 个人 1 公司"
)
private
String
type
;
}
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/entity/FddTemplateFieldInfo.java
0 → 100644
View file @
dedc4978
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
/**
* 法大大字段对应信息表
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
@Data
@TableName
(
"fdd_template_field_info"
)
@EqualsAndHashCode
(
callSuper
=
true
)
@Schema
(
description
=
"法大大字段对应信息表"
)
public
class
FddTemplateFieldInfo
extends
BaseEntity
{
/**
* ID
*/
@TableId
(
type
=
IdType
.
ASSIGN_ID
)
@Schema
(
description
=
"ID"
)
private
String
id
;
/**
* 角色:0个人 1公司
*/
@Schema
(
description
=
"角色:0个人 1公司"
)
private
String
type
;
/**
* 对应法大大模板字段名称,传给法大大时要初始化
*/
@Schema
(
description
=
"对应法大大模板字段名称,传给法大大时要初始化"
)
private
String
filedName
;
/**
* 模板ID
*/
@Schema
(
description
=
"模板ID"
)
private
String
templateId
;
}
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/entity/TCertRecord.java
View file @
dedc4978
...
...
@@ -117,41 +117,6 @@ public class TCertRecord extends BaseEntity {
@Schema
(
description
=
"印章名称"
)
private
String
seal
;
/**
* 创建者
*/
@ExcelAttribute
(
name
=
"创建者"
)
@Schema
(
description
=
"创建者"
)
private
String
createBy
;
/**
* 更新人
*/
@ExcelAttribute
(
name
=
"更新人"
)
@Schema
(
description
=
"更新人"
)
private
String
updateBy
;
/**
* 创建人姓名
*/
@ExcelAttribute
(
name
=
"创建人姓名"
)
@Schema
(
description
=
"创建人姓名"
)
private
String
createName
;
/**
* 创建时间
*/
@ExcelAttribute
(
name
=
"创建时间"
)
@Schema
(
description
=
"创建时间"
)
private
LocalDateTime
createTime
;
/**
* 更新时间
*/
@ExcelAttribute
(
name
=
"更新时间"
)
@Schema
(
description
=
"更新时间"
)
private
LocalDateTime
updateTime
;
/**
* 证明类型:0 在职 1 离职2劳动合同解除 3调档函4.代缴证明
*/
...
...
@@ -174,10 +139,10 @@ public class TCertRecord extends BaseEntity {
private
String
leaveReason
;
/**
* 性别:
0男 1
女
* 性别:
1男 2
女
*/
@ExcelAttribute
(
name
=
"性别
:0男 1女
"
)
@Schema
(
description
=
"性别:
0男 1女
"
)
@ExcelAttribute
(
name
=
"性别"
)
@Schema
(
description
=
"性别:
1男 2女,和档案一致
"
)
private
String
sex
;
/**
...
...
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/entity/TEmpBadRecord.java
0 → 100644
View file @
dedc4978
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
entity
;
import
com.alibaba.excel.annotation.ExcelIgnore
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute
;
import
com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.math.BigDecimal
;
import
java.util.Date
;
/**
* 员工不良记录
*
* @author fxj
* @date 2022-06-29 15:50:45
*/
@Data
@TableName
(
"t_emp_bad_record"
)
@EqualsAndHashCode
(
callSuper
=
true
)
@Schema
(
description
=
"员工不良记录"
)
public
class
TEmpBadRecord
extends
BaseEntity
{
/**
* 主键
*/
@TableId
(
type
=
IdType
.
ASSIGN_ID
)
@ExcelAttribute
(
name
=
"主键"
)
@Schema
(
description
=
"主键"
)
@ExcelIgnore
private
String
id
;
/**
* 员工姓名
*/
@ExcelAttribute
(
name
=
"员工姓名"
,
maxLength
=
20
)
@Schema
(
description
=
"员工姓名"
)
@ExcelProperty
(
"员工姓名"
)
private
String
empName
;
/**
* 员工ID
*/
@ExcelAttribute
(
name
=
"员工ID"
)
@Schema
(
description
=
"员工ID"
)
@ExcelIgnore
private
String
empId
;
/**
* 身份证号
*/
@ExcelAttribute
(
name
=
"身份证号"
,
maxLength
=
20
)
@Schema
(
description
=
"身份证号"
)
@ExcelProperty
(
"身份证号"
)
private
String
empIdcard
;
/**
* 产生项目
*/
@ExcelAttribute
(
name
=
"产生项目"
,
maxLength
=
50
)
@Schema
(
description
=
"产生项目"
)
@ExcelProperty
(
"产生项目"
)
private
String
project
;
/**
* 项目编码
*/
@ExcelAttribute
(
name
=
"项目编码"
,
maxLength
=
50
)
@Schema
(
description
=
"项目编码"
)
@ExcelProperty
(
"项目编码"
)
private
String
projectCode
;
/**
* 发生时间
*/
@ExcelAttribute
(
name
=
"发生时间"
)
@Schema
(
description
=
"发生时间"
)
@ExcelProperty
(
"发生时间"
)
private
Date
happenTime
;
/**
* 备注
*/
@ExcelAttribute
(
name
=
"备注"
,
maxLength
=
200
)
@Schema
(
description
=
"备注"
)
@ExcelProperty
(
"备注"
)
private
String
remark
;
/**
* 费用损失 (费用损失与其他费用损失其一必填)
*/
@ExcelAttribute
(
name
=
"费用损失 "
)
@Schema
(
description
=
"费用损失 (费用损失与其他费用损失其一必填)"
)
@ExcelProperty
(
"费用损失"
)
private
BigDecimal
loseFee
;
/**
* 其他损失 (费用损失与其他费用损失其一必填)
*/
@ExcelAttribute
(
name
=
"其他损失"
)
@Schema
(
description
=
"其他损失 (费用损失与其他费用损失其一必填)"
)
@ExcelProperty
(
"其他损失"
)
private
BigDecimal
loseFeeOther
;
}
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/vo/EmpBadRecordSearchVo.java
0 → 100644
View file @
dedc4978
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
vo
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpBadRecord
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
java.time.LocalDateTime
;
/**
* @Author fxj
* @Date 2022/6/29
* @Description
* @Version 1.0
*/
@Data
public
class
EmpBadRecordSearchVo
extends
TEmpBadRecord
{
private
String
ids
;
/**
* 创建时间区间 [开始时间,结束时间]
*/
@Schema
(
description
=
"创建时间区间"
)
private
LocalDateTime
[]
createTimes
;
}
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/vo/EmpBadRecordVo.java
0 → 100644
View file @
dedc4978
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
vo
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.alibaba.excel.annotation.format.DateTimeFormat
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
javax.validation.constraints.NotNull
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
java.util.Date
;
/**
* @Author fxj
* @Date 2022/6/29
* @Description
* @Version 1.0
*/
@Data
public
class
EmpBadRecordVo
extends
RowIndex
implements
Serializable
{
/**
* 员工姓名
*/
@ExcelAttribute
(
name
=
"员工姓名"
,
maxLength
=
20
,
isNotEmpty
=
true
)
@Schema
(
description
=
"员工姓名"
)
private
String
empName
;
/**
* 员工ID
*/
@ExcelAttribute
(
name
=
"员工ID"
)
@Schema
(
description
=
"员工ID"
)
private
String
empId
;
/**
* 身份证号
*/
@ExcelAttribute
(
name
=
"身份证号"
,
maxLength
=
20
,
isNotEmpty
=
true
)
@Schema
(
description
=
"身份证号"
)
private
String
empIdcard
;
/**
* 产生项目
*/
@ExcelAttribute
(
name
=
"产生项目"
,
maxLength
=
50
,
isNotEmpty
=
true
)
@Schema
(
description
=
"产生项目"
)
private
String
project
;
/**
* 项目编码
*/
@ExcelAttribute
(
name
=
"项目编码"
,
maxLength
=
50
,
isNotEmpty
=
true
)
@Schema
(
description
=
"项目编码"
)
private
String
projectCode
;
/**
* 发生时间
*/
@ExcelAttribute
(
name
=
"发生时间"
,
isNotEmpty
=
true
)
@Schema
(
description
=
"发生时间"
)
private
Date
happenTime
;
/**
* 备注
*/
@ExcelAttribute
(
name
=
"备注"
,
maxLength
=
200
,
isNotEmpty
=
true
)
@Schema
(
description
=
"备注"
)
private
String
remark
;
/**
* 费用损失 (费用损失与其他费用损失其一必填)
*/
@ExcelAttribute
(
name
=
"费用损失 "
)
@Schema
(
description
=
"费用损失 (费用损失与其他费用损失其一必填)"
)
private
BigDecimal
loseFee
;
/**
* 其他损失 (费用损失与其他费用损失其一必填)
*/
@ExcelAttribute
(
name
=
"其他损失"
)
@Schema
(
description
=
"其他损失 (费用损失与其他费用损失其一必填)"
)
private
BigDecimal
loseFeeOther
;
}
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/vo/EmployeeProjectExportVO.java
View file @
dedc4978
...
...
@@ -18,6 +18,7 @@ package com.yifu.cloud.plus.v1.yifu.archives.vo;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.alibaba.excel.annotation.write.style.ColumnWidth
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
...
...
@@ -41,6 +42,7 @@ public class EmployeeProjectExportVO{
* 档案员工类型(字典值,0外包1派遣2代理)
*/
@ExcelProperty
(
value
=
"档案员工类型"
)
@ExcelAttribute
(
name
=
"档案员工类型"
,
isNotEmpty
=
true
,
errorInfo
=
"档案员工类型不可为空"
,
isDataId
=
true
,
dataType
=
"emp_natrue"
)
private
String
proEmpNatrue
;
/**
...
...
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/vo/EmployeeProjectVO.java
View file @
dedc4978
...
...
@@ -18,6 +18,7 @@ package com.yifu.cloud.plus.v1.yifu.archives.vo;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.alibaba.excel.annotation.write.style.ColumnWidth
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute
;
import
lombok.Data
;
import
javax.validation.constraints.NotNull
;
...
...
@@ -42,7 +43,7 @@ public class EmployeeProjectVO implements Serializable {
* 员工类型(字典值,0外包1派遣2代理)
*/
@NotNull
(
message
=
"员工类型不能为空"
)
@
Size
(
max
=
1
,
message
=
"员工类型不可超过1位"
)
@
ExcelAttribute
(
name
=
"员工类型"
,
isNotEmpty
=
true
,
errorInfo
=
"员工类型不能为空"
,
maxLength
=
1
)
@ExcelProperty
(
value
=
"员工类型"
)
private
String
empNatrue
;
...
...
@@ -50,7 +51,7 @@ public class EmployeeProjectVO implements Serializable {
* 员工姓名
*/
@NotNull
(
message
=
"员工姓名不能为空"
)
@
Size
(
max
=
20
,
message
=
"员工姓名不可超过20位"
)
@
ExcelAttribute
(
name
=
"员工姓名"
,
isNotEmpty
=
true
,
errorInfo
=
"员工姓名不能为空"
,
maxLength
=
20
)
@ExcelProperty
(
value
=
"员工姓名"
)
private
String
empName
;
...
...
@@ -58,7 +59,7 @@ public class EmployeeProjectVO implements Serializable {
* 身份证号码
*/
@NotNull
(
message
=
"身份证号不能为空"
)
@
Size
(
max
=
20
,
message
=
"身份证号不可超过20位"
)
@
ExcelAttribute
(
name
=
"身份证号"
,
isNotEmpty
=
true
,
errorInfo
=
"身份证号不能为空"
,
maxLength
=
20
)
@ExcelProperty
(
value
=
"身份证号"
)
private
String
empIdcard
;
...
...
@@ -85,6 +86,7 @@ public class EmployeeProjectVO implements Serializable {
*/
@NotNull
(
message
=
"项目编码不能为空"
)
@ExcelProperty
(
value
=
"项目编码"
)
@ExcelAttribute
(
name
=
"项目编码"
,
isNotEmpty
=
true
,
errorInfo
=
"项目编码不能为空"
,
maxLength
=
20
)
private
String
deptNo
;
/**
...
...
@@ -103,6 +105,7 @@ public class EmployeeProjectVO implements Serializable {
* 就职岗位
*/
@ExcelProperty
(
value
=
"就职岗位"
)
@ExcelAttribute
(
name
=
"就职岗位"
,
isNotEmpty
=
true
,
errorInfo
=
"就职岗位不能为空"
,
maxLength
=
20
)
private
String
post
;
/**
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/controller/FddContractAttachInfoController.java
0 → 100644
View file @
dedc4978
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
controller
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.FddContractAttachInfo
;
import
com.yifu.cloud.plus.v1.yifu.archives.service.FddContractAttachInfoService
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
io.swagger.v3.oas.annotations.Operation
;
import
io.swagger.v3.oas.annotations.security.SecurityRequirement
;
import
io.swagger.v3.oas.annotations.tags.Tag
;
import
lombok.RequiredArgsConstructor
;
import
org.springframework.http.HttpHeaders
;
import
org.springframework.web.bind.annotation.*
;
/**
* 法大大合同附属信息表
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
@RestController
@RequiredArgsConstructor
@RequestMapping
(
"/fddcontractattachinfo"
)
@Tag
(
name
=
"法大大合同附属信息表管理"
)
@SecurityRequirement
(
name
=
HttpHeaders
.
AUTHORIZATION
)
public
class
FddContractAttachInfoController
{
private
final
FddContractAttachInfoService
fddContractAttachInfoService
;
/**
* 分页查询
* @param page 分页对象
* @param fddContractAttachInfo 法大大合同附属信息表
* @return
*/
@Operation
(
summary
=
"分页查询"
,
description
=
"分页查询"
)
@GetMapping
(
"/page"
)
@PreAuthorize
(
"@pms.hasPermission('demo_fddcontractattachinfo_get')"
)
public
R
getFddContractAttachInfoPage
(
Page
page
,
FddContractAttachInfo
fddContractAttachInfo
)
{
return
R
.
ok
(
fddContractAttachInfoService
.
getFddContractAttachInfoPage
(
page
,
fddContractAttachInfo
));
}
/**
* 通过id查询法大大合同附属信息表
* @param id id
* @return R
*/
@Operation
(
summary
=
"通过id查询"
,
description
=
"通过id查询:hasPermission('demo_fddcontractattachinfo_get')"
)
@GetMapping
(
"/{id}"
)
@PreAuthorize
(
"@pms.hasPermission('demo_fddcontractattachinfo_get')"
)
public
R
getById
(
@PathVariable
(
"id"
)
String
id
)
{
return
R
.
ok
(
fddContractAttachInfoService
.
getById
(
id
));
}
/**
* 新增法大大合同附属信息表
* @param fddContractAttachInfo 法大大合同附属信息表
* @return R
*/
@Operation
(
summary
=
"新增法大大合同附属信息表"
,
description
=
"新增法大大合同附属信息表:hasPermission('demo_fddcontractattachinfo_add')"
)
@SysLog
(
"新增法大大合同附属信息表"
)
@PostMapping
@PreAuthorize
(
"@pms.hasPermission('demo_fddcontractattachinfo_add')"
)
public
R
save
(
@RequestBody
FddContractAttachInfo
fddContractAttachInfo
)
{
return
R
.
ok
(
fddContractAttachInfoService
.
save
(
fddContractAttachInfo
));
}
/**
* 修改法大大合同附属信息表
* @param fddContractAttachInfo 法大大合同附属信息表
* @return R
*/
@Operation
(
summary
=
"修改法大大合同附属信息表"
,
description
=
"修改法大大合同附属信息表:hasPermission('demo_fddcontractattachinfo_edit')"
)
@SysLog
(
"修改法大大合同附属信息表"
)
@PutMapping
@PreAuthorize
(
"@pms.hasPermission('demo_fddcontractattachinfo_edit')"
)
public
R
updateById
(
@RequestBody
FddContractAttachInfo
fddContractAttachInfo
)
{
return
R
.
ok
(
fddContractAttachInfoService
.
updateById
(
fddContractAttachInfo
));
}
/**
* 通过id删除法大大合同附属信息表
* @param id id
* @return R
*/
@Operation
(
summary
=
"通过id删除法大大合同附属信息表"
,
description
=
"通过id删除法大大合同附属信息表:hasPermission('demo_fddcontractattachinfo_del')"
)
@SysLog
(
"通过id删除法大大合同附属信息表"
)
@DeleteMapping
(
"/{id}"
)
@PreAuthorize
(
"@pms.hasPermission('demo_fddcontractattachinfo_del')"
)
public
R
removeById
(
@PathVariable
String
id
)
{
return
R
.
ok
(
fddContractAttachInfoService
.
removeById
(
id
));
}
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/controller/FddContractInfoController.java
0 → 100644
View file @
dedc4978
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
controller
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.FddContractInfo
;
import
com.yifu.cloud.plus.v1.yifu.archives.service.FddContractInfoService
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
io.swagger.v3.oas.annotations.Operation
;
import
io.swagger.v3.oas.annotations.security.SecurityRequirement
;
import
io.swagger.v3.oas.annotations.tags.Tag
;
import
lombok.RequiredArgsConstructor
;
import
org.springframework.http.HttpHeaders
;
import
org.springframework.web.bind.annotation.*
;
/**
* 法大大合同与员工合同信息
*
* @author fxj
* @date 2022-06-29 16:21:51
*/
@RestController
@RequiredArgsConstructor
@RequestMapping
(
"/fddcontractinfo"
)
@Tag
(
name
=
"法大大合同与员工合同信息管理"
)
@SecurityRequirement
(
name
=
HttpHeaders
.
AUTHORIZATION
)
public
class
FddContractInfoController
{
private
final
FddContractInfoService
fddContractInfoService
;
/**
* 分页查询
* @param page 分页对象
* @param fddContractInfo 法大大合同与员工合同信息
* @return
*/
@Operation
(
summary
=
"分页查询"
,
description
=
"分页查询"
)
@GetMapping
(
"/page"
)
@PreAuthorize
(
"@pms.hasPermission('demo_fddcontractinfo_get')"
)
public
R
getFddContractInfoPage
(
Page
page
,
FddContractInfo
fddContractInfo
)
{
return
R
.
ok
(
fddContractInfoService
.
page
(
page
,
Wrappers
.
query
(
fddContractInfo
)));
}
/**
* 通过id查询法大大合同与员工合同信息
* @param id id
* @return R
*/
@Operation
(
summary
=
"通过id查询"
,
description
=
"通过id查询:hasPermission('demo_fddcontractinfo_get')"
)
@GetMapping
(
"/{id}"
)
@PreAuthorize
(
"@pms.hasPermission('demo_fddcontractinfo_get')"
)
public
R
getById
(
@PathVariable
(
"id"
)
String
id
)
{
return
R
.
ok
(
fddContractInfoService
.
getById
(
id
));
}
/**
* 新增法大大合同与员工合同信息
* @param fddContractInfo 法大大合同与员工合同信息
* @return R
*/
@Operation
(
summary
=
"新增法大大合同与员工合同信息"
,
description
=
"新增法大大合同与员工合同信息:hasPermission('demo_fddcontractinfo_add')"
)
@SysLog
(
"新增法大大合同与员工合同信息"
)
@PostMapping
@PreAuthorize
(
"@pms.hasPermission('demo_fddcontractinfo_add')"
)
public
R
save
(
@RequestBody
FddContractInfo
fddContractInfo
)
{
return
R
.
ok
(
fddContractInfoService
.
save
(
fddContractInfo
));
}
/**
* 修改法大大合同与员工合同信息
* @param fddContractInfo 法大大合同与员工合同信息
* @return R
*/
@Operation
(
summary
=
"修改法大大合同与员工合同信息"
,
description
=
"修改法大大合同与员工合同信息:hasPermission('demo_fddcontractinfo_edit')"
)
@SysLog
(
"修改法大大合同与员工合同信息"
)
@PutMapping
@PreAuthorize
(
"@pms.hasPermission('demo_fddcontractinfo_edit')"
)
public
R
updateById
(
@RequestBody
FddContractInfo
fddContractInfo
)
{
return
R
.
ok
(
fddContractInfoService
.
updateById
(
fddContractInfo
));
}
/**
* 通过id删除法大大合同与员工合同信息
* @param id id
* @return R
*/
@Operation
(
summary
=
"通过id删除法大大合同与员工合同信息"
,
description
=
"通过id删除法大大合同与员工合同信息:hasPermission('demo_fddcontractinfo_del')"
)
@SysLog
(
"通过id删除法大大合同与员工合同信息"
)
@DeleteMapping
(
"/{id}"
)
@PreAuthorize
(
"@pms.hasPermission('demo_fddcontractinfo_del')"
)
public
R
removeById
(
@PathVariable
String
id
)
{
return
R
.
ok
(
fddContractInfoService
.
removeById
(
id
));
}
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/controller/FddContractTemplateController.java
0 → 100644
View file @
dedc4978
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
controller
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.fadada.api.exception.ApiException
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.FddContractTemplate
;
import
com.yifu.cloud.plus.v1.yifu.archives.service.FddContractTemplateService
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
io.swagger.v3.oas.annotations.Operation
;
import
io.swagger.v3.oas.annotations.security.SecurityRequirement
;
import
io.swagger.v3.oas.annotations.tags.Tag
;
import
lombok.RequiredArgsConstructor
;
import
org.springframework.http.HttpHeaders
;
import
org.springframework.web.bind.annotation.*
;
/**
* 法大大员工合同模板
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
@RestController
@RequiredArgsConstructor
@RequestMapping
(
"/fddcontracttemplate"
)
@Tag
(
name
=
"法大大员工合同模板管理"
)
@SecurityRequirement
(
name
=
HttpHeaders
.
AUTHORIZATION
)
public
class
FddContractTemplateController
{
private
final
FddContractTemplateService
fddContractTemplateService
;
/**
* 分页查询
* @param page 分页对象
* @param fddContractTemplate 法大大员工合同模板
* @return
*/
@Operation
(
summary
=
"分页查询"
,
description
=
"分页查询"
)
@GetMapping
(
"/page"
)
@PreAuthorize
(
"@pms.hasPermission('demo_fddcontracttemplate_get')"
)
public
R
getFddContractTemplatePage
(
Page
page
,
FddContractTemplate
fddContractTemplate
)
throws
ApiException
{
return
R
.
ok
(
fddContractTemplateService
.
getFddContractTemplatePage
(
page
,
fddContractTemplate
));
}
/**
* 通过id查询法大大员工合同模板
* @param id id
* @return R
*/
@Operation
(
summary
=
"通过id查询"
,
description
=
"通过id查询:hasPermission('demo_fddcontracttemplate_get')"
)
@GetMapping
(
"/{id}"
)
@PreAuthorize
(
"@pms.hasPermission('demo_fddcontracttemplate_get')"
)
public
R
getById
(
@PathVariable
(
"id"
)
String
id
)
{
return
R
.
ok
(
fddContractTemplateService
.
getById
(
id
));
}
/**
* 新增法大大员工合同模板
* @param fddContractTemplate 法大大员工合同模板
* @return R
*/
@Operation
(
summary
=
"新增法大大员工合同模板"
,
description
=
"新增法大大员工合同模板:hasPermission('demo_fddcontracttemplate_add')"
)
@SysLog
(
"新增法大大员工合同模板"
)
@PostMapping
@PreAuthorize
(
"@pms.hasPermission('demo_fddcontracttemplate_add')"
)
public
R
save
(
@RequestBody
FddContractTemplate
fddContractTemplate
)
{
return
R
.
ok
(
fddContractTemplateService
.
save
(
fddContractTemplate
));
}
/**
* 修改法大大员工合同模板
* @param fddContractTemplate 法大大员工合同模板
* @return R
*/
@Operation
(
summary
=
"修改法大大员工合同模板"
,
description
=
"修改法大大员工合同模板:hasPermission('demo_fddcontracttemplate_edit')"
)
@SysLog
(
"修改法大大员工合同模板"
)
@PutMapping
@PreAuthorize
(
"@pms.hasPermission('demo_fddcontracttemplate_edit')"
)
public
R
updateById
(
@RequestBody
FddContractTemplate
fddContractTemplate
)
{
return
R
.
ok
(
fddContractTemplateService
.
updateById
(
fddContractTemplate
));
}
/**
* 通过id删除法大大员工合同模板
* @param id id
* @return R
*/
@Operation
(
summary
=
"通过id删除法大大员工合同模板"
,
description
=
"通过id删除法大大员工合同模板:hasPermission('demo_fddcontracttemplate_del')"
)
@SysLog
(
"通过id删除法大大员工合同模板"
)
@DeleteMapping
(
"/{id}"
)
@PreAuthorize
(
"@pms.hasPermission('demo_fddcontracttemplate_del')"
)
public
R
removeById
(
@PathVariable
String
id
)
{
return
R
.
ok
(
fddContractTemplateService
.
removeById
(
id
));
}
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/controller/FddContractTemplateFileController.java
0 → 100644
View file @
dedc4978
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
controller
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.FddContractTemplateFile
;
import
com.yifu.cloud.plus.v1.yifu.archives.service.FddContractTemplateFileService
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
io.swagger.v3.oas.annotations.Operation
;
import
io.swagger.v3.oas.annotations.security.SecurityRequirement
;
import
io.swagger.v3.oas.annotations.tags.Tag
;
import
lombok.RequiredArgsConstructor
;
import
org.springframework.http.HttpHeaders
;
import
org.springframework.web.bind.annotation.*
;
/**
* 法大大员工合同模板文件表
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
@RestController
@RequiredArgsConstructor
@RequestMapping
(
"/fddcontracttemplatefile"
)
@Tag
(
name
=
"法大大员工合同模板文件表管理"
)
@SecurityRequirement
(
name
=
HttpHeaders
.
AUTHORIZATION
)
public
class
FddContractTemplateFileController
{
private
final
FddContractTemplateFileService
fddContractTemplateFileService
;
/**
* 分页查询
* @param page 分页对象
* @param fddContractTemplateFile 法大大员工合同模板文件表
* @return
*/
@Operation
(
summary
=
"分页查询"
,
description
=
"分页查询"
)
@GetMapping
(
"/page"
)
@PreAuthorize
(
"@pms.hasPermission('demo_fddcontracttemplatefile_get')"
)
public
R
getFddContractTemplateFilePage
(
Page
page
,
FddContractTemplateFile
fddContractTemplateFile
)
{
return
R
.
ok
(
fddContractTemplateFileService
.
page
(
page
,
Wrappers
.
query
(
fddContractTemplateFile
)));
}
/**
* 通过id查询法大大员工合同模板文件表
* @param id id
* @return R
*/
@Operation
(
summary
=
"通过id查询"
,
description
=
"通过id查询:hasPermission('demo_fddcontracttemplatefile_get')"
)
@GetMapping
(
"/{id}"
)
@PreAuthorize
(
"@pms.hasPermission('demo_fddcontracttemplatefile_get')"
)
public
R
getById
(
@PathVariable
(
"id"
)
String
id
)
{
return
R
.
ok
(
fddContractTemplateFileService
.
getById
(
id
));
}
/**
* 新增法大大员工合同模板文件表
* @param fddContractTemplateFile 法大大员工合同模板文件表
* @return R
*/
@Operation
(
summary
=
"新增法大大员工合同模板文件表"
,
description
=
"新增法大大员工合同模板文件表:hasPermission('demo_fddcontracttemplatefile_add')"
)
@SysLog
(
"新增法大大员工合同模板文件表"
)
@PostMapping
@PreAuthorize
(
"@pms.hasPermission('demo_fddcontracttemplatefile_add')"
)
public
R
save
(
@RequestBody
FddContractTemplateFile
fddContractTemplateFile
)
{
return
R
.
ok
(
fddContractTemplateFileService
.
save
(
fddContractTemplateFile
));
}
/**
* 修改法大大员工合同模板文件表
* @param fddContractTemplateFile 法大大员工合同模板文件表
* @return R
*/
@Operation
(
summary
=
"修改法大大员工合同模板文件表"
,
description
=
"修改法大大员工合同模板文件表:hasPermission('demo_fddcontracttemplatefile_edit')"
)
@SysLog
(
"修改法大大员工合同模板文件表"
)
@PutMapping
@PreAuthorize
(
"@pms.hasPermission('demo_fddcontracttemplatefile_edit')"
)
public
R
updateById
(
@RequestBody
FddContractTemplateFile
fddContractTemplateFile
)
{
return
R
.
ok
(
fddContractTemplateFileService
.
updateById
(
fddContractTemplateFile
));
}
/**
* 通过id删除法大大员工合同模板文件表
* @param id id
* @return R
*/
@Operation
(
summary
=
"通过id删除法大大员工合同模板文件表"
,
description
=
"通过id删除法大大员工合同模板文件表:hasPermission('demo_fddcontracttemplatefile_del')"
)
@SysLog
(
"通过id删除法大大员工合同模板文件表"
)
@DeleteMapping
(
"/{id}"
)
@PreAuthorize
(
"@pms.hasPermission('demo_fddcontracttemplatefile_del')"
)
public
R
removeById
(
@PathVariable
String
id
)
{
return
R
.
ok
(
fddContractTemplateFileService
.
removeById
(
id
));
}
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/controller/FddController.java
0 → 100644
View file @
dedc4978
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
controller
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.fadada.api.constants.GlobalConstants
;
import
com.fadada.api.utils.crypt.FddCryptUtil
;
import
com.yifu.cloud.plus.v1.yifu.archives.config.FddConfigProperties
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.*
;
import
com.yifu.cloud.plus.v1.yifu.archives.service.*
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.exception.CheckedException
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.Common
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
io.swagger.v3.oas.annotations.Operation
;
import
io.swagger.v3.oas.annotations.tags.Tag
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.context.properties.EnableConfigurationProperties
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
java.time.LocalDateTime
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.concurrent.ExecutorService
;
import
java.util.concurrent.Executors
;
/**
* @auther huyc
* @date 2022/6/29
*/
@RestController
@RequestMapping
(
"/fdd"
)
@Tag
(
name
=
"法大大接口"
)
@Slf4j
@EnableConfigurationProperties
(
FddConfigProperties
.
class
)
public
class
FddController
{
private
static
String
FDD_EVENT
=
"X-FDD-Api-Event"
;
private
static
String
FDD_BIZ_CONTENT
=
"bizContent"
;
@Autowired
private
FddConfigProperties
fddConfigProperties
;
@Autowired
private
FddReqLogService
reqLogService
;
@Autowired
private
FddPersonAccountService
fddPersonAccountService
;
@Autowired
private
FddContractInfoService
fddContractInfoService
;
@Autowired
private
FddCompanyInfoService
fddCompanyInfoService
;
@Autowired
private
FddContractAttachInfoService
fddContractAttachInfoService
;
// @Autowired
// private TEmployeeContractInfoService employeeContractInfoService;
ExecutorService
executorService
=
Executors
.
newFixedThreadPool
(
10
);
/**
* @param request
* @Author: huyc
* @Date: 2022/6/29
* @Description: 个人实名重定向地址
* @return: void https://developer-ae.fadada.com/main/apiExplorer?unionId=b8f78299877046428b9a6b3cfc111d11&clientId=151555313861&resultMsg=%E5%AE%A1%E6%A0%B8%E9%80%9A%E8%BF%87&result=0
* http://192k6337f9.zicp.vip/hrBase/fdd/personRedirectUrl?unionId=c64bbd972c8d48e4846b9230f951cab8&clientId=1351443621139800065&result=0&resultMsg=%25E6%2588%2590%25E5%258A%259F
**/
@Operation
(
summary
=
"个人实名重定向地址"
,
description
=
"个人实名重定向地址"
)
@RequestMapping
(
value
=
"/personRedirectUrl"
)
public
R
<
String
>
personRedirectUrl
(
HttpServletRequest
request
)
{
saveReqLog
(
request
);
String
clientId
=
request
.
getParameter
(
"clientId"
);
String
unionId
=
request
.
getParameter
(
"unionId"
);
//查询clientId
if
(
StringUtils
.
isNotEmpty
(
clientId
)
&&
StringUtils
.
isNotEmpty
(
unionId
))
{
FddPersonAccount
fddPersonAccount
=
fddPersonAccountService
.
getById
(
clientId
);
if
(
fddPersonAccount
!=
null
)
{
fddPersonAccount
.
setUnionid
(
unionId
);
fddPersonAccount
.
setRealStatus
(
CommonConstants
.
ONE_STRING
);
fddPersonAccountService
.
updateById
(
fddPersonAccount
);
}
}
return
R
.
ok
();
}
/**
* 保存请求参数日志
*
* @param request
*/
private
void
saveReqLog
(
HttpServletRequest
request
)
{
Map
<
String
,
String
[]>
parameterMap
=
request
.
getParameterMap
();
FddReqLog
fddReqLog
=
new
FddReqLog
();
fddReqLog
.
setResData
(
JSON
.
toJSONString
(
parameterMap
));
fddReqLog
.
setMethodName
(
Thread
.
currentThread
().
getStackTrace
()[
1
].
getMethodName
());
fddReqLog
.
setClassName
(
Thread
.
currentThread
().
getStackTrace
()[
1
].
getClassName
());
reqLogService
.
save
(
fddReqLog
);
}
/**
* @param request
* @Author: huyc
* @Date: 2022/6/29
* @Description: 邀请员工重定向地址重定向地址
* http://192k6337f9.zicp.vip/hrBase/fdd/addEmployeeRedirectUrl?company=a2bd6e2595214824861cad25598d119e&employeeUnionId=f6ac9e9edabe4957bcc2f50611224af6
**/
@Operation
(
summary
=
"邀请员工重定向地址"
,
description
=
"邀请员工重定向地址"
)
@RequestMapping
(
value
=
"/addEmployeeRedirectUrl"
)
public
R
<
String
>
addEmployeeRedirectUrl
(
HttpServletRequest
request
)
{
saveReqLog
(
request
);
String
company
=
request
.
getParameter
(
"company"
);
String
employeeUnionId
=
request
.
getParameter
(
"employeeUnionId"
);
//查询clientId
if
(
StringUtils
.
isNotEmpty
(
company
)
&&
StringUtils
.
isNotEmpty
(
employeeUnionId
))
{
FddPersonAccount
fddPersonAccount
=
fddPersonAccountService
.
getOne
(
Wrappers
.<
FddPersonAccount
>
query
().
lambda
()
.
eq
(
FddPersonAccount:
:
getUnionid
,
employeeUnionId
).
eq
(
FddPersonAccount:
:
getSystemFlag
,
CommonConstants
.
ZERO_STRING
));
if
(
fddPersonAccount
!=
null
)
{
FddCompanyInfo
companyInfo
=
fddCompanyInfoService
.
getOne
(
Wrappers
.<
FddCompanyInfo
>
query
().
lambda
().
eq
(
FddCompanyInfo:
:
getCompanyUnionId
,
company
));
if
(
companyInfo
!=
null
)
{
if
(!
Common
.
isEmpty
(
fddPersonAccount
.
getCompanyInfoId
()))
{
fddPersonAccount
.
setCompanyInfoId
(
fddPersonAccount
.
getCompanyInfoId
().
concat
(
","
).
concat
(
companyInfo
.
getId
()));
}
else
{
fddPersonAccount
.
setCompanyInfoId
(
companyInfo
.
getId
());
}
fddPersonAccountService
.
updateById
(
fddPersonAccount
);
return
R
.
ok
();
}
}
}
return
R
.
failed
(
"回调失败"
);
}
/**
* @param request
* @param response
* @Author: huyc
* @Date: 2022/6/29
* @Description: 异步通知
* @return: void
**/
@Operation
(
summary
=
"异步通知"
,
description
=
"异步通知"
)
@RequestMapping
(
value
=
"/notifyUrl"
)
public
R
<
String
>
notifyUrl
(
HttpServletRequest
request
,
HttpServletResponse
response
)
throws
Exception
{
checkSign
(
request
);
String
fddEvent
=
request
.
getHeader
(
FDD_EVENT
);
String
fddBizContent
=
request
.
getParameter
(
FDD_BIZ_CONTENT
);
//判断类型
if
(
StringUtils
.
equals
(
fddEvent
,
"verify"
))
{
//实名认证
JSONObject
jsonObject
=
JSON
.
parseObject
(
fddBizContent
);
String
clientId
=
jsonObject
.
getString
(
"clientId"
);
String
unionId
=
jsonObject
.
getString
(
"unionId"
);
if
(
StringUtils
.
equals
(
CommonConstants
.
TWO_STRING
,
jsonObject
.
getString
(
"status"
)))
{
//成功
FddPersonAccount
entity
=
fddPersonAccountService
.
getById
(
clientId
);
if
(
entity
!=
null
)
{
entity
.
setRealStatus
(
CommonConstants
.
ONE_STRING
);
entity
.
setUnionid
(
unionId
);
fddPersonAccountService
.
updateById
(
entity
);
if
(
StringUtils
.
equals
(
entity
.
getSystemFlag
(),
CommonConstants
.
ONE_STRING
))
{
//实名认证成功发送电子合同
executorService
.
submit
(()
->
{
try
{
// //先查询下有没有没发送这个员工没发送的电子合同。如果有则发送
// List<FddContractAttachInfo> attachInfos = fddContractAttachInfoService.getListByNoInfoByEmpIdcard(entity.getIdCard());
// //自动创建定稿任务.查看是否有未定稿的数据。有的话自动发送
// if (attachInfos.size() == CommonConstants.ZERO_INT) {
// return;
// }
// FddContractAttachInfo fddContractAttachInfo = attachInfos.get(CommonConstants.ZERO_INT);
// TEmployeeContractInfo employeeContractInfo = employeeContractInfoService.getById(fddContractAttachInfo.getContractId());
// TEmployeeInfo employeeInfo = employeeInfoService.getById(employeeContractInfo.getEmpId());
//获取合同创建人
// String createUserId = fddContractAttachInfo.getCreateUserId();
// FeginExtendUser feginExtendUser = new FeginExtendUser();
// R<List<SysUser>> remoteUserServiceSimpleUser = remoteUserService.getAllUserInfoByUserIds(createUserId, SecurityConstants.FROM_IN);
// SysUser sysUser = remoteUserServiceSimpleUser.getData().get(CommonConstants.ZERO_INT);
// feginExtendUser.setPhone(sysUser.getPhone());
// feginExtendUser.setNickName(sysUser.getNickname());
// R<String> returnR = fddContractInfoService.saveEmpContract(fddContractAttachInfo, feginExtendUser);
// if (returnR != null) {
// //记录返回信息
// if(returnR.getCode()== CommonConstants.SUCCESS){
// fddContractAttachInfo.setRemark("成功");
// }else {
// fddContractAttachInfo.setRemark(returnR.getMsg());
// }
// }
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
});
}
return
R
.
ok
();
}
}
}
else
if
(
StringUtils
.
equals
(
fddEvent
,
"reviseTask"
))
{
//定稿任务
JSONObject
jsonObject
=
JSON
.
parseObject
(
fddBizContent
);
String
taskId
=
jsonObject
.
getString
(
"taskId"
);
String
draftId
=
jsonObject
.
getString
(
"draftId"
);
if
(
StringUtils
.
equals
(
CommonConstants
.
ZERO_STRING
,
jsonObject
.
getString
(
"result"
)))
{
//成功
FddContractInfo
fddContractInfo
=
fddContractInfoService
.
getOne
(
Wrappers
.<
FddContractInfo
>
query
().
lambda
().
eq
(
FddContractInfo:
:
getTaskId
,
taskId
));
if
(
fddContractInfo
!=
null
&&
StringUtils
.
isEmpty
(
fddContractInfo
.
getDraftId
()))
{
fddContractInfo
.
setDraftId
(
draftId
);
fddContractInfo
.
setTaskStatus
(
CommonConstants
.
TWO_STRING
);
fddContractInfoService
.
updateById
(
fddContractInfo
);
executorService
.
submit
(()
->
{
try
{
//自动创建定稿任务
// R<String> returnR = fddContractInfoService.createTaskByDraftId(fddContractInfo);
// if(returnR!=null){
// //记录返回信息
// if(returnR.getCode()==CommonConstants.SUCCESS){
// fddContractInfo.setRemark("成功");
// }else {
// fddContractInfo.setRemark(returnR.getMsg());
// }
// fddContractInfoService.updateById(fddContractInfo);
// }
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
});
return
R
.
ok
();
}
}
}
else
if
(
StringUtils
.
equals
(
fddEvent
,
"sign"
))
{
/**
* 定稿任务{"X-FDD-Api-Nonce":"d4f7806145f3435eb67d4b80b5ab8e99","bizContent":"{\"authorizedUnionId\":\"a2bd6e2595214824861cad25598d119e\",\"completeTime\":\"2021-01-27 14:22:23\",\"corpId\":\"a2bd6e2595214824861cad25598d119e\",\"signStatus\":2,\"signerId\":\"f6ac9e9edabe4957bcc2f50611224af6\",\"taskId\":\"b1c7f8f31fd945689bd1e1987257e6ac\",\"taskStatus\":2,\"unionId\":\"f6ac9e9edabe4957bcc2f50611224af6\"}","X-FDD-Api-App-Id":"FA38847543","X-FDD-Api-Timestamp":"2021-01-27 14:31:24.370","X-FDD-Api-Sign-Type":"HMAC-SHA256","X-FDD-Api-Event":"sign"}
*/
JSONObject
jsonObject
=
JSON
.
parseObject
(
fddBizContent
);
String
taskId
=
jsonObject
.
getString
(
"taskId"
);
String
taskStatus
=
jsonObject
.
getString
(
"taskStatus"
);
String
signStatus
=
jsonObject
.
getString
(
"signStatus"
);
String
signerId
=
jsonObject
.
getString
(
"signerId"
);
//成功
FddContractInfo
fddContractInfo
=
fddContractInfoService
.
getOne
(
Wrappers
.<
FddContractInfo
>
query
().
lambda
().
eq
(
FddContractInfo:
:
getSignTaskId
,
taskId
));
if
(
fddContractInfo
==
null
)
{
return
R
.
failed
(
"未获取到签署任务合同"
);
}
//判断是发送方还是接受方
if
(
StringUtils
.
equals
(
signerId
,
fddContractInfo
.
getReceiveUnionid
()))
{
//接受方
fddContractInfo
.
setReceiveSignStatus
(
signStatus
);
fddContractInfo
.
setSignStatus
(
taskStatus
);
}
if
(
StringUtils
.
equals
(
signerId
,
fddContractInfo
.
getSendUnionid
()))
{
//发送方
fddContractInfo
.
setSendSignStatus
(
signStatus
);
fddContractInfo
.
setSignStatus
(
taskStatus
);
}
fddContractInfoService
.
updateById
(
fddContractInfo
);
// 2021-3-15 16:24 hgw 全部签名成功,更新合同的状态:
if
(
CommonConstants
.
TWO_STRING
.
equals
(
fddContractInfo
.
getSendSignStatus
())
&&
CommonConstants
.
TWO_STRING
.
equals
(
fddContractInfo
.
getReceiveSignStatus
()))
{
// fddContractAttachInfoService.saveEmpAndAttarch(fddContractInfo);
// TEmployeeContractInfo ec = employeeContractInfoService.getById(fddContractInfo.getContractId());
// // 如果合同的状态是待电子签,则变更为已电子签
// if (ec != null && ec.getIsSign() != null && ec.getIsSign() == CommonConstants.ONE_INT) {
// ec.setIsSign(CommonConstants.ZERO_INT);
// employeeContractInfoService.updateById(ec);
// }
}
return
R
.
ok
();
}
else
if
(
StringUtils
.
equals
(
fddEvent
,
"notifyUrlVerify"
))
{
return
R
.
ok
();
}
return
R
.
failed
(
"失败"
);
}
//验证签名
public
void
checkSign
(
HttpServletRequest
request
)
throws
Exception
{
Map
<
String
,
String
>
paraMap
=
new
HashMap
<>(
8
);
paraMap
.
put
(
GlobalConstants
.
FDD_APPID
,
request
.
getHeader
(
GlobalConstants
.
FDD_APPID
));
paraMap
.
put
(
GlobalConstants
.
FDD_SIGN_TYPE
,
request
.
getHeader
(
GlobalConstants
.
FDD_SIGN_TYPE
));
paraMap
.
put
(
GlobalConstants
.
FDD_TIMESTAMP
,
request
.
getHeader
(
GlobalConstants
.
FDD_TIMESTAMP
));
paraMap
.
put
(
GlobalConstants
.
FDD_NONCE
,
request
.
getHeader
(
GlobalConstants
.
FDD_NONCE
));
paraMap
.
put
(
FDD_EVENT
,
request
.
getHeader
(
FDD_EVENT
));
String
fddBizContent
=
request
.
getParameter
(
FDD_BIZ_CONTENT
);
paraMap
.
put
(
FDD_BIZ_CONTENT
,
fddBizContent
);
//得到排序后的字符串,FddCryptUtil为法大大提供得签名工具类
String
sortParam
=
FddCryptUtil
.
sortParameters
(
paraMap
);
//计算之后得到签名 该签名需要放到请求头
String
signature
=
FddCryptUtil
.
sign
(
sortParam
,
request
.
getHeader
(
GlobalConstants
.
FDD_TIMESTAMP
),
fddConfigProperties
.
getAppKey
());
if
(
StringUtils
.
equals
(
signature
,
request
.
getHeader
(
GlobalConstants
.
FDD_API_SIGN
)))
{
FddReqLog
fddReqLog
=
new
FddReqLog
();
paraMap
.
put
(
GlobalConstants
.
FDD_TIMESTAMP
,
request
.
getHeader
(
GlobalConstants
.
FDD_TIMESTAMP
));
fddReqLog
.
setReqData
(
signature
);
fddReqLog
.
setResData
(
JSON
.
toJSONString
(
paraMap
));
fddReqLog
.
setMethodName
(
Thread
.
currentThread
().
getStackTrace
()[
1
].
getMethodName
());
fddReqLog
.
setClassName
(
Thread
.
currentThread
().
getStackTrace
()[
1
].
getClassName
());
reqLogService
.
save
(
fddReqLog
);
return
;
}
throw
new
CheckedException
(
"签名异常"
);
}
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/controller/FddGlobalFieldInfoController.java
0 → 100644
View file @
dedc4978
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
controller
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.FddGlobalFieldInfo
;
import
com.yifu.cloud.plus.v1.yifu.archives.service.FddGlobalFieldInfoService
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
io.swagger.v3.oas.annotations.Operation
;
import
io.swagger.v3.oas.annotations.security.SecurityRequirement
;
import
io.swagger.v3.oas.annotations.tags.Tag
;
import
lombok.RequiredArgsConstructor
;
import
org.springframework.http.HttpHeaders
;
import
org.springframework.web.bind.annotation.*
;
/**
* 法大大模板字段信息表
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
@RestController
@RequiredArgsConstructor
@RequestMapping
(
"/fddglobalfieldinfo"
)
@Tag
(
name
=
"法大大模板字段信息表管理"
)
@SecurityRequirement
(
name
=
HttpHeaders
.
AUTHORIZATION
)
public
class
FddGlobalFieldInfoController
{
private
final
FddGlobalFieldInfoService
fddGlobalFieldInfoService
;
/**
* 分页查询
* @param page 分页对象
* @param fddGlobalFieldInfo 法大大模板字段信息表
* @return
*/
@Operation
(
summary
=
"分页查询"
,
description
=
"分页查询"
)
@GetMapping
(
"/page"
)
@PreAuthorize
(
"@pms.hasPermission('demo_fddglobalfieldinfo_get')"
)
public
R
getFddGlobalFieldInfoPage
(
Page
page
,
FddGlobalFieldInfo
fddGlobalFieldInfo
)
{
return
R
.
ok
(
fddGlobalFieldInfoService
.
page
(
page
,
Wrappers
.
query
(
fddGlobalFieldInfo
)));
}
/**
* 通过id查询法大大模板字段信息表
* @param id id
* @return R
*/
@Operation
(
summary
=
"通过id查询"
,
description
=
"通过id查询:hasPermission('demo_fddglobalfieldinfo_get')"
)
@GetMapping
(
"/{id}"
)
@PreAuthorize
(
"@pms.hasPermission('demo_fddglobalfieldinfo_get')"
)
public
R
getById
(
@PathVariable
(
"id"
)
String
id
)
{
return
R
.
ok
(
fddGlobalFieldInfoService
.
getById
(
id
));
}
/**
* 新增法大大模板字段信息表
* @param fddGlobalFieldInfo 法大大模板字段信息表
* @return R
*/
@Operation
(
summary
=
"新增法大大模板字段信息表"
,
description
=
"新增法大大模板字段信息表:hasPermission('demo_fddglobalfieldinfo_add')"
)
@SysLog
(
"新增法大大模板字段信息表"
)
@PostMapping
@PreAuthorize
(
"@pms.hasPermission('demo_fddglobalfieldinfo_add')"
)
public
R
save
(
@RequestBody
FddGlobalFieldInfo
fddGlobalFieldInfo
)
{
return
R
.
ok
(
fddGlobalFieldInfoService
.
save
(
fddGlobalFieldInfo
));
}
/**
* 修改法大大模板字段信息表
* @param fddGlobalFieldInfo 法大大模板字段信息表
* @return R
*/
@Operation
(
summary
=
"修改法大大模板字段信息表"
,
description
=
"修改法大大模板字段信息表:hasPermission('demo_fddglobalfieldinfo_edit')"
)
@SysLog
(
"修改法大大模板字段信息表"
)
@PutMapping
@PreAuthorize
(
"@pms.hasPermission('demo_fddglobalfieldinfo_edit')"
)
public
R
updateById
(
@RequestBody
FddGlobalFieldInfo
fddGlobalFieldInfo
)
{
return
R
.
ok
(
fddGlobalFieldInfoService
.
updateById
(
fddGlobalFieldInfo
));
}
/**
* 通过id删除法大大模板字段信息表
* @param id id
* @return R
*/
@Operation
(
summary
=
"通过id删除法大大模板字段信息表"
,
description
=
"通过id删除法大大模板字段信息表:hasPermission('demo_fddglobalfieldinfo_del')"
)
@SysLog
(
"通过id删除法大大模板字段信息表"
)
@DeleteMapping
(
"/{id}"
)
@PreAuthorize
(
"@pms.hasPermission('demo_fddglobalfieldinfo_del')"
)
public
R
removeById
(
@PathVariable
String
id
)
{
return
R
.
ok
(
fddGlobalFieldInfoService
.
removeById
(
id
));
}
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/controller/FddPersonAccountController.java
View file @
dedc4978
...
...
@@ -70,7 +70,7 @@ public class FddPersonAccountController {
*/
@Operation
(
summary
=
"通过id查询"
,
description
=
"通过id查询"
)
@GetMapping
(
"/{id}"
)
public
R
getById
(
@PathVariable
(
"id"
)
String
id
)
{
public
R
getById
(
@PathVariable
(
"id"
)
String
id
)
{
return
R
.
ok
(
fddPersonAccountService
.
getById
(
id
));
}
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/controller/FddTemplateFieldInfoController.java
0 → 100644
View file @
dedc4978
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
controller
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.FddTemplateFieldInfo
;
import
com.yifu.cloud.plus.v1.yifu.archives.service.FddTemplateFieldInfoService
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
io.swagger.v3.oas.annotations.Operation
;
import
io.swagger.v3.oas.annotations.security.SecurityRequirement
;
import
io.swagger.v3.oas.annotations.tags.Tag
;
import
lombok.RequiredArgsConstructor
;
import
org.springframework.http.HttpHeaders
;
import
org.springframework.web.bind.annotation.*
;
/**
* 法大大字段对应信息表
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
@RestController
@RequiredArgsConstructor
@RequestMapping
(
"/fddtemplatefieldinfo"
)
@Tag
(
name
=
"法大大字段对应信息表管理"
)
@SecurityRequirement
(
name
=
HttpHeaders
.
AUTHORIZATION
)
public
class
FddTemplateFieldInfoController
{
private
final
FddTemplateFieldInfoService
fddTemplateFieldInfoService
;
/**
* 分页查询
* @param page 分页对象
* @param fddTemplateFieldInfo 法大大字段对应信息表
* @return
*/
@Operation
(
summary
=
"分页查询"
,
description
=
"分页查询"
)
@GetMapping
(
"/page"
)
@PreAuthorize
(
"@pms.hasPermission('demo_fddtemplatefieldinfo_get')"
)
public
R
getFddTemplateFieldInfoPage
(
Page
page
,
FddTemplateFieldInfo
fddTemplateFieldInfo
)
{
return
R
.
ok
(
fddTemplateFieldInfoService
.
page
(
page
,
Wrappers
.
query
(
fddTemplateFieldInfo
)));
}
/**
* 通过id查询法大大字段对应信息表
* @param id id
* @return R
*/
@Operation
(
summary
=
"通过id查询"
,
description
=
"通过id查询:hasPermission('demo_fddtemplatefieldinfo_get')"
)
@GetMapping
(
"/{id}"
)
@PreAuthorize
(
"@pms.hasPermission('demo_fddtemplatefieldinfo_get')"
)
public
R
getById
(
@PathVariable
(
"id"
)
String
id
)
{
return
R
.
ok
(
fddTemplateFieldInfoService
.
getById
(
id
));
}
/**
* 新增法大大字段对应信息表
* @param fddTemplateFieldInfo 法大大字段对应信息表
* @return R
*/
@Operation
(
summary
=
"新增法大大字段对应信息表"
,
description
=
"新增法大大字段对应信息表:hasPermission('demo_fddtemplatefieldinfo_add')"
)
@SysLog
(
"新增法大大字段对应信息表"
)
@PostMapping
@PreAuthorize
(
"@pms.hasPermission('demo_fddtemplatefieldinfo_add')"
)
public
R
save
(
@RequestBody
FddTemplateFieldInfo
fddTemplateFieldInfo
)
{
return
R
.
ok
(
fddTemplateFieldInfoService
.
save
(
fddTemplateFieldInfo
));
}
/**
* 修改法大大字段对应信息表
* @param fddTemplateFieldInfo 法大大字段对应信息表
* @return R
*/
@Operation
(
summary
=
"修改法大大字段对应信息表"
,
description
=
"修改法大大字段对应信息表:hasPermission('demo_fddtemplatefieldinfo_edit')"
)
@SysLog
(
"修改法大大字段对应信息表"
)
@PutMapping
@PreAuthorize
(
"@pms.hasPermission('demo_fddtemplatefieldinfo_edit')"
)
public
R
updateById
(
@RequestBody
FddTemplateFieldInfo
fddTemplateFieldInfo
)
{
return
R
.
ok
(
fddTemplateFieldInfoService
.
updateById
(
fddTemplateFieldInfo
));
}
/**
* 通过id删除法大大字段对应信息表
* @param id id
* @return R
*/
@Operation
(
summary
=
"通过id删除法大大字段对应信息表"
,
description
=
"通过id删除法大大字段对应信息表:hasPermission('demo_fddtemplatefieldinfo_del')"
)
@SysLog
(
"通过id删除法大大字段对应信息表"
)
@DeleteMapping
(
"/{id}"
)
@PreAuthorize
(
"@pms.hasPermission('demo_fddtemplatefieldinfo_del')"
)
public
R
removeById
(
@PathVariable
String
id
)
{
return
R
.
ok
(
fddTemplateFieldInfoService
.
removeById
(
id
));
}
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/controller/TEmpBadRecordController.java
0 → 100644
View file @
dedc4978
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
controller
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpBadRecord
;
import
com.yifu.cloud.plus.v1.yifu.archives.service.TEmpBadRecordService
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.EmpBadRecordSearchVo
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.Common
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.ErrorMessage
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog
;
import
io.swagger.v3.oas.annotations.Operation
;
import
io.swagger.v3.oas.annotations.security.SecurityRequirement
;
import
io.swagger.v3.oas.annotations.tags.Tag
;
import
lombok.RequiredArgsConstructor
;
import
lombok.SneakyThrows
;
import
org.springframework.http.HttpHeaders
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.multipart.MultipartFile
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.List
;
/**
* 员工不良记录
*
* @author fxj
* @date 2022-06-29 15:50:45
*/
@RestController
@RequiredArgsConstructor
@RequestMapping
(
"/tempbadrecord"
)
@Tag
(
name
=
"员工不良记录管理"
)
public
class
TEmpBadRecordController
{
private
final
TEmpBadRecordService
tEmpBadRecordService
;
/**
* 分页查询
* @param page 分页对象
* @param tEmpBadRecord 员工不良记录
* @return
*/
@Operation
(
summary
=
"分页查询"
,
description
=
"分页查询"
)
@GetMapping
(
"/page"
)
//@PreAuthorize("@pms.hasPermission('demo_tempbadrecord_get')" )
public
R
<
IPage
<
TEmpBadRecord
>>
getTEmpBadRecordPage
(
Page
page
,
EmpBadRecordSearchVo
tEmpBadRecord
)
{
return
R
.
ok
(
tEmpBadRecordService
.
pageDiy
(
page
,
tEmpBadRecord
));
}
/**
* 不分页查询
* @param tEmpBadRecord 员工不良记录
* @return
*/
@Operation
(
summary
=
"不分页查询"
,
description
=
"不分页查询"
)
@PostMapping
(
"/noPage"
)
//@PreAuthorize("@pms.hasPermission('demo_tempbadrecord_get')" )
public
R
<
List
<
TEmpBadRecord
>>
getTEmpBadRecordNoPage
(
@RequestBody
EmpBadRecordSearchVo
tEmpBadRecord
)
{
return
R
.
ok
(
tEmpBadRecordService
.
noPageDiy
(
tEmpBadRecord
));
}
/**
* 通过id查询员工不良记录
* @param id id
* @return R
*/
@Operation
(
summary
=
"通过id查询"
,
description
=
"通过id查询:hasPermission('demo_tempbadrecord_get')"
)
@GetMapping
(
"/{id}"
)
@PreAuthorize
(
"@pms.hasPermission('demo_tempbadrecord_get')"
)
public
R
<
TEmpBadRecord
>
getById
(
@PathVariable
(
"id"
)
String
id
)
{
return
R
.
ok
(
tEmpBadRecordService
.
getById
(
id
));
}
/**
* 新增员工不良记录
* @param tEmpBadRecord 员工不良记录
* @return R
*/
@Operation
(
summary
=
"新增员工不良记录"
,
description
=
"新增员工不良记录:hasPermission('demo_tempbadrecord_add')"
)
@SysLog
(
"新增员工不良记录"
)
@PostMapping
@PreAuthorize
(
"@pms.hasPermission('demo_tempbadrecord_add')"
)
public
R
<
Boolean
>
save
(
@RequestBody
TEmpBadRecord
tEmpBadRecord
)
{
return
tEmpBadRecordService
.
saveDiy
(
tEmpBadRecord
);
}
/**
* 修改员工不良记录
* @param tEmpBadRecord 员工不良记录
* @return R
*/
@Operation
(
summary
=
"修改员工不良记录"
,
description
=
"修改员工不良记录:hasPermission('demo_tempbadrecord_edit')"
)
@SysLog
(
"修改员工不良记录"
)
@PutMapping
@PreAuthorize
(
"@pms.hasPermission('demo_tempbadrecord_edit')"
)
public
R
<
Boolean
>
updateById
(
@RequestBody
TEmpBadRecord
tEmpBadRecord
)
{
return
R
.
ok
(
tEmpBadRecordService
.
updateById
(
tEmpBadRecord
));
}
/**
* 通过id删除员工不良记录
* @param id id
* @return R
*/
@Operation
(
summary
=
"通过id删除员工不良记录"
,
description
=
"通过id删除员工不良记录:hasPermission('demo_tempbadrecord_del')"
)
@SysLog
(
"通过id删除员工不良记录"
)
@DeleteMapping
(
"/{id}"
)
@PreAuthorize
(
"@pms.hasPermission('demo_tempbadrecord_del')"
)
public
R
<
Boolean
>
removeById
(
@PathVariable
String
id
)
{
return
R
.
ok
(
tEmpBadRecordService
.
removeById
(
id
));
}
/**
* 通过ids删除员工不良记录
* @param ids
* @return R
*/
@Operation
(
summary
=
"通过ids删除员工不良记录"
,
description
=
"通过id删除员工不良记录:hasPermission('demo_tempbadrecord_del_batch')"
)
@SysLog
(
"通过ids删除员工不良记录"
)
@DeleteMapping
(
"/removeByIds"
)
@PreAuthorize
(
"@pms.hasPermission('demo_tempbadrecord_del_batch')"
)
public
R
<
Boolean
>
removeByIds
(
@RequestParam
String
ids
)
{
List
<
String
>
idList
=
Common
.
getList
(
ids
);
return
R
.
ok
(
tEmpBadRecordService
.
removeByIds
(
idList
));
}
/**
* 批量新增不良记录信息
*
* @param file
* @return
* @Author fxj
* @Date 2019-08-16
**/
@SneakyThrows
@Operation
(
description
=
"批量新增不良记录信息 hasPermission('archives_tempbadrecord_importListAdd')"
)
@SysLog
(
"批量新增不良记录信息"
)
@PostMapping
(
"/importListAdd"
)
@PreAuthorize
(
"@pms.hasPermission('archives_tempbadrecord_importListAdd')"
)
public
R
<
List
<
ErrorMessage
>>
importListAdd
(
@RequestBody
MultipartFile
file
)
{
return
tEmpBadRecordService
.
importEmpBadRecordDiy
(
file
.
getInputStream
());
}
/**
* 批量导出项目档案信息
* @param searchVo
* @return R<List>
* @Author FXJ
* @Date 2022-06-21
**/
@Operation
(
description
=
"导出"
)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
@RequestBody
EmpBadRecordSearchVo
searchVo
)
{
tEmpBadRecordService
.
listExport
(
response
,
searchVo
);
}
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/controller/TEmployeeProjectController.java
View file @
dedc4978
...
...
@@ -39,6 +39,7 @@ import org.springframework.web.bind.annotation.*;
import
javax.servlet.http.HttpServletResponse
;
import
javax.validation.Valid
;
import
java.util.List
;
import
java.util.Map
;
/**
...
...
@@ -245,4 +246,17 @@ public class TEmployeeProjectController {
public
R
getItemByEmpNo
(
@RequestParam
String
empIdcard
,
@RequestParam
String
empNo
)
{
return
tEmployeeProjectService
.
getItemByEmpNo
(
empIdcard
,
empNo
);
}
/**
* 通过身份证获取对应所有项目信息
* @author fxj
* @param empIdCard
* @date 2022-06-29 17:45
* @return R
*/
@Operation
(
summary
=
"通过身份证获取对应所有项目信息"
,
description
=
"通过身份证获取对应所有项目信息"
)
@GetMapping
(
"/getProjectByIdCard"
)
public
R
<
Map
<
String
,
String
>>
getProjectByIdCard
(
@RequestParam
String
empIdCard
)
{
return
tEmployeeProjectService
.
getProjectByIdCard
(
empIdCard
);
}
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/mapper/FddContractAttachInfoMapper.java
0 → 100644
View file @
dedc4978
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.FddContractAttachInfo
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
/**
* 法大大合同附属信息表
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
@Mapper
public
interface
FddContractAttachInfoMapper
extends
BaseMapper
<
FddContractAttachInfo
>
{
/**
* 法大大合同附属信息表简单分页查询
* @param fddContractAttachInfo 法大大合同附属信息表
* @return
*/
IPage
<
FddContractAttachInfo
>
getFddContractAttachInfoPage
(
Page
<
FddContractAttachInfo
>
page
,
@Param
(
"fddContractAttachInfo"
)
FddContractAttachInfo
fddContractAttachInfo
);
List
<
FddContractAttachInfo
>
getListByNoInfoByEmpIdcard
(
@Param
(
"empIdcard"
)
String
empIdcard
);
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/mapper/FddContractInfoMapper.java
0 → 100644
View file @
dedc4978
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.FddContractInfo
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
/**
* 法大大合同与员工合同信息
*
* @author fxj
* @date 2022-06-29 16:21:51
*/
@Mapper
public
interface
FddContractInfoMapper
extends
BaseMapper
<
FddContractInfo
>
{
int
cancleSignTask
(
@Param
(
"id"
)
String
id
);
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/mapper/FddContractTemplateFileMapper.java
0 → 100644
View file @
dedc4978
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.FddContractTemplateFile
;
import
org.apache.ibatis.annotations.Mapper
;
/**
* 法大大员工合同模板文件表
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
@Mapper
public
interface
FddContractTemplateFileMapper
extends
BaseMapper
<
FddContractTemplateFile
>
{
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/mapper/FddContractTemplateMapper.java
0 → 100644
View file @
dedc4978
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.FddContractTemplate
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
/**
* 法大大员工合同模板
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
@Mapper
public
interface
FddContractTemplateMapper
extends
BaseMapper
<
FddContractTemplate
>
{
/**
* 法大大员工合同模板简单分页查询
* @param fddContractTemplate 法大大员工合同模板
* @return
*/
IPage
<
FddContractTemplate
>
getFddContractTemplatePage
(
Page
<
FddContractTemplate
>
page
,
@Param
(
"fddContractTemplate"
)
FddContractTemplate
fddContractTemplate
);
int
updateTeFddTemplateNull
(
@Param
(
"id"
)
String
id
);
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/mapper/FddGlobalFieldInfoMapper.java
0 → 100644
View file @
dedc4978
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.FddGlobalFieldInfo
;
import
org.apache.ibatis.annotations.Mapper
;
/**
* 法大大模板字段信息表
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
@Mapper
public
interface
FddGlobalFieldInfoMapper
extends
BaseMapper
<
FddGlobalFieldInfo
>
{
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/mapper/FddTemplateFieldInfoMapper.java
0 → 100644
View file @
dedc4978
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.FddTemplateFieldInfo
;
import
org.apache.ibatis.annotations.Mapper
;
/**
* 法大大字段对应信息表
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
@Mapper
public
interface
FddTemplateFieldInfoMapper
extends
BaseMapper
<
FddTemplateFieldInfo
>
{
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/mapper/TEmpBadRecordMapper.java
0 → 100644
View file @
dedc4978
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpBadRecord
;
import
org.apache.ibatis.annotations.Mapper
;
/**
* 员工不良记录
*
* @author fxj
* @date 2022-06-29 15:50:45
*/
@Mapper
public
interface
TEmpBadRecordMapper
extends
BaseMapper
<
TEmpBadRecord
>
{
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/FddContractAttachInfoService.java
0 → 100644
View file @
dedc4978
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
service
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.FddContractAttachInfo
;
import
java.util.List
;
/**
* 法大大合同附属信息表
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
public
interface
FddContractAttachInfoService
extends
IService
<
FddContractAttachInfo
>
{
/**
* 法大大合同附属信息表简单分页查询
* @param fddContractAttachInfo 法大大合同附属信息表
* @return
*/
IPage
<
FddContractAttachInfo
>
getFddContractAttachInfoPage
(
Page
<
FddContractAttachInfo
>
page
,
FddContractAttachInfo
fddContractAttachInfo
);
/**
* 获取有附属信息但是没有法大大电子合同的数据
* @param empIdcard
* @return
*/
List
<
FddContractAttachInfo
>
getListByNoInfoByEmpIdcard
(
String
empIdcard
);
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/FddContractInfoService.java
0 → 100644
View file @
dedc4978
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.FddContractInfo
;
/**
* 法大大合同与员工合同信息
*
* @author fxj
* @date 2022-06-29 16:21:51
*/
public
interface
FddContractInfoService
extends
IService
<
FddContractInfo
>
{
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/FddContractTemplateFileService.java
0 → 100644
View file @
dedc4978
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.FddContractTemplateFile
;
/**
* 法大大员工合同模板文件表
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
public
interface
FddContractTemplateFileService
extends
IService
<
FddContractTemplateFile
>
{
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/FddContractTemplateService.java
0 → 100644
View file @
dedc4978
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
service
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.fadada.api.exception.ApiException
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.FddContractTemplate
;
/**
* 法大大员工合同模板
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
public
interface
FddContractTemplateService
extends
IService
<
FddContractTemplate
>
{
/**
* 法大大员工合同模板简单分页查询
* @param fddContractTemplate 法大大员工合同模板
* @return
*/
IPage
<
FddContractTemplate
>
getFddContractTemplatePage
(
Page
<
FddContractTemplate
>
page
,
FddContractTemplate
fddContractTemplate
)
throws
ApiException
;
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/FddGlobalFieldInfoService.java
0 → 100644
View file @
dedc4978
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.FddGlobalFieldInfo
;
/**
* 法大大模板字段信息表
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
public
interface
FddGlobalFieldInfoService
extends
IService
<
FddGlobalFieldInfo
>
{
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/FddTemplateFieldInfoService.java
0 → 100644
View file @
dedc4978
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.FddTemplateFieldInfo
;
/**
* 法大大字段对应信息表
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
public
interface
FddTemplateFieldInfoService
extends
IService
<
FddTemplateFieldInfo
>
{
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/TEmpBadRecordService.java
0 → 100644
View file @
dedc4978
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
service
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpBadRecord
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.EmpBadRecordSearchVo
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.ErrorMessage
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.InputStream
;
import
java.util.List
;
/**
* 员工不良记录
*
* @author fxj
* @date 2022-06-29 15:50:45
*/
public
interface
TEmpBadRecordService
extends
IService
<
TEmpBadRecord
>
{
R
<
List
<
ErrorMessage
>>
importEmpBadRecordDiy
(
InputStream
inputStream
);
R
<
Boolean
>
saveDiy
(
TEmpBadRecord
tEmpBadRecord
);
void
listExport
(
HttpServletResponse
response
,
EmpBadRecordSearchVo
searchVo
);
IPage
<
TEmpBadRecord
>
pageDiy
(
Page
page
,
EmpBadRecordSearchVo
tEmpBadRecord
);
List
<
TEmpBadRecord
>
noPageDiy
(
EmpBadRecordSearchVo
tEmpBadRecord
);
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/TEmployeeProjectService.java
View file @
dedc4978
...
...
@@ -31,6 +31,7 @@ import org.springframework.validation.BindingResult;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.List
;
import
java.util.Map
;
/**
* 项目档案表
...
...
@@ -118,4 +119,6 @@ public interface TEmployeeProjectService extends IService<TEmployeeProject> {
void
saveEmployeeProjectInfo
(
TEmployeeInfo
employeeInfo
);
R
getItemByEmpNo
(
String
empIdcard
,
String
empNo
);
R
<
Map
<
String
,
String
>>
getProjectByIdCard
(
String
empIdCard
);
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/FddContractAttachInfoServiceImpl.java
0 → 100644
View file @
dedc4978
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.FddContractAttachInfo
;
import
com.yifu.cloud.plus.v1.yifu.archives.mapper.FddContractAttachInfoMapper
;
import
com.yifu.cloud.plus.v1.yifu.archives.service.FddContractAttachInfoService
;
import
lombok.RequiredArgsConstructor
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
/**
* 法大大合同附属信息表
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
@Service
@RequiredArgsConstructor
public
class
FddContractAttachInfoServiceImpl
extends
ServiceImpl
<
FddContractAttachInfoMapper
,
FddContractAttachInfo
>
implements
FddContractAttachInfoService
{
/**
* 法大大合同附属信息表简单分页查询
* @param fddContractAttachInfo 法大大合同附属信息表
* @return
*/
@Override
public
IPage
<
FddContractAttachInfo
>
getFddContractAttachInfoPage
(
Page
<
FddContractAttachInfo
>
page
,
FddContractAttachInfo
fddContractAttachInfo
)
{
return
baseMapper
.
getFddContractAttachInfoPage
(
page
,
fddContractAttachInfo
);
}
/**
* 获取有附属信息但是没有法大大电子合同的数据
* @param empIdcard
* @return
*/
@Override
public
List
<
FddContractAttachInfo
>
getListByNoInfoByEmpIdcard
(
@Param
(
"empIdcard"
)
String
empIdcard
)
{
return
baseMapper
.
getListByNoInfoByEmpIdcard
(
empIdcard
);
}
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/FddContractInfoServiceImpl.java
0 → 100644
View file @
dedc4978
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
service
.
impl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.FddContractInfo
;
import
com.yifu.cloud.plus.v1.yifu.archives.mapper.FddContractInfoMapper
;
import
com.yifu.cloud.plus.v1.yifu.archives.service.FddContractInfoService
;
import
lombok.RequiredArgsConstructor
;
import
org.springframework.stereotype.Service
;
/**
* 法大大合同与员工合同信息
*
* @author fxj
* @date 2022-06-29 16:21:51
*/
@Service
@RequiredArgsConstructor
public
class
FddContractInfoServiceImpl
extends
ServiceImpl
<
FddContractInfoMapper
,
FddContractInfo
>
implements
FddContractInfoService
{
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/FddContractTemplateFileServiceImpl.java
0 → 100644
View file @
dedc4978
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
service
.
impl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.FddContractTemplateFile
;
import
com.yifu.cloud.plus.v1.yifu.archives.mapper.FddContractTemplateFileMapper
;
import
com.yifu.cloud.plus.v1.yifu.archives.service.FddContractTemplateFileService
;
import
lombok.RequiredArgsConstructor
;
import
org.springframework.stereotype.Service
;
/**
* 法大大员工合同模板文件表
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
@Service
@RequiredArgsConstructor
public
class
FddContractTemplateFileServiceImpl
extends
ServiceImpl
<
FddContractTemplateFileMapper
,
FddContractTemplateFile
>
implements
FddContractTemplateFileService
{
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/FddContractTemplateServiceImpl.java
0 → 100644
View file @
dedc4978
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.fadada.api.bean.req.template.GetTemplateDetailReq
;
import
com.fadada.api.bean.rsp.BaseRsp
;
import
com.fadada.api.bean.rsp.template.GetTemplateDetailRsp
;
import
com.fadada.api.client.TemplateClient
;
import
com.fadada.api.exception.ApiException
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.FddContractTemplate
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.FddContractTemplateFile
;
import
com.yifu.cloud.plus.v1.yifu.archives.mapper.FddContractTemplateMapper
;
import
com.yifu.cloud.plus.v1.yifu.archives.service.FddContractTemplateFileService
;
import
com.yifu.cloud.plus.v1.yifu.archives.service.FddContractTemplateService
;
import
com.yifu.cloud.plus.v1.yifu.archives.utils.FddUtil
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants
;
import
lombok.RequiredArgsConstructor
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
/**
* 法大大员工合同模板
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
@Service
@RequiredArgsConstructor
public
class
FddContractTemplateServiceImpl
extends
ServiceImpl
<
FddContractTemplateMapper
,
FddContractTemplate
>
implements
FddContractTemplateService
{
@Autowired
private
FddUtil
fddUtil
;
@Autowired
private
FddContractTemplateFileService
templateFileService
;
/**
* 法大大员工合同模板简单分页查询
*
* @param fddContractTemplate 法大大员工合同模板
* @return IPage<FddContractTemplate>
*/
@Override
public
IPage
<
FddContractTemplate
>
getFddContractTemplatePage
(
Page
<
FddContractTemplate
>
page
,
FddContractTemplate
fddContractTemplate
)
throws
ApiException
{
IPage
<
FddContractTemplate
>
fddContractTemplatePage
=
baseMapper
.
getFddContractTemplatePage
(
page
,
fddContractTemplate
);
List
<
FddContractTemplate
>
records
=
fddContractTemplatePage
.
getRecords
();
for
(
FddContractTemplate
record
:
records
)
{
//发送请求
GetTemplateDetailReq
req
=
new
GetTemplateDetailReq
();
req
.
setToken
(
fddUtil
.
getToken
());
req
.
setTemplateId
(
record
.
getFddTemplateId
());
TemplateClient
client
=
new
TemplateClient
(
fddUtil
.
getFadadaApiClient
());
BaseRsp
<
GetTemplateDetailRsp
>
rsp
=
client
.
getTemplateDetail
(
req
);
//校验参数
if
(
StringUtils
.
equals
(
rsp
.
getCode
(),
FddUtil
.
SUCCESS
))
{
String
fileId
=
rsp
.
getData
().
getTemplateFiles
().
get
(
CommonConstants
.
ZERO_INT
).
getFileId
();
FddContractTemplateFile
fddContractTemplateFile
=
templateFileService
.
getOne
(
Wrappers
.<
FddContractTemplateFile
>
query
().
lambda
().
eq
(
FddContractTemplateFile:
:
getFddTemplateId
,
record
.
getFddTemplateId
()));
if
(
fddContractTemplateFile
!=
null
&&!
StringUtils
.
equals
(
fddContractTemplateFile
.
getFddFileId
(),
fileId
)){
fddContractTemplateFile
.
setFddFileId
(
fileId
);
templateFileService
.
updateById
(
fddContractTemplateFile
);
}
}
}
return
fddContractTemplatePage
;
}
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/FddGlobalFieldInfoServiceImpl.java
0 → 100644
View file @
dedc4978
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
service
.
impl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.FddGlobalFieldInfo
;
import
com.yifu.cloud.plus.v1.yifu.archives.mapper.FddGlobalFieldInfoMapper
;
import
com.yifu.cloud.plus.v1.yifu.archives.service.FddGlobalFieldInfoService
;
import
org.springframework.stereotype.Service
;
/**
* 法大大模板字段信息表
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
@Service
public
class
FddGlobalFieldInfoServiceImpl
extends
ServiceImpl
<
FddGlobalFieldInfoMapper
,
FddGlobalFieldInfo
>
implements
FddGlobalFieldInfoService
{
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/FddPersonAccountServiceImpl.java
View file @
dedc4978
...
...
@@ -46,6 +46,7 @@ import com.yifu.cloud.plus.v1.yifu.common.core.util.Common;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
lombok.RequiredArgsConstructor
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.context.properties.EnableConfigurationProperties
;
import
org.springframework.stereotype.Service
;
...
...
@@ -63,15 +64,20 @@ import java.util.List;
@EnableConfigurationProperties
(
FddConfigProperties
.
class
)
public
class
FddPersonAccountServiceImpl
extends
ServiceImpl
<
FddPersonAccountMapper
,
FddPersonAccount
>
implements
FddPersonAccountService
{
private
final
FddCompanyInfoService
fddCompanyInfoService
;
@Autowired
private
FddCompanyInfoService
fddCompanyInfoService
;
private
final
FddConfigProperties
fddConfigProperties
;
@Autowired
private
FddConfigProperties
fddConfigProperties
;
private
final
FddUtil
fddUtil
;
@Autowired
private
FddUtil
fddUtil
;
private
final
FddSealPersonAuthService
fddSealPersonAuthService
;
@Autowired
private
FddSealPersonAuthService
fddSealPersonAuthService
;
private
final
FddReqLogService
reqLogService
;
@Autowired
private
FddReqLogService
reqLogService
;
@Override
public
IPage
<
FddPersonAccount
>
getFddPersonAccountPage
(
Page
<
FddPersonAccount
>
page
,
FddPersonAccount
fddPersonAccount
)
{
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/FddTemplateFieldInfoServiceImpl.java
0 → 100644
View file @
dedc4978
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
service
.
impl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.FddTemplateFieldInfo
;
import
com.yifu.cloud.plus.v1.yifu.archives.mapper.FddTemplateFieldInfoMapper
;
import
com.yifu.cloud.plus.v1.yifu.archives.service.FddTemplateFieldInfoService
;
import
lombok.RequiredArgsConstructor
;
import
org.springframework.stereotype.Service
;
/**
* 法大大字段对应信息表
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
@Service
@RequiredArgsConstructor
public
class
FddTemplateFieldInfoServiceImpl
extends
ServiceImpl
<
FddTemplateFieldInfoMapper
,
FddTemplateFieldInfo
>
implements
FddTemplateFieldInfoService
{
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TCertRecordServiceImpl.java
View file @
dedc4978
...
...
@@ -92,7 +92,7 @@ public class TCertRecordServiceImpl extends ServiceImpl<TCertRecordMapper, TCert
@Override
public
IPage
<
TCertRecord
>
pageDiy
(
Page
page
,
CertRecordSearchVo
searchVo
)
{
LambdaQueryWrapper
<
TCertRecord
>
wrapper
=
buildQueryWrapper
(
searchVo
);
wrapper
.
orderByDesc
(
BaseEntity:
:
getCreate
Time
);
wrapper
.
orderByDesc
(
TCertRecord:
:
getOpen
Time
);
return
baseMapper
.
selectPage
(
page
,
wrapper
);
}
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmpBadRecordServiceImpl.java
0 → 100644
View file @
dedc4978
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
service
.
impl
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.util.ArrayUtil
;
import
com.alibaba.excel.EasyExcel
;
import
com.alibaba.excel.ExcelWriter
;
import
com.alibaba.excel.context.AnalysisContext
;
import
com.alibaba.excel.read.listener.ReadListener
;
import
com.alibaba.excel.read.metadata.holder.ReadRowHolder
;
import
com.alibaba.excel.util.ListUtils
;
import
com.alibaba.excel.write.metadata.WriteSheet
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpBadRecord
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpWorkRecording
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TEmployeeInfo
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TEmployeeProject
;
import
com.yifu.cloud.plus.v1.yifu.archives.mapper.TEmpBadRecordMapper
;
import
com.yifu.cloud.plus.v1.yifu.archives.mapper.TEmployeeInfoMapper
;
import
com.yifu.cloud.plus.v1.yifu.archives.mapper.TEmployeeProjectMapper
;
import
com.yifu.cloud.plus.v1.yifu.archives.service.TEmpBadRecordService
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.*
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.exception.ErrorCodes
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.*
;
import
com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity
;
import
lombok.RequiredArgsConstructor
;
import
lombok.extern.log4j.Log4j2
;
import
org.springframework.stereotype.Service
;
import
javax.servlet.ServletOutputStream
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.net.URLEncoder
;
import
java.time.LocalDateTime
;
import
java.util.ArrayList
;
import
java.util.List
;
/**
* 员工不良记录
*
* @author fxj
* @date 2022-06-29 15:50:45
*/
@Log4j2
@RequiredArgsConstructor
@Service
public
class
TEmpBadRecordServiceImpl
extends
ServiceImpl
<
TEmpBadRecordMapper
,
TEmpBadRecord
>
implements
TEmpBadRecordService
{
private
final
TEmployeeInfoMapper
employeeInfoMapper
;
private
final
TEmployeeProjectMapper
projectMapper
;
@Override
public
R
<
List
<
ErrorMessage
>>
importEmpBadRecordDiy
(
InputStream
inputStream
)
{
List
<
ErrorMessage
>
errorMessageList
=
new
ArrayList
<>();
ExcelUtil
<
EmpBadRecordVo
>
util1
=
new
ExcelUtil
<>(
EmpBadRecordVo
.
class
);;
// 写法2:
// 匿名内部类 不用额外写一个DemoDataListener
// 这里 需要指定读用哪个class去读,然后读取第一个sheet 文件流会自动关闭
try
{
EasyExcel
.
read
(
inputStream
,
EmpBadRecordVo
.
class
,
new
ReadListener
<
EmpBadRecordVo
>()
{
/**
* 单次缓存的数据量
*/
public
static
final
int
BATCH_COUNT
=
CommonConstants
.
BATCH_COUNT
;
/**
*临时存储
*/
private
List
<
EmpBadRecordVo
>
cachedDataList
=
ListUtils
.
newArrayListWithExpectedSize
(
BATCH_COUNT
);
@Override
public
void
invoke
(
EmpBadRecordVo
data
,
AnalysisContext
context
)
{
ReadRowHolder
readRowHolder
=
context
.
readRowHolder
();
Integer
rowIndex
=
readRowHolder
.
getRowIndex
();
data
.
setRowIndex
(
rowIndex
+
1
);
ErrorMessage
errorMessage
=
util1
.
checkEntity
(
data
,
data
.
getRowIndex
());
if
(
Common
.
isNotNull
(
errorMessage
)){
errorMessageList
.
add
(
errorMessage
);
}
else
{
cachedDataList
.
add
(
data
);
}
if
(
cachedDataList
.
size
()
>=
BATCH_COUNT
)
{
saveData
();
// 存储完成清理 list
cachedDataList
=
ListUtils
.
newArrayListWithExpectedSize
(
BATCH_COUNT
);
}
}
@Override
public
void
doAfterAllAnalysed
(
AnalysisContext
context
)
{
saveData
();
}
/**
* 加上存储数据库
*/
private
void
saveData
()
{
log
.
info
(
"{}条数据,开始存储数据库!"
,
cachedDataList
.
size
());
importEmpBadRecord
(
cachedDataList
,
errorMessageList
);
log
.
info
(
"存储数据库成功!"
);
}
}).
sheet
().
doRead
();
}
catch
(
Exception
e
){
log
.
error
(
CommonConstants
.
IMPORT_DATA_ANALYSIS_ERROR
,
e
);
return
R
.
failed
(
CommonConstants
.
IMPORT_DATA_ANALYSIS_ERROR
);
}
return
R
.
ok
(
errorMessageList
);
}
@Override
public
R
<
Boolean
>
saveDiy
(
TEmpBadRecord
tEmpBadRecord
)
{
return
R
.
ok
(
baseMapper
.
insert
(
tEmpBadRecord
)
>
0
);
}
private
void
importEmpBadRecord
(
List
<
EmpBadRecordVo
>
excelVOList
,
List
<
ErrorMessage
>
errorMessageList
)
{
// 个性化校验逻辑
List
<
TEmpBadRecord
>
list
=
this
.
list
();
TEmployeeInfo
emp
;
TEmployeeProject
exist
;
ErrorMessage
errorMsg
;
// 执行数据插入操作 组装
for
(
int
i
=
0
;
i
<
excelVOList
.
size
();
i
++)
{
// 已有验证报错直接下一个
EmpBadRecordVo
excel
=
excelVOList
.
get
(
i
);
emp
=
employeeInfoMapper
.
selectOne
(
Wrappers
.<
TEmployeeInfo
>
query
().
lambda
()
.
eq
(
TEmployeeInfo:
:
getEmpIdcard
,
excel
.
getEmpIdcard
())
.
eq
(
TEmployeeInfo:
:
getDeleteFlag
,
CommonConstants
.
ZERO_STRING
)
.
last
(
CommonConstants
.
LAST_ONE_SQL
));
errorMsg
=
checkRes
(
list
,
emp
,
excel
);
if
(
Common
.
isNotNull
(
errorMsg
)){
errorMessageList
.
add
(
errorMsg
);
continue
;
}
excel
.
setEmpName
(
emp
.
getEmpName
());
exist
=
projectMapper
.
selectOne
(
Wrappers
.<
TEmployeeProject
>
query
().
lambda
()
.
eq
(
TEmployeeProject:
:
getDeptNo
,
excel
.
getProjectCode
())
.
eq
(
TEmployeeProject:
:
getProjectStatus
,
CommonConstants
.
ZERO_STRING
)
.
eq
(
TEmployeeProject:
:
getEmpIdcard
,
excel
.
getEmpIdcard
())
.
last
(
CommonConstants
.
LAST_ONE_SQL
));
if
(
Common
.
isEmpty
(
exist
)){
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
MsgUtils
.
getMessage
(
ErrorCodes
.
ARCHIVES_PROJECT_EMP_NOT_EXIST
)));
continue
;
}
// 数据合法情况
insertExcel
(
excel
,
emp
);
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
CommonConstants
.
SAVE_SUCCESS
));
}
}
private
ErrorMessage
checkRes
(
List
<
TEmpBadRecord
>
list
,
TEmployeeInfo
emp
,
EmpBadRecordVo
excel
)
{
if
(
Common
.
isEmpty
(
emp
)){
return
new
ErrorMessage
(
excel
.
getRowIndex
(),
MsgUtils
.
getMessage
(
ErrorCodes
.
ARCHIVES_EMP_NOT_EXIST
));
}
if
(
CommonConstants
.
ONE_STRING
.
equals
(
emp
.
getFileStatus
())){
return
new
ErrorMessage
(
excel
.
getRowIndex
(),
MsgUtils
.
getMessage
(
ErrorCodes
.
ARCHIVES_EMP_REDUCED
));
}
return
null
;
}
/**
* 插入excel bad record
*/
private
void
insertExcel
(
EmpBadRecordVo
excel
,
TEmployeeInfo
emp
)
{
TEmpBadRecord
insert
=
new
TEmpBadRecord
();
BeanUtil
.
copyProperties
(
excel
,
insert
);
insert
.
setEmpIdcard
(
emp
.
getEmpIdcard
());
insert
.
setEmpId
(
emp
.
getId
());
insert
.
setEmpId
(
emp
.
getId
());
this
.
save
(
insert
);
}
@Override
public
void
listExport
(
HttpServletResponse
response
,
EmpBadRecordSearchVo
searchVo
)
{
String
fileName
=
"不良记录批量导出"
+
LocalDateTime
.
now
()
+
".xlsx"
;
//获取要导出的列表
List
<
TEmpBadRecord
>
list
=
new
ArrayList
<>();
//获取记录
list
=
noPageDiy
(
searchVo
);
if
(
Common
.
isNotNull
(
list
)){
ExcelUtil
<
TEmpBadRecord
>
util
=
new
ExcelUtil
<>(
TEmpBadRecord
.
class
);
for
(
TEmpBadRecord
vo:
list
){
util
.
convertEntity
(
vo
,
null
,
null
,
null
);
}
}
ServletOutputStream
out
=
null
;
try
{
if
(
list
.
size
()>
0
)
{
out
=
response
.
getOutputStream
();
response
.
setContentType
(
"multipart/form-data"
);
response
.
setCharacterEncoding
(
"utf-8"
);
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename*=utf-8'zh_cn'"
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
));
// 这里 需要指定写用哪个class去写,然后写到第一个sheet,然后文件流会自动关闭
EasyExcel
.
write
(
out
,
TEmpBadRecord
.
class
).
sheet
(
"不良记录"
).
doWrite
(
list
);
out
.
flush
();
}
}
catch
(
Exception
e
){
log
.
error
(
"执行异常"
,
e
);
}
finally
{
try
{
if
(
null
!=
out
)
{
out
.
close
();
}
}
catch
(
IOException
e
)
{
log
.
error
(
"执行异常"
,
e
);
}
}
}
@Override
public
IPage
<
TEmpBadRecord
>
pageDiy
(
Page
page
,
EmpBadRecordSearchVo
tEmpBadRecord
)
{
LambdaQueryWrapper
<
TEmpBadRecord
>
wrapper
=
buildQueryWrapper
(
tEmpBadRecord
);
wrapper
.
orderByDesc
(
BaseEntity:
:
getCreateTime
);
return
baseMapper
.
selectPage
(
page
,
wrapper
);
}
@Override
public
List
<
TEmpBadRecord
>
noPageDiy
(
EmpBadRecordSearchVo
tEmpBadRecord
)
{
LambdaQueryWrapper
<
TEmpBadRecord
>
wrapper
=
buildQueryWrapper
(
tEmpBadRecord
);
List
<
String
>
idList
=
Common
.
getList
(
tEmpBadRecord
.
getIds
());
if
(
Common
.
isNotNull
(
idList
)){
wrapper
.
in
(
TEmpBadRecord:
:
getId
,
idList
);
}
return
baseMapper
.
selectList
(
wrapper
);
}
private
LambdaQueryWrapper
buildQueryWrapper
(
EmpBadRecordSearchVo
entity
){
LambdaQueryWrapper
<
TEmpBadRecord
>
wrapper
=
Wrappers
.
lambdaQuery
();
if
(
ArrayUtil
.
isNotEmpty
(
entity
.
getCreateTimes
()))
{
wrapper
.
ge
(
TEmpBadRecord:
:
getCreateTime
,
entity
.
getCreateTimes
()[
0
])
.
le
(
TEmpBadRecord:
:
getCreateTime
,
entity
.
getCreateTimes
()[
1
]);
}
if
(
Common
.
isNotNull
(
entity
.
getEmpName
())){
wrapper
.
likeRight
(
TEmpBadRecord:
:
getEmpName
,
entity
.
getEmpName
());
}
if
(
Common
.
isNotNull
(
entity
.
getEmpIdcard
())){
wrapper
.
likeRight
(
TEmpBadRecord:
:
getEmpIdcard
,
entity
.
getEmpIdcard
());
}
if
(
Common
.
isNotNull
(
entity
.
getCreateName
())){
wrapper
.
eq
(
TEmpBadRecord:
:
getCreateName
,
entity
.
getCreateName
());
}
return
wrapper
;
}
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmpWorkRecordingServiceImpl.java
View file @
dedc4978
...
...
@@ -96,7 +96,7 @@ public class TEmpWorkRecordingServiceImpl extends ServiceImpl<TEmpWorkRecordingM
continue
;
}
// 数据合法情况
insertExcel
Post
(
excel
,
emp
);
insertExcel
(
excel
,
emp
);
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
CommonConstants
.
SAVE_SUCCESS
));
}
}
...
...
@@ -166,7 +166,7 @@ public class TEmpWorkRecordingServiceImpl extends ServiceImpl<TEmpWorkRecordingM
/**
* 插入excel work record
*/
private
void
insertExcel
Post
(
EmpWorkRecordExcelVO
excel
,
TEmployeeInfo
emp
)
{
private
void
insertExcel
(
EmpWorkRecordExcelVO
excel
,
TEmployeeInfo
emp
)
{
TEmpWorkRecording
insert
=
new
TEmpWorkRecording
();
BeanUtil
.
copyProperties
(
excel
,
insert
);
insert
.
setDeleteFlag
(
CommonConstants
.
ZERO_STRING
);
...
...
@@ -194,7 +194,7 @@ public class TEmpWorkRecordingServiceImpl extends ServiceImpl<TEmpWorkRecordingM
@Override
public
R
<
List
<
ErrorMessage
>>
importEmpWorkRecordDiy
(
InputStream
inputStream
)
{
List
<
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
common
.
core
.
util
.
ErrorMessage
>
errorMessageList
=
new
ArrayList
<>();
List
<
ErrorMessage
>
errorMessageList
=
new
ArrayList
<>();
ExcelUtil
<
EmpWorkRecordExcelVO
>
util1
=
new
ExcelUtil
<>(
EmpWorkRecordExcelVO
.
class
);;
// 写法2:
// 匿名内部类 不用额外写一个DemoDataListener
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmployeeProjectServiceImpl.java
View file @
dedc4978
...
...
@@ -727,4 +727,19 @@ public class TEmployeeProjectServiceImpl extends ServiceImpl<TEmployeeProjectMap
return
R
.
ok
(
map
);
}
@Override
public
R
<
Map
<
String
,
String
>>
getProjectByIdCard
(
String
empIdCard
)
{
List
<
TEmployeeProject
>
projects
=
baseMapper
.
selectList
(
Wrappers
.<
TEmployeeProject
>
query
().
lambda
()
.
eq
(
TEmployeeProject:
:
getDeleteFlag
,
CommonConstants
.
ZERO_STRING
)
.
eq
(
TEmployeeProject:
:
getProjectStatus
,
CommonConstants
.
ZERO_STRING
)
.
eq
(
TEmployeeProject:
:
getEmpIdcard
,
empIdCard
));
Map
<
String
,
String
>
projectMap
=
new
HashMap
<>();
if
(
Common
.
isEmpty
(
projects
)){
for
(
TEmployeeProject
project:
projects
){
projectMap
.
put
(
project
.
getDeptName
(),
project
.
getDeptNo
());
}
}
return
R
.
ok
(
projectMap
);
}
}
yifu-archives/yifu-archives-biz/src/main/resources/mapper/FddContractAttachInfoMapper.xml
0 → 100644
View file @
dedc4978
<?xml version="1.0" encoding="UTF-8"?>
<!--
~
~ Copyright (c) 2018-2025, lengleng All rights reserved.
~
~ Redistribution and use in source and binary forms, with or without
~ modification, are permitted provided that the following conditions are met:
~
~ Redistributions of source code must retain the above copyright notice,
~ this list of conditions and the following disclaimer.
~ Redistributions in binary form must reproduce the above copyright
~ notice, this list of conditions and the following disclaimer in the
~ documentation and/or other materials provided with the distribution.
~ Neither the name of the yifu4cloud.com developer nor the names of its
~ contributors may be used to endorse or promote products derived from
~ this software without specific prior written permission.
~ Author: lengleng (wangiegie@gmail.com)
~
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yifu.cloud.plus.v1.yifu.archives.mapper.FddContractAttachInfoMapper"
>
<resultMap
id=
"fddContractAttachInfoMap"
type=
"com.yifu.cloud.plus.v1.yifu.archives.entity.FddContractAttachInfo"
>
<id
property=
"id"
column=
"ID"
/>
<result
property=
"contractId"
column=
"CONTRACT_ID"
/>
<result
property=
"periodStart"
column=
"PERIOD_START"
/>
<result
property=
"periodEnd"
column=
"PERIOD_END"
/>
<result
property=
"contractStart"
column=
"CONTRACT_START"
/>
<result
property=
"contractEnd"
column=
"CONTRACT_END"
/>
<result
property=
"periodSalaryPerMonth"
column=
"PERIOD_SALARY_PER_MONTH"
/>
<result
property=
"salaryType"
column=
"SALARY_TYPE"
/>
<result
property=
"salaryStandardPerHour"
column=
"SALARY_STANDARD_PER_HOUR"
/>
<result
property=
"salaryStandardPerPiece"
column=
"SALARY_STANDARD_PER_PIECE"
/>
<result
property=
"workSpace"
column=
"WORK_SPACE"
/>
<result
property=
"post"
column=
"POST"
/>
<result
property=
"remark"
column=
"REMARK"
/>
<result
property=
"deleteFlag"
column=
"DELETE_FLAG"
/>
<result
property=
"isMove"
column=
"IS_MOVE"
/>
<result
property=
"fddTemplateId"
column=
"FDD_TEMPLATE_ID"
/>
<result
property=
"empName"
column=
"EMP_NAME"
/>
<result
property=
"empIdcard"
column=
"EMP_IDCARD"
/>
<result
property=
"empPhone"
column=
"EMP_PHONE"
/>
<result
property=
"departNo"
column=
"DEPART_NO"
/>
<result
property=
"createBy"
column=
"CREATE_BY"
/>
<result
property=
"updateBy"
column=
"UPDATE_BY"
/>
<result
property=
"createTime"
column=
"CREATE_TIME"
/>
<result
property=
"updateTime"
column=
"UPDATE_TIME"
/>
<result
property=
"createName"
column=
"CREATE_NAME"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
a.ID,
a.CONTRACT_ID,
a.PERIOD_START,
a.PERIOD_END,
a.PERIOD_SALARY_PER_MONTH,
a.SALARY_TYPE,
a.SALARY_STANDARD_PER_HOUR,
a.SALARY_STANDARD_PER_PIECE,
a.CREATE_USER_ID,
a.REMARK,
a.DELETE_FLAG,
a.WORK_SPACE,
a.IS_MOVE,
a.FDD_TEMPLATE_ID,
a.EMP_NAME,
a.EMP_IDCARD,
a.EMP_PHONE,
a.DEPART_NO,
a.CONTRACT_START,
a.CONTRACT_END,
a.CREATE_BY,
a.CREATE_NAME,
a.CREATE_TIME,
a.UPDATE_BY,
a.UPDATE_TIME
</sql>
<sql
id=
"fddContractAttachInfo_where"
>
<if
test=
"fddContractAttachInfo != null"
>
<if
test=
"fddContractAttachInfo.id != null and fddContractAttachInfo.id.trim() != ''"
>
AND a.ID = #{fddContractAttachInfo.id}
</if>
<if
test=
"fddContractAttachInfo.contractId != null and fddContractAttachInfo.contractId.trim() != ''"
>
AND a.CONTRACT_ID = #{fddContractAttachInfo.contractId}
</if>
<if
test=
"fddContractAttachInfo.periodStart != null"
>
AND a.PERIOD_START = #{fddContractAttachInfo.periodStart}
</if>
<if
test=
"fddContractAttachInfo.periodEnd != null"
>
AND a.PERIOD_END = #{fddContractAttachInfo.periodEnd}
</if>
<if
test=
"fddContractAttachInfo.periodSalaryPerMonth != null"
>
AND a.PERIOD_SALARY_PER_MONTH = #{fddContractAttachInfo.periodSalaryPerMonth}
</if>
<if
test=
"fddContractAttachInfo.salaryType != null and fddContractAttachInfo.salaryType.trim() != ''"
>
AND a.SALARY_TYPE = #{fddContractAttachInfo.salaryType}
</if>
<if
test=
"fddContractAttachInfo.salaryStandardPerHour != null"
>
AND a.SALARY_STANDARD_PER_HOUR = #{fddContractAttachInfo.salaryStandardPerHour}
</if>
<if
test=
"fddContractAttachInfo.salaryStandardPerPiece != null"
>
AND a.SALARY_STANDARD_PER_PIECE = #{fddContractAttachInfo.salaryStandardPerPiece}
</if>
<if
test=
"fddContractAttachInfo.createUserId != null and fddContractAttachInfo.createUserId.trim() != ''"
>
AND a.CREATE_USER_ID = #{fddContractAttachInfo.createUserId}
</if>
<if
test=
"fddContractAttachInfo.fddTemplateId != null and fddContractAttachInfo.fddTemplateId.trim() != ''"
>
AND a.FDD_TEMPLATE_ID = #{fddContractAttachInfo.fddTemplateId}
</if>
<if
test=
"fddContractAttachInfo.empName != null and fddContractAttachInfo.empName.trim() != ''"
>
AND a.EMP_NAME = #{fddContractAttachInfo.empName}
</if>
<if
test=
"fddContractAttachInfo.empIdcard != null and fddContractAttachInfo.empIdcard.trim() != ''"
>
AND a.EMP_IDCARD = #{fddContractAttachInfo.empIdcard}
</if>
<if
test=
"fddContractAttachInfo.empPhone != null and fddContractAttachInfo.empPhone.trim() != ''"
>
AND a.EMP_PHONE = #{fddContractAttachInfo.empPhone}
</if>
<if
test=
"fddContractAttachInfo.departNo != null and fddContractAttachInfo.departNo.trim() != ''"
>
AND a.DEPART_NO = #{fddContractAttachInfo.departNo}
</if>
<if
test=
"fddContractAttachInfo.contractStart != null"
>
AND a.CONTRACT_START = #{fddContractAttachInfo.contractStart}
</if>
<if
test=
"fddContractAttachInfo.contractEnd != null"
>
AND a.CONTRACT_END = #{fddContractAttachInfo.contractEnd}
</if>
<if
test=
"fddContractAttachInfo.createBy != null and fddContractAttachInfo.createBy.trim() != ''"
>
AND a.CREATE_BY = #{fddContractAttachInfo.createBy}
</if>
<if
test=
"fddContractAttachInfo.createName != null and fddContractAttachInfo.createName.trim() != ''"
>
AND a.CREATE_NAME = #{fddContractAttachInfo.createName}
</if>
<if
test=
"fddContractAttachInfo.createTime != null"
>
AND a.CREATE_TIME = #{fddContractAttachInfo.createTime}
</if>
<if
test=
"fddContractAttachInfo.updateBy != null and fddContractAttachInfo.updateBy.trim() != ''"
>
AND a.UPDATE_BY = #{fddContractAttachInfo.updateBy}
</if>
<if
test=
"fddContractAttachInfo.updateTime != null"
>
AND a.UPDATE_TIME = #{fddContractAttachInfo.updateTime}
</if>
</if>
</sql>
<!--fddContractAttachInfo简单分页查询-->
<select
id=
"getFddContractAttachInfoPage"
resultMap=
"fddContractAttachInfoMap"
>
SELECT
<include
refid=
"Base_Column_List"
/>
,
i.id FDD_CONTRACT_ID,i.TASK_STATUS,i.SEND_SIGN_STATUS,i.RECEIVE_SIGN_STATUS,i.SIGN_STATUS,i.TASK_ID,i.SIGN_TASK_ID,i.DRAFT_ID,i.REMARK SIGN_REMARK
FROM fdd_contract_attach_info a
left join fdd_contract_info i on a.CONTRACT_ID=i.CONTRACT_ID
<where>
1=1 and a.DELETE_FLAG='0' and (i.DELETE_FLAG='0' or i.id is null )
<include
refid=
"fddContractAttachInfo_where"
/>
</where>
order by a.CREATE_TIME desc
</select>
<select
id=
"getListByNoInfoByEmpIdcard"
resultType=
"com.yifu.cloud.plus.v1.yifu.archives.entity.FddContractAttachInfo"
>
select a.* FROM fdd_contract_attach_info a
left join fdd_contract_info i on a.CONTRACT_ID=i.CONTRACT_ID
left join t_employee_contract_info c on a.CONTRACT_ID=c.ID
left join t_employee_info e on c.EMP_Id=e.ID
where e.EMP_IDCARD=#{empIdcard} and i.id is null and a.DELETE_FLAG='0' order by a.CREATE_TIME desc
</select>
</mapper>
yifu-archives/yifu-archives-biz/src/main/resources/mapper/FddContractInfoMapper.xml
0 → 100644
View file @
dedc4978
<?xml version="1.0" encoding="UTF-8"?>
<!--
~
~ Copyright (c) 2018-2025, lengleng All rights reserved.
~
~ Redistribution and use in source and binary forms, with or without
~ modification, are permitted provided that the following conditions are met:
~
~ Redistributions of source code must retain the above copyright notice,
~ this list of conditions and the following disclaimer.
~ Redistributions in binary form must reproduce the above copyright
~ notice, this list of conditions and the following disclaimer in the
~ documentation and/or other materials provided with the distribution.
~ Neither the name of the yifu4cloud.com developer nor the names of its
~ contributors may be used to endorse or promote products derived from
~ this software without specific prior written permission.
~ Author: lengleng (wangiegie@gmail.com)
~
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yifu.cloud.plus.v1.yifu.archives.mapper.FddContractInfoMapper"
>
<resultMap
id=
"fddContractInfoMap"
type=
"com.yifu.cloud.plus.v1.yifu.archives.entity.FddContractInfo"
>
<id
property=
"id"
column=
"ID"
/>
<result
property=
"contractId"
column=
"CONTRACT_ID"
/>
<result
property=
"fddPersonAccountSendId"
column=
"FDD_PERSON_ACCOUNT_SEND_ID"
/>
<result
property=
"fddPersonAccountReceiveId"
column=
"FDD_PERSON_ACCOUNT_RECEIVE_ID"
/>
<result
property=
"sendUnionid"
column=
"SEND_UNIONID"
/>
<result
property=
"receiveUnionid"
column=
"RECEIVE_UNIONID"
/>
<result
property=
"taskStatus"
column=
"TASK_STATUS"
/>
<result
property=
"sendSignStatus"
column=
"SEND_SIGN_STATUS"
/>
<result
property=
"taskId"
column=
"TASK_ID"
/>
<result
property=
"fileId"
column=
"FILE_ID"
/>
<result
property=
"draftId"
column=
"DRAFT_ID"
/>
<result
property=
"deleteFlag"
column=
"DELETE_FLAG"
/>
<result
property=
"signTaskId"
column=
"SIGN_TASK_ID"
/>
<result
property=
"receiveSignStatus"
column=
"RECEIVE_SIGN_STATUS"
/>
<result
property=
"signStatus"
column=
"SIGN_STATUS"
/>
<result
property=
"remark"
column=
"REMARK"
/>
<result
property=
"fddTemplateId"
column=
"FDD_TEMPLATE_ID"
/>
<result
property=
"createBy"
column=
"CREATE_BY"
/>
<result
property=
"updateBy"
column=
"UPDATE_BY"
/>
<result
property=
"createTime"
column=
"CREATE_TIME"
/>
<result
property=
"updateTime"
column=
"UPDATE_TIME"
/>
<result
property=
"createName"
column=
"CREATE_NAME"
/>
</resultMap>
<update
id=
"cancleSignTask"
>
update fdd_contract_info set SIGN_STATUS=0,SIGN_TASK_ID=null where id=#{id}
</update>
</mapper>
yifu-archives/yifu-archives-biz/src/main/resources/mapper/FddContractTemplateFileMapper.xml
0 → 100644
View file @
dedc4978
<?xml version="1.0" encoding="UTF-8"?>
<!--
~
~ Copyright (c) 2018-2025, lengleng All rights reserved.
~
~ Redistribution and use in source and binary forms, with or without
~ modification, are permitted provided that the following conditions are met:
~
~ Redistributions of source code must retain the above copyright notice,
~ this list of conditions and the following disclaimer.
~ Redistributions in binary form must reproduce the above copyright
~ notice, this list of conditions and the following disclaimer in the
~ documentation and/or other materials provided with the distribution.
~ Neither the name of the yifu4cloud.com developer nor the names of its
~ contributors may be used to endorse or promote products derived from
~ this software without specific prior written permission.
~ Author: lengleng (wangiegie@gmail.com)
~
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yifu.cloud.plus.v1.yifu.archives.mapper.FddContractTemplateFileMapper"
>
<resultMap
id=
"fddContractTemplateFileMap"
type=
"com.yifu.cloud.plus.v1.yifu.archives.entity.FddContractTemplateFile"
>
<id
property=
"id"
column=
"ID"
/>
<result
property=
"fddTemplateId"
column=
"FDD_TEMPLATE_ID"
/>
<result
property=
"fddFileId"
column=
"FDD_FILE_ID"
/>
</resultMap>
</mapper>
yifu-archives/yifu-archives-biz/src/main/resources/mapper/FddContractTemplateMapper.xml
0 → 100644
View file @
dedc4978
<?xml version="1.0" encoding="UTF-8"?>
<!--
~
~ Copyright (c) 2018-2025, lengleng All rights reserved.
~
~ Redistribution and use in source and binary forms, with or without
~ modification, are permitted provided that the following conditions are met:
~
~ Redistributions of source code must retain the above copyright notice,
~ this list of conditions and the following disclaimer.
~ Redistributions in binary form must reproduce the above copyright
~ notice, this list of conditions and the following disclaimer in the
~ documentation and/or other materials provided with the distribution.
~ Neither the name of the yifu4cloud.com developer nor the names of its
~ contributors may be used to endorse or promote products derived from
~ this software without specific prior written permission.
~ Author: lengleng (wangiegie@gmail.com)
~
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yifu.cloud.plus.v1.yifu.archives.mapper.FddContractTemplateMapper"
>
<resultMap
id=
"fddContractTemplateMap"
type=
"com.yifu.cloud.plus.v1.yifu.archives.entity.FddContractTemplate"
>
<id
property=
"id"
column=
"ID"
/>
<result
property=
"type"
column=
"TYPE"
/>
<result
property=
"modifyUploadStatus"
column=
"MODIFY_UPLOAD_STATUS"
/>
<result
property=
"province"
column=
"PROVINCE"
/>
<result
property=
"city"
column=
"CITY"
/>
<result
property=
"overtimeWageFlag"
column=
"OVERTIME_WAGE_FLAG"
/>
<result
property=
"fddTemplateId"
column=
"FDD_TEMPLATE_ID"
/>
<result
property=
"localName"
column=
"LOCAL_NAME"
/>
<result
property=
"signerName"
column=
"SIGNER_NAME"
/>
<result
property=
"createBy"
column=
"CREATE_BY"
/>
<result
property=
"updateBy"
column=
"UPDATE_BY"
/>
<result
property=
"createTime"
column=
"CREATE_TIME"
/>
<result
property=
"updateTime"
column=
"UPDATE_TIME"
/>
<result
property=
"createName"
column=
"CREATE_NAME"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
a.ID,
a.TYPE,
a.modify_upload_status,
a.province,
a.city,
a.OVERTIME_WAGE_FLAG,
a.FDD_TEMPLATE_ID,
a.LOCAL_NAME,
a.SIGNER_NAME,
a.CREATE_BY,
a.CREATE_NAME,
a.CREATE_TIME,
a.UPDATE_BY,
a.UPDATE_TIME
</sql>
<sql
id=
"fddContractTemplate_where"
>
<if
test=
"fddContractTemplate != null"
>
<if
test=
"fddContractTemplate.id != null and fddContractTemplate.id.trim() != ''"
>
AND a.ID = #{fddContractTemplate.id}
</if>
<if
test=
"fddContractTemplate.localName != null and fddContractTemplate.localName.trim() != ''"
>
AND a.LOCAL_NAME like CONCAT(#{fddContractTemplate.localName},'%')
</if>
<if
test=
"fddContractTemplate.type != null and fddContractTemplate.type.trim() != ''"
>
AND a.TYPE = #{fddContractTemplate.type}
</if>
<if
test=
"fddContractTemplate.modifyUploadStatus != null and fddContractTemplate.modifyUploadStatus.trim() != ''"
>
AND a.modify_upload_status = #{fddContractTemplate.modifyUploadStatus}
</if>
<if
test=
"fddContractTemplate.province != null"
>
AND a.province = #{fddContractTemplate.province}
</if>
<if
test=
"fddContractTemplate.city != null"
>
AND a.city = #{fddContractTemplate.city}
</if>
<if
test=
"fddContractTemplate.overtimeWageFlag != null and fddContractTemplate.overtimeWageFlag.trim() != ''"
>
AND a.OVERTIME_WAGE_FLAG = #{fddContractTemplate.overtimeWageFlag}
</if>
<if
test=
"fddContractTemplate.signerName != null and fddContractTemplate.signerName.trim() != ''"
>
AND a.SIGNER_NAME = #{fddContractTemplate.signerName}
</if>
<if
test=
"fddContractTemplate.createBy != null and fddContractTemplate.createBy.trim() != ''"
>
AND a.CREATE_BY = #{fddContractTemplate.createBy}
</if>
<if
test=
"fddContractTemplate.createName != null and fddContractTemplate.createName.trim() != ''"
>
AND a.CREATE_NAME = #{fddContractTemplate.createName}
</if>
<if
test=
"fddContractTemplate.createTime != null"
>
AND a.CREATE_TIME = #{fddContractTemplate.createTime}
</if>
<if
test=
"fddContractTemplate.updateBy != null and fddContractTemplate.updateBy.trim() != ''"
>
AND a.UPDATE_BY = #{fddContractTemplate.updateBy}
</if>
<if
test=
"fddContractTemplate.updateTime != null"
>
AND a.UPDATE_TIME = #{fddContractTemplate.updateTime}
</if>
</if>
</sql>
<!--fddContractTemplate简单分页查询-->
<select
id=
"getFddContractTemplatePage"
resultMap=
"fddContractTemplateMap"
>
SELECT
<include
refid=
"Base_Column_List"
/>
FROM fdd_contract_template a
<where>
1=1
<include
refid=
"fddContractTemplate_where"
/>
</where>
</select>
<update
id=
"updateTeFddTemplateNull"
>
update fdd_contract_template set FDD_TEMPLATE_ID=null where id=#{id}
</update>
</mapper>
yifu-archives/yifu-archives-biz/src/main/resources/mapper/FddGlobalFieldInfoMapper.xml
0 → 100644
View file @
dedc4978
<?xml version="1.0" encoding="UTF-8"?>
<!--
~
~ Copyright (c) 2018-2025, lengleng All rights reserved.
~
~ Redistribution and use in source and binary forms, with or without
~ modification, are permitted provided that the following conditions are met:
~
~ Redistributions of source code must retain the above copyright notice,
~ this list of conditions and the following disclaimer.
~ Redistributions in binary form must reproduce the above copyright
~ notice, this list of conditions and the following disclaimer in the
~ documentation and/or other materials provided with the distribution.
~ Neither the name of the yifu4cloud.com developer nor the names of its
~ contributors may be used to endorse or promote products derived from
~ this software without specific prior written permission.
~ Author: lengleng (wangiegie@gmail.com)
~
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yifu.cloud.plus.v1.yifu.archives.mapper.FddGlobalFieldInfoMapper"
>
<resultMap
id=
"fddGlobalFieldInfoMap"
type=
"com.yifu.cloud.plus.v1.yifu.archives.entity.FddGlobalFieldInfo"
>
<id
property=
"id"
column=
"ID"
/>
<result
property=
"filedName"
column=
"FILED_NAME"
/>
<result
property=
"remark"
column=
"REMARK"
/>
<result
property=
"type"
column=
"TYPE"
/>
</resultMap>
</mapper>
yifu-archives/yifu-archives-biz/src/main/resources/mapper/FddTemplateFieldInfoMapper.xml
0 → 100644
View file @
dedc4978
<?xml version="1.0" encoding="UTF-8"?>
<!--
~
~ Copyright (c) 2018-2025, lengleng All rights reserved.
~
~ Redistribution and use in source and binary forms, with or without
~ modification, are permitted provided that the following conditions are met:
~
~ Redistributions of source code must retain the above copyright notice,
~ this list of conditions and the following disclaimer.
~ Redistributions in binary form must reproduce the above copyright
~ notice, this list of conditions and the following disclaimer in the
~ documentation and/or other materials provided with the distribution.
~ Neither the name of the yifu4cloud.com developer nor the names of its
~ contributors may be used to endorse or promote products derived from
~ this software without specific prior written permission.
~ Author: lengleng (wangiegie@gmail.com)
~
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yifu.cloud.plus.v1.yifu.archives.mapper.FddTemplateFieldInfoMapper"
>
<resultMap
id=
"fddTemplateFieldInfoMap"
type=
"com.yifu.cloud.plus.v1.yifu.archives.entity.FddTemplateFieldInfo"
>
<id
property=
"id"
column=
"ID"
/>
<result
property=
"type"
column=
"TYPE"
/>
<result
property=
"filedName"
column=
"FILED_NAME"
/>
<result
property=
"templateId"
column=
"TEMPLATE_ID"
/>
</resultMap>
</mapper>
yifu-archives/yifu-archives-biz/src/main/resources/mapper/TEmpBadRecordMapper.xml
0 → 100644
View file @
dedc4978
<?xml version="1.0" encoding="UTF-8"?>
<!--
~
~ Copyright (c) 2018-2025, lengleng All rights reserved.
~
~ Redistribution and use in source and binary forms, with or without
~ modification, are permitted provided that the following conditions are met:
~
~ Redistributions of source code must retain the above copyright notice,
~ this list of conditions and the following disclaimer.
~ Redistributions in binary form must reproduce the above copyright
~ notice, this list of conditions and the following disclaimer in the
~ documentation and/or other materials provided with the distribution.
~ Neither the name of the yifu4cloud.com developer nor the names of its
~ contributors may be used to endorse or promote products derived from
~ this software without specific prior written permission.
~ Author: lengleng (wangiegie@gmail.com)
~
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yifu.cloud.plus.v1.yifu.archives.mapper.TEmpBadRecordMapper"
>
<resultMap
id=
"tEmpBadRecordMap"
type=
"com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpBadRecord"
>
<id
property=
"id"
column=
"ID"
/>
<result
property=
"empName"
column=
"EMP_NAME"
/>
<result
property=
"empId"
column=
"EMP_ID"
/>
<result
property=
"empIdcard"
column=
"EMP_IDCARD"
/>
<result
property=
"project"
column=
"PROJECT"
/>
<result
property=
"projectCode"
column=
"PROJECT_CODE"
/>
<result
property=
"happenTime"
column=
"HAPPEN_TIME"
/>
<result
property=
"remark"
column=
"REMARK"
/>
<result
property=
"loseFee"
column=
"LOSE_FEE"
/>
<result
property=
"loseFeeOther"
column=
"LOSE_FEE_OTHER"
/>
<result
property=
"createBy"
column=
"CREATE_BY"
/>
<result
property=
"updateBy"
column=
"UPDATE_BY"
/>
<result
property=
"createName"
column=
"CREATE_NAME"
/>
<result
property=
"createTime"
column=
"CREATE_TIME"
/>
<result
property=
"updateTime"
column=
"UPDATE_TIME"
/>
</resultMap>
</mapper>
yifu-common/yifu-common-core/src/main/java/com/yifu.cloud.plus.v1/yifu/common/core/exception/ErrorCodes.java
View file @
dedc4978
...
...
@@ -172,7 +172,7 @@ public interface ErrorCodes {
String
ARCHIVES_EMP_FAMILY_NAME_EXISTING
=
"archives.emp.family.name.existing"
;
/**
*
已存在对应身份证的家庭成员
信息
*
无对应身份证的员工
信息
*/
String
ARCHIVES_EMP_NOT_EXIST
=
"archives.emp.not.exist"
;
...
...
@@ -279,4 +279,8 @@ public interface ErrorCodes {
* 申请年份不可为未来年份
*/
String
ARCHIVES_EMP_CERTIFICATE_DECLARE_YEAR_ERROR
=
"archives.emp.certificate.declare.year.error"
;
/**
* 对应项目编码无项目档案信息,请核实后导入
*/
String
ARCHIVES_PROJECT_EMP_NOT_EXIST
=
"archives.project.emp.not.exist"
;
}
yifu-common/yifu-common-core/src/main/resources/i18n/messages_zh_CN.properties
View file @
dedc4978
...
...
@@ -85,6 +85,8 @@ archives.import.emp.leaveReason.must=\u51CF\u6863\u539F\u56E0\u5FC5\u586B
import.file.type.error
=
\u
5BFC
\u5165\u7684\u6587\u
4EF6
\u
683C
\u
5F0F
\u
4E0D
\u
6B63
\u
786E
archives.project.emp.not.exist
=
\u
5BF9
\u
5E94
\u9879\u
76EE
\u
7F16
\u7801\u
65E0
\u9879\u
76EE
\u6863\u6848\u
4FE1
\u
606F
\u
FF0C
\u
8BF7
\u6838\u
5B9E
\u
540E
\u
5BFC
\u5165
...
...
yifu-common/yifu-common-mybatis/pom.xml
View file @
dedc4978
...
...
@@ -77,5 +77,11 @@
<groupId>
com.yifu.cloud.plus.v1
</groupId>
<artifactId>
yifu-common-core
</artifactId>
</dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<artifactId>
easyexcel
</artifactId>
<version>
3.0.5
</version>
<scope>
compile
</scope>
</dependency>
</dependencies>
</project>
yifu-common/yifu-common-mybatis/src/main/java/com/yifu.cloud.plus.v1/yifu/common/mybatis/base/BaseEntity.java
View file @
dedc4978
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
common
.
mybatis
.
base
;
import
com.alibaba.excel.annotation.ExcelIgnore
;
import
com.baomidou.mybatisplus.annotation.FieldFill
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
...
...
@@ -33,6 +34,7 @@ public class BaseEntity implements Serializable {
*/
@Schema
(
description
=
"创建人"
)
@TableField
(
fill
=
FieldFill
.
INSERT
)
@ExcelIgnore
private
String
createBy
;
/**
...
...
@@ -48,6 +50,7 @@ public class BaseEntity implements Serializable {
*/
@Schema
(
description
=
"更新人"
)
@TableField
(
fill
=
FieldFill
.
INSERT_UPDATE
)
@ExcelIgnore
private
String
updateBy
;
/**
...
...
yifu-visual/yifu-codegen/src/main/resources/template/Controller.java.vm
View file @
dedc4978
...
...
@@ -66,9 +66,9 @@ public class ${className}Controller {
*
@
return
*/
@
Operation
(
summary
=
"不分页查询"
,
description
=
"不分页查询"
)
@
Ge
tMapping
(
"/noPage"
)
@
Pos
tMapping
(
"/noPage"
)
//@
PreAuthorize
(
"@pms.hasPermission('${moduleName}_${pathName}_get')"
)
public
R
<
List
<${
className
}>>
get
${
className
}
NoPage
(${
className
}
${
classname
})
{
public
R
<
List
<${
className
}>>
get
${
className
}
NoPage
(
@
RequestBody
${
className
}
${
classname
})
{
return
R
.
ok
(${
classname
}
Service
.
list
(
Wrappers
.
query
(${
classname
})));
}
...
...
@@ -80,7 +80,7 @@ public class ${className}Controller {
@
Operation
(
summary
=
"通过id查询"
,
description
=
"通过id查询:hasPermission('${moduleName}_${pathName}_get')"
)
@
GetMapping
(
"/{${pk.lowerAttrName}}"
)
@
PreAuthorize
(
"@pms.hasPermission('${moduleName}_${pathName}_get')"
)
public
R
<${
class
n
ame
}>
getById
(@
PathVariable
(
"${pk.lowerAttrName}"
)
${
pk
.
attrType
}
${
pk
.
lowerAttrName
})
{
public
R
<${
class
N
ame
}>
getById
(@
PathVariable
(
"${pk.lowerAttrName}"
)
${
pk
.
attrType
}
${
pk
.
lowerAttrName
})
{
return
R
.
ok
(${
classname
}
Service
.
getById
(${
pk
.
lowerAttrName
}));
}
...
...
yifu-visual/yifu-codegen/src/main/resources/template/Entity.java.vm
View file @
dedc4978
...
...
@@ -17,6 +17,7 @@
#
set
($
excludeColumns
=
[
"create_time"
,
"update_time"
,
"create_by"
,
"update_by"
])
package
${
package
}.${
moduleName
}.
entity
;
import
com
.
alibaba
.
excel
.
annotation
.
ExcelProperty
;
import
com
.
baomidou
.
mybatisplus
.
annotation
.
IdType
;
import
com
.
baomidou
.
mybatisplus
.
annotation
.
TableId
;
import
com
.
baomidou
.
mybatisplus
.
annotation
.
TableName
;
...
...
@@ -51,6 +52,7 @@ public class ${className} extends BaseEntity {
#
end
@
ExcelAttribute
(
name
=
"$column.comments"
#
if
($
column
.
isNullable
==
'NO'
&&
$
column
.
attrType
!='LocalDate' && $column.attrType !='LocalDateTime'), isNotEmpty = true,errorInfo = "$column.comments不能为空"#end #if($column.maxLength), maxLength = $column.maxLength #end)
@
Schema
(
description
=
"$column.comments"
#
if
($
column
.
hidden
),
hidden
=$
column
.
hidden
#
end
)
@
ExcelProperty
(
"$column.comments"
)
private
$
column
.
attrType
$
column
.
lowerAttrName
;
#
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment