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
501c23f0
Commit
501c23f0
authored
Jun 18, 2025
by
fangxinjiang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/MVP1.7.12' into MVP1.7.12
parents
95eb3bb3
93f7f8e2
Hide whitespace changes
Inline
Side-by-side
Showing
37 changed files
with
1626 additions
and
66 deletions
+1626
-66
TAutoContractScheme.java
...oud/plus/v1/yifu/archives/entity/TAutoContractScheme.java
+2
-2
TEmployeeContractInfo.java
...d/plus/v1/yifu/archives/entity/TEmployeeContractInfo.java
+2
-2
TEmployeeContractPre.java
...ud/plus/v1/yifu/archives/entity/TEmployeeContractPre.java
+9
-0
TGzEmpInfo.java
...m/yifu/cloud/plus/v1/yifu/archives/entity/TGzEmpInfo.java
+43
-5
TEmployeeContractPreVo.java
...loud/plus/v1/yifu/archives/vo/TEmployeeContractPreVo.java
+26
-6
TGzEmpInfoSearchVo.java
...fu/cloud/plus/v1/yifu/archives/vo/TGzEmpInfoSearchVo.java
+33
-1
TGzOfferInfoExportDetailVo.java
.../plus/v1/yifu/archives/vo/TGzOfferInfoExportDetailVo.java
+135
-0
TGzOfferInfoExportMainVo.java
...ud/plus/v1/yifu/archives/vo/TGzOfferInfoExportMainVo.java
+62
-0
TGzOfferInfoExportSearchVo.java
.../plus/v1/yifu/archives/vo/TGzOfferInfoExportSearchVo.java
+50
-0
TGzEmpInfoController.java
...lus/v1/yifu/archives/controller/TGzEmpInfoController.java
+13
-2
TGzOfferInfoController.java
...s/v1/yifu/archives/controller/TGzOfferInfoController.java
+72
-5
TGzOfferInfoMapper.java
...loud/plus/v1/yifu/archives/mapper/TGzOfferInfoMapper.java
+26
-0
TGzEmpInfoService.java
...loud/plus/v1/yifu/archives/service/TGzEmpInfoService.java
+8
-0
TGzOfferInfoService.java
...ud/plus/v1/yifu/archives/service/TGzOfferInfoService.java
+60
-7
TGzEmpInfoServiceImpl.java
.../v1/yifu/archives/service/impl/TGzEmpInfoServiceImpl.java
+136
-2
TGzOfferInfoServiceImpl.java
...1/yifu/archives/service/impl/TGzOfferInfoServiceImpl.java
+285
-22
application.yml
...ives/yifu-archives-biz/src/main/resources/application.yml
+1
-0
TEmployeeContractPreMapper.xml
.../src/main/resources/mapper/TEmployeeContractPreMapper.xml
+6
-1
TGzEmpInfoMapper.xml
...chives-biz/src/main/resources/mapper/TGzEmpInfoMapper.xml
+21
-1
TGzOfferInfoMapper.xml
...ives-biz/src/main/resources/mapper/TGzOfferInfoMapper.xml
+97
-0
ExcelAttributeConstants.java
...v1/yifu/common/core/constant/ExcelAttributeConstants.java
+10
-0
EkpDaprUtils.java
...ifu/cloud/plus/v1/yifu/common/dapr/util/EkpDaprUtils.java
+12
-0
EmployeeRegistrationServiceImpl.java
.../v1/csp/service/impl/EmployeeRegistrationServiceImpl.java
+28
-5
EkpDeptContractInfoVo.java
.../com/yifu/cloud/plus/v1/ekp/vo/EkpDeptContractInfoVo.java
+30
-0
TEkpSocialInfoController.java
...loud/plus/v1/ekp/controller/TEkpSocialInfoController.java
+26
-0
EkpSocialInfoMapper.java
...om/yifu/cloud/plus/v1/ekp/mapper/EkpSocialInfoMapper.java
+3
-0
EkpSocialInfoService.java
.../yifu/cloud/plus/v1/ekp/service/EkpSocialInfoService.java
+3
-0
EkpSocialInfoServiceImpl.java
...ud/plus/v1/ekp/service/impl/EkpSocialInfoServiceImpl.java
+9
-4
EkpSocialInfoMapper.xml
...ekp-biz/src/main/resources/mapper/EkpSocialInfoMapper.xml
+12
-0
SysGuaziBankBranch.java
...oud.plus.v1/yifu/admin/api/entity/SysGuaziBankBranch.java
+101
-0
SysGuaziBankBranchController.java
...1/yifu/admin/controller/SysGuaziBankBranchController.java
+63
-0
SysGuaziBankBranchMapper.java
...d/plus/v1/yifu/admin/mapper/SysGuaziBankBranchMapper.java
+42
-0
SysGuaziBankBranchService.java
...plus/v1/yifu/admin/service/SysGuaziBankBranchService.java
+41
-0
SysGuaziBankBranchServiceImpl.java
...ifu/admin/service/impl/SysGuaziBankBranchServiceImpl.java
+51
-0
SysOutEmpFormInfoServiceImpl.java
...yifu/admin/service/impl/SysOutEmpFormInfoServiceImpl.java
+0
-1
application.yml
yifu-upms/yifu-upms-biz/src/main/resources/application.yml
+3
-0
SysGuaziBankBranchMapper.xml
...iz/src/main/resources/mapper/SysGuaziBankBranchMapper.xml
+105
-0
No files found.
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/entity/TAutoContractScheme.java
View file @
501c23f0
...
...
@@ -349,12 +349,12 @@ public class TAutoContractScheme extends BaseEntity {
@Schema
(
description
=
"用工单位名称"
)
private
String
workingCompany
;
/**
* 工资形式
0 计时工资 1计件工资 2
其他
* 工资形式
1.计时工资 2.计件工资 3.
其他
*/
@ExcelAttribute
(
name
=
"工资形式"
,
maxLength
=
2
)
@Length
(
max
=
1
,
message
=
"工资形式不能超过2个字符"
)
@ExcelProperty
(
"工资形式"
)
@Schema
(
description
=
"工资形式
0 计时工资 1计件工资 2
其他"
)
@Schema
(
description
=
"工资形式
1.计时工资 2.计件工资 3.
其他"
)
private
String
salaryType
;
/**
* 购买补充保险说明
...
...
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/entity/TEmployeeContractInfo.java
View file @
501c23f0
...
...
@@ -544,8 +544,8 @@ public class TEmployeeContractInfo extends BaseEntity {
/**
* preName
*/
@
ExcelAttribute
(
name
=
"
preName"
)
@
ExcelProperty
(
value
=
"preName"
)
@
Schema
(
description
=
"合同待签订列表
preName"
)
@
TableField
(
exist
=
false
)
private
String
preName
;
/**
...
...
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/entity/TEmployeeContractPre.java
View file @
501c23f0
...
...
@@ -236,6 +236,15 @@ public class TEmployeeContractPre extends BaseEntity {
@Schema
(
description
=
"合同岗位 0 固定岗位 1 等于档案处维护 2 自定义"
)
private
String
postType
;
@Schema
(
description
=
"入职确认选择 0 配置方案内选择、1 自定义 2 配置方案+自定义"
)
private
String
confirmEmpSelect
;
@Schema
(
description
=
"超时未确认是否触发签署任务(电子签) 0 自动触发 1 不触发"
)
private
String
timeoutElecSign
;
@Schema
(
description
=
"合同截止日期类型 "
)
private
String
contractEndType
;
@Schema
(
description
=
"合同岗位名称"
)
private
String
post
;
...
...
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/entity/TGzEmpInfo.java
View file @
501c23f0
...
...
@@ -162,6 +162,10 @@ public class TGzEmpInfo extends BaseEntity {
@ExcelProperty
(
"籍贯"
)
@Schema
(
description
=
"籍贯"
)
private
String
nativePlace
;
@Schema
(
description
=
"籍贯地区ID"
)
private
Integer
nativePlaceAreaId
;
/**
* 民族
*/
...
...
@@ -174,7 +178,7 @@ public class TGzEmpInfo extends BaseEntity {
* 婚姻状态
*/
@ExcelAttribute
(
name
=
"婚姻状态"
,
maxLength
=
1
)
@Length
(
max
=
1
,
message
=
"婚姻状态不能超过1个字符"
)
@Length
(
max
=
3
,
message
=
"婚姻状态不能超过1个字符"
)
@ExcelProperty
(
"婚姻状态"
)
@Schema
(
description
=
"婚姻状态"
)
private
String
marStatus
;
...
...
@@ -189,10 +193,10 @@ public class TGzEmpInfo extends BaseEntity {
/**
* 是否新参社保(Y:是 N:否)
*/
@ExcelAttribute
(
name
=
"是否新参社保
(Y:是 N:否)"
,
maxLength
=
1
)
@Length
(
max
=
1
,
message
=
"是否新参社保(Y:是 N:否)不能超过1
个字符"
)
@ExcelProperty
(
"是否新参社保
(Y:是 N:否)
"
)
@Schema
(
description
=
"是否新参社保
(Y:是 N:否)
"
)
@ExcelAttribute
(
name
=
"是否新参社保
"
,
maxLength
=
3
)
@Length
(
max
=
3
,
message
=
"是否新参社保不能超过3
个字符"
)
@ExcelProperty
(
"是否新参社保"
)
@Schema
(
description
=
"是否新参社保"
)
private
String
insuranceSta
;
/**
* 驾照类型
...
...
@@ -295,6 +299,15 @@ public class TGzEmpInfo extends BaseEntity {
@ExcelProperty
(
"家庭住址-所在区编码"
)
@Schema
(
description
=
"家庭住址-所在区编码"
)
private
String
countyId
;
@Schema
(
description
=
"家庭住址-所在省地区ID"
)
private
Integer
stateAreaId
;
@Schema
(
description
=
"家庭住址-所在市地区ID"
)
private
Integer
cityAreaId
;
@Schema
(
description
=
"家庭住址-所在区地区ID"
)
private
Integer
countyAreaId
;
/**
* 家庭住址-详细地址
*/
...
...
@@ -385,6 +398,14 @@ public class TGzEmpInfo extends BaseEntity {
@ExcelProperty
(
"试用期预计结束日期"
)
@Schema
(
description
=
"试用期预计结束日期"
)
private
Date
prcExpDt
;
/**
* 合同签署主体(系统固定传 V59)
*/
@ExcelAttribute
(
name
=
"合同签署主体"
,
maxLength
=
30
)
@Length
(
max
=
30
,
message
=
"合同签署主体不能超过30个字符"
)
@ExcelProperty
(
"合同签署主体"
)
@Schema
(
description
=
"合同签署主体"
)
private
String
neeProviderId
;
/**
* 合同工作地
*/
...
...
@@ -433,6 +454,16 @@ public class TGzEmpInfo extends BaseEntity {
@ExcelProperty
(
"户口-所在区编码"
)
@Schema
(
description
=
"户口-所在区编码"
)
private
String
hukouCounty
;
@Schema
(
description
=
"户口-所在省地区ID"
)
private
Integer
hukouProvinceAreaId
;
@Schema
(
description
=
"户口-所在市地区ID"
)
private
Integer
hukouCityAreaId
;
@Schema
(
description
=
"户口-所在区地区ID"
)
private
Integer
hukouCountyAreaId
;
/**
* 户口地址
*/
...
...
@@ -505,6 +536,13 @@ public class TGzEmpInfo extends BaseEntity {
@ExcelProperty
(
"开户行所在市"
)
@Schema
(
description
=
"开户行所在市"
)
private
String
accountCity
;
@Schema
(
description
=
"开户行所在省地区ID"
)
private
Integer
accountProvinceAreaId
;
@Schema
(
description
=
"开户行所在市地区ID"
)
private
Integer
accountCityAreaId
;
/**
* 账号ID
*/
...
...
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/vo/TEmployeeContractPreVo.java
View file @
501c23f0
...
...
@@ -142,12 +142,12 @@ public class TEmployeeContractPreVo extends RowIndex implements Serializable {
@ExcelProperty
(
"前端客服登录名"
)
private
String
customerUserLoginname
;
/**
* 签署方式
0线下签1
电子签
* 签署方式
1线下签0
电子签
*/
@Length
(
max
=
1
,
message
=
"签署方式
0线下签1
电子签 不能超过1 个字符"
)
@ExcelAttribute
(
name
=
"签署方式
0线下签1
电子签"
,
maxLength
=
1
)
@Schema
(
description
=
"签署方式
0线下签1
电子签"
)
@ExcelProperty
(
"签署方式
0线下签1
电子签"
)
@Length
(
max
=
1
,
message
=
"签署方式
1线下签0
电子签 不能超过1 个字符"
)
@ExcelAttribute
(
name
=
"签署方式
1线下签0
电子签"
,
maxLength
=
1
)
@Schema
(
description
=
"签署方式
1线下签0
电子签"
)
@ExcelProperty
(
"签署方式
1线下签0
电子签"
)
private
String
signType
;
/**
* 法大大模版名称
...
...
@@ -326,6 +326,22 @@ public class TEmployeeContractPreVo extends RowIndex implements Serializable {
@Schema
(
description
=
"计时工资 工资标准 元/月 "
)
@ExcelProperty
(
"计时工资 工资标准 元/月 "
)
private
BigDecimal
salaryStandardPerHour
;
/**
* 入职确认选择 0 配置方案内选择、1 自定义 2 配置方案+自定义
*/
@ExcelAttribute
(
name
=
"入职确认选择"
,
maxLength
=
1
)
@Length
(
max
=
1
,
message
=
"入职确认选择不能超过1个字符"
)
@ExcelProperty
(
"入职确认选择"
)
@Schema
(
description
=
"入职确认选择 0 配置方案内选择、1 自定义 2 配置方案+自定义"
)
private
String
confirmEmpSelect
;
/**
* 超时未确认是否触发签署任务(电子签) 0 自动触发 1 不触发
*/
@ExcelAttribute
(
name
=
"超时未确认是否触发签署任务(电子签)"
,
maxLength
=
1
)
@Length
(
max
=
1
,
message
=
"超时未确认是否触发签署任务(电子签)不能超过1个字符"
)
@ExcelProperty
(
"超时未确认是否触发签署任务(电子签)"
)
@Schema
(
description
=
"超时未确认是否触发签署任务(电子签) 0 自动触发 1 不触发"
)
private
String
timeoutElecSign
;
/**
* 计件工资 工资标准单价/元
*/
...
...
@@ -531,12 +547,16 @@ public class TEmployeeContractPreVo extends RowIndex implements Serializable {
/**
* 工作地点
*/
@Length
(
max
=
200
,
message
=
"工作地点 不能超过200 个字符"
)
@ExcelAttribute
(
name
=
"工作地点"
,
maxLength
=
200
)
@Schema
(
description
=
"工作地点"
)
@ExcelProperty
(
"工作地点"
)
private
String
workAddress
;
@ExcelAttribute
(
name
=
"合同截止日期类型"
)
@Schema
(
description
=
"合同截止日期类型"
)
@ExcelProperty
(
"合同截止日期类型"
)
private
String
contractEndType
;
/**
* 入职确认信息id
*/
...
...
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/vo/TGzEmpInfoSearchVo.java
View file @
501c23f0
...
...
@@ -16,10 +16,12 @@
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
vo
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.*
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TGzEmpInfo
;
import
lombok.Data
;
import
java.util.List
;
/**
* 瓜子档案表
*
...
...
@@ -46,4 +48,34 @@ public class TGzEmpInfoSearchVo extends TGzEmpInfo {
**/
private
int
limitEnd
;
/**
* 紧急联系人列表
*/
private
List
<
TGzEmpContactInfo
>
emergContactList
;
/**
* 教育经历列表
*/
private
List
<
TGzEmpEducation
>
eduExpList
;
/**
* 家庭成员列表
*/
private
List
<
TGzEmpFamily
>
familyList
;
/**
* 工作经历列表
*/
private
List
<
TGzEmpWork
>
workExpList
;
/**
* 技能证书列表
*/
private
List
<
TGzEmpSkill
>
skillList
;
/**
* 附件列表
*/
private
List
<
TAttaInfo
>
attaList
;
}
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/vo/TGzOfferInfoExportDetailVo.java
0 → 100644
View file @
501c23f0
/*
* 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
.
vo
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttributeConstants
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
/**
* 导出-瓜子offer信息接收表
*
* @author hgw
* @date 2025-6-17 09:38:47
*/
@Data
public
class
TGzOfferInfoExportDetailVo
implements
Serializable
{
@ExcelProperty
(
"流程ID"
)
private
String
bizId
;
@ExcelProperty
(
"人员类别编码"
)
private
String
empType
;
@ExcelProperty
(
"人员类别名称"
)
private
String
empTypeDescr
;
/**
* 外签类型:A: 洼地外签/ B:属地外签
*/
@ExcelAttribute
(
name
=
"外签类型"
,
isDataId
=
true
,
dataType
=
ExcelAttributeConstants
.
GZ_OUT_SGIN_TYPE
)
@ExcelProperty
(
"外签类型"
)
private
String
outSginType
;
/**
* 合同公司主体:公司信息表
*/
@ExcelProperty
(
"合同公司主体"
)
private
String
com
ра
n
у
;
@ExcelProperty
(
"姓名"
)
private
String
name
;
@ExcelProperty
(
"姓名拼音"
)
private
String
nameAc
;
@ExcelProperty
(
"姓氏拼音"
)
private
String
lastNameAc
;
@ExcelProperty
(
"名字拼音"
)
private
String
firstNameAc
;
@ExcelProperty
(
"国籍编码"
)
private
String
country
;
@ExcelProperty
(
"国籍描述"
)
private
String
countryDescr
;
@ExcelProperty
(
"证件类型编码"
)
private
String
nationalIdType
;
@ExcelProperty
(
"证件类型描述"
)
private
String
nationalIdTypeDescr
;
@ExcelProperty
(
"证件号码"
)
private
String
nationalId
;
@ExcelAttribute
(
name
=
"性别"
,
isDataId
=
true
,
dataType
=
ExcelAttributeConstants
.
GZ_SEX
)
@ExcelProperty
(
"性别"
)
private
String
sex
;
@ExcelProperty
(
"个人手机号"
)
private
String
phone
;
@ExcelProperty
(
"个人邮箱"
)
private
String
email
;
@ExcelProperty
(
"直接上级姓名"
)
private
String
supervisorName
;
@ExcelProperty
(
"职务描述"
)
private
String
jobcodeDescr
;
@ExcelProperty
(
"工作地点"
)
private
String
workLocation
;
@ExcelProperty
(
"工作地点描述"
)
private
String
workLocationDescr
;
@ExcelProperty
(
"预计入职日期"
)
private
String
expEntryDate
;
@ExcelProperty
(
"部门名称"
)
private
String
deptName
;
/**
* 基本工资,两位小数
*/
@ExcelProperty
(
"基本工资"
)
private
BigDecimal
basePay
;
/**
* 绩效工资,两位小数
*/
@ExcelProperty
(
"绩效工资"
)
private
BigDecimal
perfomPay
;
@ExcelProperty
(
"年终奖月数"
)
private
Integer
yearBonusMonth
;
@ExcelProperty
(
"社保缴纳地编码"
)
private
String
socialInsuranceLocation
;
@ExcelProperty
(
"社保缴纳地"
)
private
String
socialInsuranceLocationDescr
;
@ExcelProperty
(
"社保基数"
)
private
BigDecimal
socialInsuranceBase
;
@ExcelProperty
(
"公积金基数"
)
private
BigDecimal
houseAccFundBaseMax
;
/**
* 是否转正后缴纳公积金(Y:是 N:否)
*/
@ExcelAttribute
(
name
=
"是否转正后缴纳公积金"
,
isDataId
=
true
,
readConverterExp
=
"Y=是,N=否"
)
@ExcelProperty
(
"是否转正后缴纳公积金"
)
private
String
beRegularEmpPay
;
@ExcelProperty
(
"申请人邮箱"
)
private
String
applyUserEmail
;
@ExcelProperty
(
"接收瓜子Offer时间"
)
private
String
createTime
;
@ExcelAttribute
(
name
=
"Offer短信通知状态"
,
isDataId
=
true
,
readConverterExp
=
"0=已发送,1=未发送"
)
@ExcelProperty
(
"Offer短信通知状态"
)
private
String
offerSendStatus
;
@ExcelAttribute
(
name
=
"Offer短信通知状态"
,
isDataId
=
true
,
readConverterExp
=
"3=待发送Offer,4=待接受Offer,5=拒绝Offer,7=接受offer,9=候选人填写信息,10=取消offer,12=候选人信息审核,13=待签署,8=合同审核通过,99=已归档,98=信息待收集,97=候选人审核通过"
)
@ExcelProperty
(
"Offer状态"
)
private
String
offerStatus
;
}
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/vo/TGzOfferInfoExportMainVo.java
0 → 100644
View file @
501c23f0
/*
* 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
.
vo
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.LocalDateTimeUtils
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* 导出-瓜子offer信息接收表
*
* @author hgw
* @date 2025-6-17 09:38:47
*/
@Data
public
class
TGzOfferInfoExportMainVo
implements
Serializable
{
@ExcelProperty
(
"流程ID"
)
private
String
bizId
;
@ExcelProperty
(
"姓名"
)
private
String
name
;
@ExcelProperty
(
"证件号码"
)
private
String
nationalId
;
@ExcelProperty
(
"个人手机号"
)
private
String
phone
;
@ExcelProperty
(
"职务描述"
)
private
String
jobcodeDescr
;
@ExcelProperty
(
"预计入职日期"
)
private
String
expEntryDate
;
@ExcelProperty
(
"接收瓜子Offer时间"
)
private
String
createTime
;
@ExcelAttribute
(
name
=
"Offer短信通知状态"
,
isDataId
=
true
,
readConverterExp
=
"0=已发送,1=未发送"
)
@ExcelProperty
(
"Offer短信通知状态"
)
private
String
offerSendStatus
;
@ExcelAttribute
(
name
=
"Offer短信通知状态"
,
isDataId
=
true
,
readConverterExp
=
"3=待发送Offer,4=待接受Offer,5=拒绝Offer,7=接受offer,9=候选人填写信息,10=取消offer,12=候选人信息审核,13=待签署,8=合同审核通过,99=已归档,98=信息待收集,97=候选人审核通过"
)
@ExcelProperty
(
"Offer状态"
)
private
String
offerStatus
;
}
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/vo/TGzOfferInfoExportSearchVo.java
0 → 100644
View file @
501c23f0
/*
* 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
.
vo
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TGzOfferInfo
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
java.time.LocalDate
;
/**
* 瓜子offer信息接收表——导出查询vo,主要加limit参数
*
* @author hgw
* @date 2025-6-17 10:00:43
*/
@Data
public
class
TGzOfferInfoExportSearchVo
extends
TGzOfferInfo
{
private
LocalDate
createTimeStart
;
private
LocalDate
createTimeEnd
;
@TableField
(
exist
=
false
)
@Schema
(
description
=
"id集合"
)
private
String
[]
idList
;
@TableField
(
exist
=
false
)
@Schema
(
description
=
"查询起"
)
private
int
limitStart
;
@TableField
(
exist
=
false
)
@Schema
(
description
=
"查询止"
)
private
int
limitEnd
;
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/controller/TGzEmpInfoController.java
View file @
501c23f0
...
...
@@ -25,6 +25,7 @@ import com.yifu.cloud.plus.v1.yifu.archives.entity.TGzEmpInfo;
import
com.yifu.cloud.plus.v1.yifu.archives.service.TGzEmpInfoService
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.TGzEmpInfoSearchVo
;
import
lombok.extern.log4j.Log4j2
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
io.swagger.v3.oas.annotations.Operation
;
import
io.swagger.v3.oas.annotations.tags.Tag
;
...
...
@@ -76,6 +77,18 @@ public class TGzEmpInfoController {
return
R
.
ok
(
tGzEmpInfoService
.
noPageDiy
(
tGzEmpInfo
));
}
/**
* 通过OfferId查询瓜子档案详情
*
* @param offerId OfferId
* @return R
*/
@Operation
(
summary
=
"通过OfferId查询瓜子档案详情"
)
@GetMapping
(
"/getInfoByOfferId"
)
public
R
<
TGzEmpInfoSearchVo
>
getInfoByOfferId
(
@Param
(
"offerId"
)
Integer
offerId
)
{
return
tGzEmpInfoService
.
getInfoByOfferId
(
offerId
);
}
/**
* 通过id查询瓜子档案表
*
...
...
@@ -135,8 +148,6 @@ public class TGzEmpInfoController {
/**
* 瓜子档案表 批量导出
*
* @author chenyx
* @date 2025-06-13 15:19:03
**/
@Operation
(
description
=
"导出瓜子档案表 hasPermission('archives_tgzempinfo-export')"
)
@PostMapping
(
"/export"
)
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/controller/TGzOfferInfoController.java
View file @
501c23f0
...
...
@@ -19,20 +19,24 @@ 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.TGzOfferInfo
;
import
com.yifu.cloud.plus.v1.yifu.archives.service.TGzOfferInfoService
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.TGzOfferInfoExportSearchVo
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.TGzOfferInfoVo
;
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
com.yifu.cloud.plus.v1.yifu.archives.entity.TGzOfferInfo
;
import
com.yifu.cloud.plus.v1.yifu.archives.service.TGzOfferInfoService
;
import
lombok.SneakyThrows
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
io.swagger.v3.oas.annotations.Operation
;
import
io.swagger.v3.oas.annotations.tags.Tag
;
import
lombok.RequiredArgsConstructor
;
import
lombok.SneakyThrows
;
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.ArrayList
;
import
java.util.List
;
...
...
@@ -63,6 +67,33 @@ public class TGzOfferInfoController {
return
new
R
<>(
tGzOfferInfoService
.
getTGzOfferInfoPage
(
page
,
tGzOfferInfo
));
}
/**
* 仅返回指定条数的列表数据
* @param tGzOfferInfo 瓜子offer信息接收表
* @return R<List<TGzOfferInfoVo>>
*/
@Operation
(
description
=
"仅返回指定条数的列表数据"
)
@GetMapping
(
"/list"
)
public
R
<
List
<
TGzOfferInfoVo
>>
getTGzOfferInfoList
(
TGzOfferInfoVo
tGzOfferInfo
)
{
if
(
Common
.
isEmpty
(
tGzOfferInfo
.
getOfferStatus
())){
return
new
R
<>(
new
ArrayList
<>());
}
return
new
R
<>(
tGzOfferInfoService
.
getTGzOfferInfoList
(
tGzOfferInfo
));
}
/**
* 符合查询条件的数量
* @param tGzOfferInfo 瓜子offer信息接收表
* @return R<Integer>
*/
@Operation
(
description
=
"符合查询条件的数量"
)
@GetMapping
(
"/count"
)
public
R
<
Integer
>
getTGzOfferInfoCount
(
TGzOfferInfoVo
tGzOfferInfo
)
{
if
(
Common
.
isEmpty
(
tGzOfferInfo
.
getOfferStatus
())){
return
new
R
<>(
0
);
}
return
new
R
<>(
tGzOfferInfoService
.
getTGzOfferInfoCount
(
tGzOfferInfo
));
}
/**
* 通过id查询瓜子offer信息接收表
...
...
@@ -101,6 +132,18 @@ public class TGzOfferInfoController {
return
tGzOfferInfoService
.
updateStatus
(
tGzOfferInfo
);
}
/**
* 瓜子候选人信息审核
* @param tGzOfferInfo 瓜子offer信息接收表
* @return R
*/
@Operation
(
summary
=
"瓜子候选人信息审核"
)
@SysLog
(
"瓜子候选人信息审核"
)
@PostMapping
(
"/audit"
)
public
R
<
String
>
offerAudit
(
@RequestBody
TGzOfferInfo
tGzOfferInfo
)
{
return
tGzOfferInfoService
.
offerAudit
(
tGzOfferInfo
);
}
/**
* 新增瓜子offer信息接收表
* @param tGzOfferInfo 瓜子offer信息接收表
...
...
@@ -136,8 +179,32 @@ public class TGzOfferInfoController {
@Operation
(
summary
=
"单个/批量发送Offer提醒"
,
description
=
"单个/批量发送Offer提醒"
)
@SysLog
(
"单个/批量发送Offer提醒"
)
@PostMapping
(
"/sendOfferAlert"
)
public
R
<
Boolean
>
sendOfferAlert
(
@RequestBody
TGzOfferInfoVo
tGzOfferInfo
)
{
public
R
<
String
>
sendOfferAlert
(
@RequestBody
TGzOfferInfoVo
tGzOfferInfo
)
{
return
tGzOfferInfoService
.
sendOfferAlert
(
tGzOfferInfo
);
}
/**
* 社保导出花名册记录表 批量导出
* @author hgw
* @date 2025-06-16 14:29:13
**/
@SysLog
(
"导出瓜子offer列表"
)
@Operation
(
description
=
"导出瓜子offer列表"
)
@PostMapping
(
"/exportMain"
)
public
void
exportMain
(
HttpServletResponse
response
,
@RequestBody
TGzOfferInfoExportSearchVo
searchVo
)
{
tGzOfferInfoService
.
exportMain
(
response
,
searchVo
);
}
/**
* 社保导出花名册记录表 批量导出
* @author hgw
* @date 2025-06-16 14:29:13
**/
@SysLog
(
"导出瓜子offer详情"
)
@Operation
(
description
=
"导出瓜子offer详情"
)
@PostMapping
(
"/exportDetail"
)
public
void
exportDetail
(
HttpServletResponse
response
,
@RequestBody
TGzOfferInfoExportSearchVo
searchVo
)
{
tGzOfferInfoService
.
exportDetail
(
response
,
searchVo
);
}
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/mapper/TGzOfferInfoMapper.java
View file @
501c23f0
...
...
@@ -21,6 +21,9 @@ 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.TGzOfferInfo
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.TGzOfferInfoExportDetailVo
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.TGzOfferInfoExportMainVo
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.TGzOfferInfoExportSearchVo
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.TGzOfferInfoVo
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
...
...
@@ -48,4 +51,27 @@ public interface TGzOfferInfoMapper extends BaseMapper<TGzOfferInfo> {
* @return IPage<TGzOfferInfoVo>
*/
List
<
TGzOfferInfoVo
>
getTGzOfferInfoSendAlertList
(
@Param
(
"tGzOfferInfo"
)
TGzOfferInfoVo
tGzOfferInfo
);
/**
* 获取指定条数限制的列表
* @param tGzOfferInfo 瓜子offer信息接收表
* @return List<TGzOfferInfoVo>
*/
List
<
TGzOfferInfoVo
>
getTGzOfferInfoListHaveLimit
(
@Param
(
"tGzOfferInfo"
)
TGzOfferInfoVo
tGzOfferInfo
,
@Param
(
"limitCount"
)
Integer
limitCount
);
/**
* 获取指定条数限制的列表
* @param tGzOfferInfo 瓜子offer信息接收表
* @return List<TGzOfferInfoVo>
*/
Integer
getTGzOfferInfoCount
(
@Param
(
"tGzOfferInfo"
)
TGzOfferInfoVo
tGzOfferInfo
);
int
getTGzOfferCount
(
@Param
(
"tGzOfferInfo"
)
TGzOfferInfoExportSearchVo
tGzOfferInfo
);
List
<
TGzOfferInfoExportMainVo
>
getTGzOfferMainList
(
@Param
(
"tGzOfferInfo"
)
TGzOfferInfoExportSearchVo
tGzOfferInfo
);
List
<
TGzOfferInfoExportDetailVo
>
getTGzOfferDetailList
(
@Param
(
"tGzOfferInfo"
)
TGzOfferInfoExportSearchVo
tGzOfferInfo
);
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/TGzEmpInfoService.java
View file @
501c23f0
...
...
@@ -47,4 +47,12 @@ public interface TGzEmpInfoService extends IService<TGzEmpInfo> {
void
listExport
(
HttpServletResponse
response
,
TGzEmpInfoSearchVo
searchVo
);
List
<
TGzEmpInfo
>
noPageDiy
(
TGzEmpInfoSearchVo
searchVo
);
/**
* 通过OfferId查询瓜子档案详情
*
* @param offerId OfferId
* @return R
*/
R
<
TGzEmpInfoSearchVo
>
getInfoByOfferId
(
Integer
offerId
);
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/TGzOfferInfoService.java
View file @
501c23f0
...
...
@@ -21,10 +21,13 @@ 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.TGzOfferInfo
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.TGzOfferInfoExportSearchVo
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.TGzOfferInfoVo
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.TGzOfferInfoVo
;
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
;
...
...
@@ -35,17 +38,35 @@ import java.util.List;
* @date 2025-06-11 15:58:37
*/
public
interface
TGzOfferInfoService
extends
IService
<
TGzOfferInfo
>
{
/**
* 瓜子offer信息接收表简单分页查询
* @param tGzOfferInfo 瓜子offer信息接收表
* @return
*/
IPage
<
TGzOfferInfoVo
>
getTGzOfferInfoPage
(
Page
<
TGzOfferInfoVo
>
page
,
TGzOfferInfoVo
tGzOfferInfo
);
/**
* 瓜子offer信息接收表简单分页查询
*
* @param tGzOfferInfo 瓜子offer信息接收表
* @return
*/
IPage
<
TGzOfferInfoVo
>
getTGzOfferInfoPage
(
Page
<
TGzOfferInfoVo
>
page
,
TGzOfferInfoVo
tGzOfferInfo
);
/**
* 仅返回指定条数的列表数据
* @param tGzOfferInfo 瓜子offer信息接收表
* @return R<List<TGzOfferInfoVo>>
*/
List
<
TGzOfferInfoVo
>
getTGzOfferInfoList
(
TGzOfferInfoVo
tGzOfferInfo
);
/**
* 符合查询条件的数量
* @param tGzOfferInfo 瓜子offer信息接收表
* @return R<Integer>
*/
Integer
getTGzOfferInfoCount
(
TGzOfferInfoVo
tGzOfferInfo
);
TGzOfferInfo
getDataById
(
Integer
id
);
/**
* 修改瓜子offer信息
*
* @param tGzOfferInfo 字典
* @return R<String>
*/
...
...
@@ -53,14 +74,46 @@ public interface TGzOfferInfoService extends IService<TGzOfferInfo> {
/**
* 瓜子offer手动状态更新
*
* @param tGzOfferInfo 字典
* @return R<String>
*/
R
<
String
>
updateStatus
(
TGzOfferInfo
tGzOfferInfo
);
/**
* 瓜子候选人信息审核
* @param tGzOfferInfo 字典
* @return R<String>
*/
R
<
String
>
offerAudit
(
TGzOfferInfo
tGzOfferInfo
);
/**
* @Description: 批量导入
* @Author: hgw
* @Date: 2025/6/17 9:32
* @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<java.util.List < com.yifu.cloud.plus.v1.yifu.common.core.util.ErrorMessage>>
**/
R
<
List
<
ErrorMessage
>>
importDiy
(
InputStream
inputStream
);
R
sendOfferAlert
(
TGzOfferInfoVo
tGzOfferInfo
);
R
<
String
>
sendOfferAlert
(
TGzOfferInfoVo
tGzOfferInfo
);
/**
* @Description: 导出列表
* @Author: hgw
* @Date: 2025/6/17 9:33
* @return: void
**/
void
exportMain
(
HttpServletResponse
response
,
TGzOfferInfoExportSearchVo
searchVo
);
/**
* @Description: 导出详情
* @Author: hgw
* @Date: 2025/6/17 9:33
* @return: void
**/
void
exportDetail
(
HttpServletResponse
response
,
TGzOfferInfoExportSearchVo
searchVo
);
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TGzEmpInfoServiceImpl.java
View file @
501c23f0
...
...
@@ -16,12 +16,17 @@
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TGzEmpInfo
;
import
com.yifu.cloud.plus.v1.yifu.archives.mapper.TGzEmpInfoMapper
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.*
;
import
com.yifu.cloud.plus.v1.yifu.archives.mapper.*
;
import
com.yifu.cloud.plus.v1.yifu.archives.service.TAttaInfoService
;
import
com.yifu.cloud.plus.v1.yifu.archives.service.TGzEmpInfoService
;
import
com.yifu.cloud.plus.v1.yifu.archives.service.TGzOfferInfoService
;
import
com.yifu.cloud.plus.v1.yifu.archives.util.IdCardUtil
;
import
lombok.RequiredArgsConstructor
;
import
lombok.extern.log4j.Log4j2
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.ErrorMessage
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
...
...
@@ -29,6 +34,7 @@ import com.yifu.cloud.plus.v1.yifu.archives.vo.TGzEmpInfoSearchVo;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.InputStream
;
import
java.net.URL
;
import
java.util.List
;
import
cn.hutool.core.bean.BeanUtil
;
...
...
@@ -63,6 +69,25 @@ import java.util.ArrayList;
@Service
@RequiredArgsConstructor
public
class
TGzEmpInfoServiceImpl
extends
ServiceImpl
<
TGzEmpInfoMapper
,
TGzEmpInfo
>
implements
TGzEmpInfoService
{
private
final
TGzOfferInfoService
gzOfferInfoService
;
private
final
TGzEmpContactInfoMapper
gzEmpContactInfoMapper
;
private
final
TGzEmpEducationMapper
gzEmpEducationMapper
;
private
final
TGzEmpFamilyMapper
gzEmpFamilyMapper
;
private
final
TGzEmpSkillMapper
gzEmpSkillMapper
;
private
final
TGzEmpWorkMapper
gzEmpWorkMapper
;
private
final
TAttaInfoService
attaInfoService
;
@Autowired
private
OSSUtil
ossUtil
;
/**
* 瓜子档案表简单分页查询
*
...
...
@@ -74,6 +99,115 @@ public class TGzEmpInfoServiceImpl extends ServiceImpl<TGzEmpInfoMapper, TGzEmpI
return
baseMapper
.
getTGzEmpInfoPage
(
page
,
tGzEmpInfo
);
}
/**
* 通过OfferId查询瓜子档案详情
*
* @param offerId OfferId
* @return R
*/
@Override
public
R
<
TGzEmpInfoSearchVo
>
getInfoByOfferId
(
Integer
offerId
)
{
TGzEmpInfoSearchVo
gzEmpInfoVo
=
new
TGzEmpInfoSearchVo
();
TGzOfferInfo
gzOfferInfo
=
gzOfferInfoService
.
getOne
(
Wrappers
.<
TGzOfferInfo
>
query
().
lambda
()
.
eq
(
TGzOfferInfo:
:
getId
,
offerId
)
.
eq
(
TGzOfferInfo:
:
getDelFlag
,
CommonConstants
.
ZERO_STRING
)
.
last
(
CommonConstants
.
LAST_ONE_SQL
));
if
(
Common
.
isEmpty
(
gzOfferInfo
)){
return
R
.
failed
(
"数据异常,禁止操作"
);
}
if
(!
CommonConstants
.
NINE_STRING
.
equals
(
gzOfferInfo
.
getOfferStatus
())){
return
R
.
failed
(
"当前Offer不符合档案采集状态,禁止操作"
);
}
TGzEmpInfo
gzEmpInfo
=
this
.
getOne
(
Wrappers
.<
TGzEmpInfo
>
query
().
lambda
()
.
eq
(
TGzEmpInfo:
:
getOfferId
,
offerId
)
.
eq
(
TGzEmpInfo:
:
getDelFlag
,
CommonConstants
.
ZERO_STRING
)
.
last
(
CommonConstants
.
LAST_ONE_SQL
));
// 还未生成档案,取offer里的信息
if
(
Common
.
isEmpty
(
gzEmpInfo
)){
gzEmpInfoVo
.
setOfferId
(
offerId
);
gzEmpInfoVo
.
setName
(
gzOfferInfo
.
getName
());
gzEmpInfoVo
.
setNameAc
(
gzOfferInfo
.
getNameAc
());
gzEmpInfoVo
.
setNationalIdType
(
gzOfferInfo
.
getNationalIdType
());
gzEmpInfoVo
.
setNationalId
(
gzOfferInfo
.
getNationalId
());
// 根据身份证得出 出生日期和性别
if
(
Common
.
isNotNull
(
gzEmpInfoVo
.
getNationalId
())
&&
gzEmpInfoVo
.
getNationalId
().
length
()
>
14
){
String
idCard
=
gzEmpInfoVo
.
getNationalId
();
gzEmpInfoVo
.
setBirthdate
(
IdCardUtil
.
getBirthdate
(
idCard
));
// 性别: F:女,M:男
if
(
idCard
.
length
()
>
17
)
{
if
(
Integer
.
parseInt
(
idCard
.
substring
(
16
,
17
))
%
2
==
1
)
{
gzEmpInfoVo
.
setSex
(
"M"
);
}
else
{
gzEmpInfoVo
.
setSex
(
"F"
);
}
}
}
gzEmpInfoVo
.
setPhone
(
gzOfferInfo
.
getPhone
());
gzEmpInfoVo
.
setMail
(
gzOfferInfo
.
getEmail
());
// 地址类型: 系统存默认值“现住址”:1A
gzEmpInfoVo
.
setAddressType
(
"1A"
);
}
else
{
BeanUtil
.
copyProperties
(
gzEmpInfo
,
gzEmpInfoVo
);
// 获取瓜子档案附属信息
// 紧急联系人
LambdaQueryWrapper
<
TGzEmpContactInfo
>
queryContactInfo
=
Wrappers
.<
TGzEmpContactInfo
>
lambdaQuery
()
.
eq
(
TGzEmpContactInfo:
:
getEmpId
,
gzEmpInfo
.
getId
())
.
eq
(
TGzEmpContactInfo:
:
getDelFlag
,
CommonConstants
.
ZERO_STRING
)
.
eq
(
TGzEmpContactInfo:
:
getPrimaryNid
,
"Y"
)
.
last
(
" limit 1 "
);
List
<
TGzEmpContactInfo
>
emergContactList
=
gzEmpContactInfoMapper
.
selectList
(
queryContactInfo
);
gzEmpInfoVo
.
setEmergContactList
(
emergContactList
);
// 教育经历
LambdaQueryWrapper
<
TGzEmpEducation
>
queryEduInfo
=
Wrappers
.<
TGzEmpEducation
>
lambdaQuery
()
.
eq
(
TGzEmpEducation:
:
getEmpId
,
gzEmpInfo
.
getId
())
.
eq
(
TGzEmpEducation:
:
getDelFlag
,
CommonConstants
.
ZERO_STRING
)
.
eq
(
TGzEmpEducation:
:
getHighEduQualFlag
,
"Y"
)
.
last
(
" limit 1 "
);
List
<
TGzEmpEducation
>
eduList
=
gzEmpEducationMapper
.
selectList
(
queryEduInfo
);
gzEmpInfoVo
.
setEduExpList
(
eduList
);
// 工作经历列表
LambdaQueryWrapper
<
TGzEmpWork
>
queryWorkInfo
=
Wrappers
.<
TGzEmpWork
>
lambdaQuery
()
.
eq
(
TGzEmpWork:
:
getEmpId
,
gzEmpInfo
.
getId
())
.
eq
(
TGzEmpWork:
:
getDelFlag
,
CommonConstants
.
ZERO_STRING
)
.
orderByAsc
(
TGzEmpWork:
:
getCreateTime
).
orderByAsc
(
TGzEmpWork:
:
getId
);
List
<
TGzEmpWork
>
workList
=
gzEmpWorkMapper
.
selectList
(
queryWorkInfo
);
gzEmpInfoVo
.
setWorkExpList
(
workList
);
// 家庭成员列表
LambdaQueryWrapper
<
TGzEmpFamily
>
queryFamilyInfo
=
Wrappers
.<
TGzEmpFamily
>
lambdaQuery
()
.
eq
(
TGzEmpFamily:
:
getEmpId
,
gzEmpInfo
.
getId
())
.
eq
(
TGzEmpFamily:
:
getDelFlag
,
CommonConstants
.
ZERO_STRING
)
.
orderByAsc
(
TGzEmpFamily:
:
getCreateTime
).
orderByAsc
(
TGzEmpFamily:
:
getId
);
List
<
TGzEmpFamily
>
familyList
=
gzEmpFamilyMapper
.
selectList
(
queryFamilyInfo
);
gzEmpInfoVo
.
setFamilyList
(
familyList
);
// 技能证书列表
LambdaQueryWrapper
<
TGzEmpSkill
>
querySkillInfo
=
Wrappers
.<
TGzEmpSkill
>
lambdaQuery
()
.
eq
(
TGzEmpSkill:
:
getEmpId
,
gzEmpInfo
.
getId
())
.
eq
(
TGzEmpSkill:
:
getDelFlag
,
CommonConstants
.
ZERO_STRING
)
.
orderByAsc
(
TGzEmpSkill:
:
getCreateTime
).
orderByAsc
(
TGzEmpSkill:
:
getId
);
List
<
TGzEmpSkill
>
skillList
=
gzEmpSkillMapper
.
selectList
(
querySkillInfo
);
gzEmpInfoVo
.
setSkillList
(
skillList
);
// 附件
List
<
TAttaInfo
>
attaInfos
=
attaInfoService
.
list
(
Wrappers
.<
TAttaInfo
>
query
().
lambda
().
eq
(
TAttaInfo:
:
getDomainId
,
gzEmpInfo
.
getId
()));
if
(
Common
.
isNotNull
(
attaInfos
))
{
URL
url
;
for
(
TAttaInfo
atta
:
attaInfos
)
{
url
=
ossUtil
.
getObjectUrl
(
null
,
atta
.
getAttaSrc
());
if
(
Common
.
isNotNull
(
url
))
{
atta
.
setAttaUrl
(
url
.
toString
());
}
}
}
gzEmpInfoVo
.
setAttaList
(
attaInfos
);
}
return
R
.
ok
(
gzEmpInfoVo
);
}
/**
* 瓜子档案表批量导出
*
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TGzOfferInfoServiceImpl.java
View file @
501c23f0
...
...
@@ -18,11 +18,15 @@ package com.yifu.cloud.plus.v1.yifu.archives.service.impl;
import
cn.hutool.core.bean.BeanUtil
;
import
com.alibaba.excel.EasyExcel
;
import
com.alibaba.excel.EasyExcelFactory
;
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.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper
;
import
com.alibaba.excel.write.metadata.WriteSheet
;
import
com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
...
...
@@ -41,17 +45,30 @@ import com.yifu.cloud.plus.v1.yifu.common.core.util.*;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.alisms.AliSmsResult
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.alisms.RegistParamVo
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.alisms.YiFuSmsUtil
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.*
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.CacheConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.*
;
import
com.yifu.cloud.plus.v1.yifu.common.core.vo.YifuUser
;
import
com.yifu.cloud.plus.v1.yifu.common.security.util.SecurityUtils
;
import
com.yifu.cloud.plus.v1.yifu.social.entity.TDispatchExportLog
;
import
lombok.RequiredArgsConstructor
;
import
lombok.extern.log4j.Log4j2
;
import
org.apache.commons.lang.ArrayUtils
;
import
org.springframework.stereotype.Service
;
import
javax.servlet.ServletOutputStream
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.lang.reflect.Field
;
import
java.net.URLEncoder
;
import
java.time.LocalDateTime
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
/**
* 瓜子offer信息接收表
...
...
@@ -78,6 +95,28 @@ public class TGzOfferInfoServiceImpl extends ServiceImpl<TGzOfferInfoMapper, TGz
return
baseMapper
.
getTGzOfferInfoPage
(
page
,
tGzOfferInfo
);
}
/**
* 仅返回指定条数的列表数据
*
* @param tGzOfferInfo 瓜子offer信息接收表
* @return R<List < TGzOfferInfoVo>>
*/
@Override
public
List
<
TGzOfferInfoVo
>
getTGzOfferInfoList
(
TGzOfferInfoVo
tGzOfferInfo
)
{
return
baseMapper
.
getTGzOfferInfoListHaveLimit
(
tGzOfferInfo
,
2000
);
}
/**
* 符合查询条件的数量
*
* @param tGzOfferInfo 瓜子offer信息接收表
* @return R<Integer>
*/
@Override
public
Integer
getTGzOfferInfoCount
(
TGzOfferInfoVo
tGzOfferInfo
)
{
return
baseMapper
.
getTGzOfferInfoCount
(
tGzOfferInfo
);
}
@Override
public
TGzOfferInfo
getDataById
(
Integer
id
)
{
return
this
.
getInfoCommon
(
id
);
...
...
@@ -96,7 +135,7 @@ public class TGzOfferInfoServiceImpl extends ServiceImpl<TGzOfferInfoMapper, TGz
return
R
.
failed
(
CommonConstants
.
PLEASE_LOG_IN
);
}
TGzOfferInfo
findInfo
=
this
.
getInfoCommon
(
tGzOfferInfo
.
getId
());
if
(
Common
.
isEmpty
(
findInfo
)){
if
(
Common
.
isEmpty
(
findInfo
))
{
return
R
.
failed
(
CommonConstants
.
ERROR_NO_DOMAIN
);
}
...
...
@@ -121,28 +160,28 @@ public class TGzOfferInfoServiceImpl extends ServiceImpl<TGzOfferInfoMapper, TGz
if
(
user
==
null
||
Common
.
isEmpty
(
user
.
getId
()))
{
return
R
.
failed
(
CommonConstants
.
PLEASE_LOG_IN
);
}
if
(
Common
.
isEmpty
(
tGzOfferInfo
.
getId
()))
{
if
(
Common
.
isEmpty
(
tGzOfferInfo
.
getId
()))
{
return
R
.
failed
(
CommonConstants
.
PARAM_IS_NOT_EMPTY
);
}
if
(
Common
.
isEmpty
(
tGzOfferInfo
.
getOfferStatus
()))
{
if
(
Common
.
isEmpty
(
tGzOfferInfo
.
getOfferStatus
()))
{
return
R
.
failed
(
"更新状态不能为空"
);
}
TGzOfferInfo
findInfo
=
this
.
getInfoCommon
(
tGzOfferInfo
.
getId
());
if
(
Common
.
isEmpty
(
findInfo
)){
if
(
Common
.
isEmpty
(
findInfo
))
{
return
R
.
failed
(
CommonConstants
.
ERROR_NO_DOMAIN
);
}
// 更新为同一状态的提示操作失败
if
(
findInfo
.
getOfferStatus
().
equals
(
tGzOfferInfo
.
getOfferStatus
()))
{
if
(
findInfo
.
getOfferStatus
().
equals
(
tGzOfferInfo
.
getOfferStatus
()))
{
return
R
.
failed
(
"当前Offer更新状态失败,请刷新页面后重试"
);
}
// 当前Offer更新状态,无法再发起更新:5:拒绝Offer、10:取消offer、8:合同审核通过、99:已归档
String
[]
forbidStatusArr
=
{
"5"
,
"10"
,
"8"
,
"99"
};
String
[]
forbidStatusArr
=
{
"5"
,
"10"
,
"8"
,
"99"
};
if
(
ArrayUtils
.
contains
(
forbidStatusArr
,
findInfo
.
getOfferStatus
()))
{
return
R
.
failed
(
"当前Offer更新状态,无法再发起更新"
);
}
// 获取当前状态下,允许更新的状态列表
List
<
String
>
allowUpdateStatusList
=
this
.
allowUpdateStatus
(
findInfo
.
getOfferStatus
());
if
(!
allowUpdateStatusList
.
contains
(
tGzOfferInfo
.
getOfferStatus
()))
{
if
(!
allowUpdateStatusList
.
contains
(
tGzOfferInfo
.
getOfferStatus
()))
{
return
R
.
failed
(
"当前Offer更新状态失败,禁止更新为所选状态,请刷新页面后重试"
);
}
// 更新状态
...
...
@@ -158,37 +197,89 @@ public class TGzOfferInfoServiceImpl extends ServiceImpl<TGzOfferInfoMapper, TGz
return
R
.
ok
(
CommonConstants
.
RESULT_DATA_SUCESS
);
}
/**
* 瓜子候选人信息审核
* @param tGzOfferInfo 字典
* @return R<String>
*/
@Override
public
R
<
String
>
offerAudit
(
TGzOfferInfo
tGzOfferInfo
)
{
YifuUser
user
=
SecurityUtils
.
getUser
();
if
(
user
==
null
||
Common
.
isEmpty
(
user
.
getId
()))
{
return
R
.
failed
(
CommonConstants
.
PLEASE_LOG_IN
);
}
if
(
Common
.
isEmpty
(
tGzOfferInfo
.
getId
())){
return
R
.
failed
(
CommonConstants
.
PARAM_IS_NOT_EMPTY
);
}
if
(
Common
.
isEmpty
(
tGzOfferInfo
.
getOfferStatus
())){
return
R
.
failed
(
"审核结果不能为空"
);
}
TGzOfferInfo
findInfo
=
this
.
getInfoCommon
(
tGzOfferInfo
.
getId
());
if
(
Common
.
isEmpty
(
findInfo
)){
return
R
.
failed
(
CommonConstants
.
ERROR_NO_DOMAIN
);
}
if
(!
CommonConstants
.
TWELVE_STRING
.
equals
(
findInfo
.
getOfferStatus
())){
return
R
.
failed
(
"当前Offer不符合档案审核状态,禁止操作"
);
}
// 允许更新的Offer状态:97:候选人审核通过、9:候选人填写信息
String
[]
allowStatusArr
=
{
"97"
,
"9"
};
if
(!
ArrayUtils
.
contains
(
allowStatusArr
,
tGzOfferInfo
.
getOfferStatus
()))
{
return
R
.
failed
(
"审核结果无效"
);
}
// todo 审核通过执行一下2个事件:
// todo 1、生成人员档案信息、项目档案信息
// todo 2、检查 该项目该人员是否有在途或审核通过或已归档的状态为“可用”的合同,
// 若有则根据当前状态更新Offer状态,合同未审核通过:存【13:待签署】;合同审核通过:存【8:合同审核通过】;合同已归档:存【99:已归档】,
// 存合同信息;
// 更新状态
LambdaUpdateWrapper
<
TGzOfferInfo
>
updateOfferWrapper
=
new
LambdaUpdateWrapper
<>();
updateOfferWrapper
.
eq
(
TGzOfferInfo:
:
getId
,
tGzOfferInfo
.
getId
())
.
set
(
TGzOfferInfo:
:
getOfferStatus
,
tGzOfferInfo
.
getOfferStatus
())
.
set
(
TGzOfferInfo:
:
getUpdateTime
,
LocalDateTime
.
now
())
.
set
(
TGzOfferInfo:
:
getUpdateBy
,
user
.
getId
());
this
.
update
(
null
,
updateOfferWrapper
);
// todo 记录offer操作日志
return
R
.
ok
(
CommonConstants
.
RESULT_DATA_SUCESS
);
}
/**
* 获取当前状态下,允许更新的状态列表
*
* @param orgStatus 当前状态
* @return List<String> 允许更新的状态列表
*/
private
List
<
String
>
allowUpdateStatus
(
String
orgStatus
){
private
List
<
String
>
allowUpdateStatus
(
String
orgStatus
)
{
List
<
String
>
allowUpdateStatusList
=
new
ArrayList
<>();
// 3:待发送Offer
if
(
CommonConstants
.
THREE_STRING
.
equals
(
orgStatus
))
{
if
(
CommonConstants
.
THREE_STRING
.
equals
(
orgStatus
))
{
// 可更新为:4:待接受Offer、10:取消offer
allowUpdateStatusList
.
add
(
CommonConstants
.
FOUR_STRING
);
allowUpdateStatusList
.
add
(
CommonConstants
.
TEN_STRING
);
}
// 4:待接受Offer
if
(
CommonConstants
.
FOUR_STRING
.
equals
(
orgStatus
))
{
if
(
CommonConstants
.
FOUR_STRING
.
equals
(
orgStatus
))
{
// 可更新为:5:拒绝Offer、7:接受offer、10:取消offer
allowUpdateStatusList
.
add
(
CommonConstants
.
FIVE_STRING
);
allowUpdateStatusList
.
add
(
CommonConstants
.
SEVEN_STRING
);
allowUpdateStatusList
.
add
(
CommonConstants
.
TEN_STRING
);
}
// 7:接受Offer
if
(
CommonConstants
.
SEVEN_STRING
.
equals
(
orgStatus
))
{
if
(
CommonConstants
.
SEVEN_STRING
.
equals
(
orgStatus
))
{
// 可更新为:98:信息待收集、10:取消offer
allowUpdateStatusList
.
add
(
"98"
);
allowUpdateStatusList
.
add
(
CommonConstants
.
TEN_STRING
);
}
// 98:信息待收集、9:候选人填写信息、12:候选人信息审核、97:候选人审核通过、13:待签署
if
(
"98"
.
equals
(
orgStatus
)
||
CommonConstants
.
NINE_STRING
.
equals
(
orgStatus
)
if
(
"98"
.
equals
(
orgStatus
)
||
CommonConstants
.
NINE_STRING
.
equals
(
orgStatus
)
||
CommonConstants
.
TWELVE_STRING
.
equals
(
orgStatus
)
||
"97"
.
equals
(
orgStatus
)
||
CommonConstants
.
THIRTEEN_STRING
.
equals
(
orgStatus
)){
||
CommonConstants
.
THIRTEEN_STRING
.
equals
(
orgStatus
))
{
// 可更新为:10:取消offer
allowUpdateStatusList
.
add
(
CommonConstants
.
TEN_STRING
);
}
...
...
@@ -196,7 +287,7 @@ public class TGzOfferInfoServiceImpl extends ServiceImpl<TGzOfferInfoMapper, TGz
return
allowUpdateStatusList
;
}
private
TGzOfferInfo
getInfoCommon
(
Integer
id
){
private
TGzOfferInfo
getInfoCommon
(
Integer
id
)
{
return
this
.
getOne
(
Wrappers
.<
TGzOfferInfo
>
query
().
lambda
()
.
eq
(
TGzOfferInfo:
:
getId
,
id
)
.
eq
(
TGzOfferInfo:
:
getDelFlag
,
CommonConstants
.
ZERO_STRING
)
...
...
@@ -226,11 +317,11 @@ public class TGzOfferInfoServiceImpl extends ServiceImpl<TGzOfferInfoMapper, TGz
public
void
invoke
(
TGzOfferInfoImportVo
data
,
AnalysisContext
context
)
{
ReadRowHolder
readRowHolder
=
context
.
readRowHolder
();
Integer
rowIndex
=
readRowHolder
.
getRowIndex
();
data
.
setRowIndex
(
rowIndex
+
1
);
data
.
setRowIndex
(
rowIndex
+
1
);
ErrorMessage
errorMessage
=
util1
.
checkEntity
(
data
,
data
.
getRowIndex
());
if
(
Common
.
isNotNull
(
errorMessage
)){
if
(
Common
.
isNotNull
(
errorMessage
))
{
errorMessageList
.
add
(
errorMessage
);
}
else
{
}
else
{
cachedDataList
.
add
(
data
);
}
if
(
cachedDataList
.
size
()
>=
BATCH_COUNT
)
{
...
...
@@ -239,6 +330,7 @@ public class TGzOfferInfoServiceImpl extends ServiceImpl<TGzOfferInfoMapper, TGz
cachedDataList
=
ListUtils
.
newArrayListWithExpectedSize
(
BATCH_COUNT
);
}
}
@Override
public
void
doAfterAllAnalysed
(
AnalysisContext
context
)
{
saveData
();
...
...
@@ -249,19 +341,20 @@ public class TGzOfferInfoServiceImpl extends ServiceImpl<TGzOfferInfoMapper, TGz
*/
private
void
saveData
()
{
log
.
info
(
"{}条数据,开始存储数据库!"
,
cachedDataList
.
size
());
importTDispatchExportLog
(
cachedDataList
,
errorMessageList
);
importTDispatchExportLog
(
cachedDataList
,
errorMessageList
);
log
.
info
(
"存储数据库成功!"
);
}
}).
sheet
().
doRead
();
}
catch
(
Exception
e
)
{
log
.
error
(
CommonConstants
.
IMPORT_DATA_ANALYSIS_ERROR
,
e
);
}
catch
(
Exception
e
)
{
log
.
error
(
CommonConstants
.
IMPORT_DATA_ANALYSIS_ERROR
,
e
);
return
R
.
failed
(
CommonConstants
.
IMPORT_DATA_ANALYSIS_ERROR
);
}
return
R
.
ok
(
errorMessageList
);
return
R
.
ok
(
errorMessageList
);
}
@Override
public
R
sendOfferAlert
(
TGzOfferInfoVo
tGzOfferInfo
)
{
public
R
<
String
>
sendOfferAlert
(
TGzOfferInfoVo
tGzOfferInfo
)
{
//获取所有满足条件的未发送offer提醒的数据
if
(
Common
.
isNotNull
(
tGzOfferInfo
))
{
tGzOfferInfo
.
setOfferStatus
(
CommonConstants
.
FOUR_STRING
);
...
...
@@ -348,6 +441,7 @@ public class TGzOfferInfoServiceImpl extends ServiceImpl<TGzOfferInfoMapper, TGz
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
CommonConstants
.
SAVE_SUCCESS
));
}
}
/**
* 插入excel bad record
*/
...
...
@@ -357,4 +451,173 @@ public class TGzOfferInfoServiceImpl extends ServiceImpl<TGzOfferInfoMapper, TGz
this
.
save
(
insert
);
}
/**
* 导出瓜子OFFER
*
* @return
*/
@Override
public
void
exportMain
(
HttpServletResponse
response
,
TGzOfferInfoExportSearchVo
searchVo
)
{
String
prfName
=
"瓜子OFFER信息"
;
String
fileName
=
prfName
+
DateUtil
.
getThisTime
()
+
".xlsx"
;
//获取要导出的列表
List
<
TGzOfferInfoExportMainVo
>
list
=
new
ArrayList
<>();
long
count
=
baseMapper
.
getTGzOfferCount
(
searchVo
);
ServletOutputStream
out
=
null
;
try
{
out
=
response
.
getOutputStream
();
response
.
setContentType
(
CommonConstants
.
MULTIPART_FORM_DATA
);
response
.
setCharacterEncoding
(
"utf-8"
);
response
.
setHeader
(
CommonConstants
.
CONTENT_DISPOSITION
,
CommonConstants
.
ATTACHMENT_FILENAME
+
URLEncoder
.
encode
(
fileName
,
CommonConstants
.
UTF8
));
Map
<
String
,
String
>
redisLabelMap
=
(
Map
<
String
,
String
>)
RedisUtil
.
redis
.
opsForValue
().
get
(
CacheConstants
.
REDIS_DICT_LABLE
);
Map
<
String
,
String
>
nameAndDicTypeMap
=
getConverterDicTypeAndArea
(
TGzOfferInfoExportMainVo
.
class
,
redisLabelMap
);
ExcelWriter
excelWriter
=
EasyExcelFactory
.
write
(
out
,
TGzOfferInfoExportMainVo
.
class
).
registerConverter
(
new
DictConverter
(
nameAndDicTypeMap
,
redisLabelMap
)).
build
();
int
index
=
0
;
if
(
count
>
CommonConstants
.
ZERO_INT
)
{
for
(
int
i
=
0
;
i
<=
count
;
i
+=
CommonConstants
.
EXCEL_EXPORT_LIMIT
){
// 获取实际记录
searchVo
.
setLimitStart
(
i
);
searchVo
.
setLimitEnd
(
CommonConstants
.
EXCEL_EXPORT_LIMIT
);
list
=
baseMapper
.
getTGzOfferMainList
(
searchVo
);
if
(
Common
.
isNotNull
(
list
))
{
ExcelUtil
<
TGzOfferInfoExportMainVo
>
util
=
new
ExcelUtil
<>(
TGzOfferInfoExportMainVo
.
class
);
for
(
TGzOfferInfoExportMainVo
vo
:
list
)
{
util
.
convertEntity
(
vo
,
null
,
null
,
null
);
}
}
if
(
Common
.
isNotNull
(
list
))
{
WriteSheet
writeSheet
=
EasyExcelFactory
.
writerSheet
(
prfName
+
index
).
build
();
excelWriter
.
write
(
list
,
writeSheet
);
index
++;
}
if
(
Common
.
isNotNull
(
list
))
{
list
.
clear
();
}
}
}
else
{
WriteSheet
writeSheet
=
EasyExcelFactory
.
writerSheet
(
prfName
+
index
).
build
();
excelWriter
.
write
(
list
,
writeSheet
);
}
if
(
Common
.
isNotNull
(
list
))
{
list
.
clear
();
}
out
.
flush
();
excelWriter
.
finish
();
}
catch
(
Exception
e
)
{
log
.
error
(
"执行异常"
,
e
);
}
finally
{
try
{
if
(
null
!=
out
)
{
out
.
close
();
}
}
catch
(
IOException
e
)
{
log
.
error
(
"执行异常"
,
e
);
}
}
}
/**
* 导出瓜子OFFER详情
*
* @return
*/
@Override
public
void
exportDetail
(
HttpServletResponse
response
,
TGzOfferInfoExportSearchVo
searchVo
)
{
String
prfName
=
"瓜子OFFER详情信息"
;
String
fileName
=
prfName
+
DateUtil
.
getThisTime
()
+
".xlsx"
;
//获取要导出的列表
List
<
TGzOfferInfoExportDetailVo
>
list
=
new
ArrayList
<>();
long
count
=
baseMapper
.
getTGzOfferCount
(
searchVo
);
ServletOutputStream
out
=
null
;
try
{
out
=
response
.
getOutputStream
();
response
.
setContentType
(
CommonConstants
.
MULTIPART_FORM_DATA
);
response
.
setCharacterEncoding
(
"utf-8"
);
response
.
setHeader
(
CommonConstants
.
CONTENT_DISPOSITION
,
CommonConstants
.
ATTACHMENT_FILENAME
+
URLEncoder
.
encode
(
fileName
,
CommonConstants
.
UTF8
));
// 这是获取所有字典的值
Map
<
String
,
String
>
redisLabelMap
=
(
Map
<
String
,
String
>)
RedisUtil
.
redis
.
opsForValue
().
get
(
CacheConstants
.
REDIS_DICT_LABLE
);
Map
<
String
,
String
>
nameAndDicTypeMap
=
getConverterDicTypeAndArea
(
TGzOfferInfoExportDetailVo
.
class
,
redisLabelMap
);
ExcelWriter
excelWriter
=
EasyExcelFactory
.
write
(
out
,
TGzOfferInfoExportDetailVo
.
class
).
registerConverter
(
new
DictConverter
(
nameAndDicTypeMap
,
redisLabelMap
)).
build
();
int
index
=
0
;
if
(
count
>
CommonConstants
.
ZERO_INT
)
{
for
(
int
i
=
0
;
i
<=
count
;
i
+=
CommonConstants
.
EXCEL_EXPORT_LIMIT
){
// 获取实际记录
searchVo
.
setLimitStart
(
i
);
searchVo
.
setLimitEnd
(
CommonConstants
.
EXCEL_EXPORT_LIMIT
);
list
=
baseMapper
.
getTGzOfferDetailList
(
searchVo
);
if
(
Common
.
isNotNull
(
list
))
{
WriteSheet
writeSheet
=
EasyExcelFactory
.
writerSheet
(
prfName
+
index
).
build
();
excelWriter
.
write
(
list
,
writeSheet
);
index
++;
}
if
(
Common
.
isNotNull
(
list
))
{
list
.
clear
();
}
}
}
else
{
WriteSheet
writeSheet
=
EasyExcelFactory
.
writerSheet
(
prfName
+
index
).
build
();
excelWriter
.
write
(
list
,
writeSheet
);
}
if
(
Common
.
isNotNull
(
list
))
{
list
.
clear
();
}
out
.
flush
();
excelWriter
.
finish
();
}
catch
(
Exception
e
)
{
log
.
error
(
"执行异常"
,
e
);
}
finally
{
try
{
if
(
null
!=
out
)
{
out
.
close
();
}
}
catch
(
IOException
e
)
{
log
.
error
(
"执行异常"
,
e
);
}
}
}
private
Map
<
String
,
String
>
getConverterDicTypeAndArea
(
Class
<?>
clazz
,
Map
<
String
,
String
>
redisLabelMap
)
{
// 得到所有定义字段
Field
[]
allFields
=
clazz
.
getDeclaredFields
();
Map
<
String
,
String
>
nameDicMap
=
new
HashMap
<>();
List
<
Field
>
fields
=
new
ArrayList
<>();
// 将需要字典表头存起来备用,如果没传,则全部翻译
for
(
Field
field
:
allFields
)
{
if
(
field
.
isAnnotationPresent
(
ExcelAttribute
.
class
))
{
fields
.
add
(
field
);
}
}
ExcelAttribute
attr
;
Field
field
;
String
[]
convertSource
;
String
[]
itemArray
;
for
(
int
j
=
0
;
j
<
fields
.
size
();
j
++)
{
field
=
fields
.
get
(
j
);
attr
=
field
.
getAnnotation
(
ExcelAttribute
.
class
);
if
(
Common
.
isNotNull
(
field
)
&&
Common
.
isNotNull
(
attr
)){
if
(
Common
.
isNotNull
(
attr
.
dataType
()))
{
nameDicMap
.
put
(
field
.
getName
(),
attr
.
dataType
());
}
else
if
(
Common
.
isNotNull
(
attr
.
isArea
())
&&
attr
.
isArea
())
{
nameDicMap
.
put
(
field
.
getName
(),
CacheConstants
.
AREA_VALUE_ALL
);
}
else
if
(
Common
.
isNotNull
(
attr
.
readConverterExp
()))
{
convertSource
=
attr
.
readConverterExp
().
split
(
","
);
if
(
Common
.
isNotNull
(
convertSource
))
{
for
(
String
item
:
convertSource
)
{
itemArray
=
item
.
split
(
"="
);
if
(
itemArray
.
length
>
1
)
{
redisLabelMap
.
put
(
field
.
getName
()+
CommonConstants
.
DOWN_LINE_STRING
+
itemArray
[
0
],
itemArray
[
1
]);
}
}
nameDicMap
.
put
(
field
.
getName
(),
field
.
getName
());
}
}
}
}
return
nameDicMap
;
}
}
yifu-archives/yifu-archives-biz/src/main/resources/application.yml
View file @
501c23f0
...
...
@@ -55,6 +55,7 @@ security:
-
/tpreempmain/checkCode
-
/employeeregistrationpre/getEmployeeInfo
-
/employeeregistrationpre/judgeIsSimple
-
/tgzempinfo/getInfoByOfferId
# 文件上传相关 支持阿里云、华为云、腾讯、minio
...
...
yifu-archives/yifu-archives-biz/src/main/resources/mapper/TEmployeeContractPreMapper.xml
View file @
501c23f0
...
...
@@ -71,6 +71,9 @@
<result
property=
"internshipPeriod"
column=
"INTERNSHIP_PERIOD"
/>
<result
property=
"internshipPeriodStart"
column=
"INTERNSHIP_PERIOD_START"
/>
<result
property=
"internshipPeriodEnd"
column=
"INTERNSHIP_PERIOD_END"
/>
<result
property=
"confirmEmpSelect"
column=
"CONFIRM_EMP_SELECT"
/>
<result
property=
"timeoutElecSign"
column=
"TIMEOUT_ELEC_SIGN"
/>
<result
property=
"contractEndType"
column=
"CONTRACT_END_TYPE"
/>
<result
property=
"postType"
column=
"POST_TYPE"
/>
<result
property=
"post"
column=
"POST"
/>
<result
property=
"contractId"
column=
"contract_id"
/>
...
...
@@ -107,6 +110,8 @@
a.situation,
a.contract_duration_year,
a.contract_duration_month,
a.CONFIRM_EMP_SELECT,
a.TIMEOUT_ELEC_SIGN,
a.period_start,
a.period_end,
a.expected_confirm_time,
...
...
@@ -247,7 +252,7 @@
AND a.period_end = #{tEmployeeContractPre.periodEnd}
</if>
<if
test=
"tEmployeeContractPre.expectedConfirmTime != null"
>
AND
a.expected_confirm_time = #{tEmployeeContractPre.expectedConfirmTime}
AND
DATE_FORMAT(a.expected_confirm_time,"%Y-%m-%d") = DATE_FORMAT(#{tEmployeeContractPre.expectedConfirmTime},"%Y-%m-%d")
</if>
<if
test=
"tEmployeeContractPre.configName != null and tEmployeeContractPre.configName.trim() != ''"
>
AND a.config_name = #{tEmployeeContractPre.configName}
...
...
yifu-archives/yifu-archives-biz/src/main/resources/mapper/TGzEmpInfoMapper.xml
View file @
501c23f0
...
...
@@ -73,6 +73,7 @@
<result
property=
"contractEndDt"
column=
"contract_end_dt"
/>
<result
property=
"probationDt"
column=
"probation_dt"
/>
<result
property=
"prcExpDt"
column=
"prc_exp_dt"
/>
<result
property=
"neeProviderId"
column=
"nee_provider_id"
/>
<result
property=
"workLocation"
column=
"work_location"
/>
<result
property=
"contractState"
column=
"contract_state"
/>
<result
property=
"hukouType"
column=
"hukou_type"
/>
...
...
@@ -90,6 +91,15 @@
<result
property=
"accountCity"
column=
"account_city"
/>
<result
property=
"accountEcId"
column=
"account_ec_id"
/>
<result
property=
"accountName"
column=
"account_name"
/>
<result
property=
"nativePlaceAreaId"
column=
"native_place_area_id"
/>
<result
property=
"stateAreaId"
column=
"state_area_id"
/>
<result
property=
"cityAreaId"
column=
"city_area_id"
/>
<result
property=
"countyAreaId"
column=
"county_area_id"
/>
<result
property=
"hukouProvinceAreaId"
column=
"hukou_province_area_id"
/>
<result
property=
"hukouCityAreaId"
column=
"hukou_city_area_id"
/>
<result
property=
"hukouCountyAreaId"
column=
"hukou_county_area_id"
/>
<result
property=
"accountProvinceAreaId"
column=
"account_province_area_id"
/>
<result
property=
"accountCityAreaId"
column=
"account_city_area_id"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
a.id,
...
...
@@ -141,6 +151,7 @@
a.contract_end_dt,
a.probation_dt,
a.prc_exp_dt,
a.nee_provider_id,
a.work_location,
a.contract_state,
a.hukou_type,
...
...
@@ -157,7 +168,16 @@
a.account_province,
a.account_city,
a.account_ec_id,
a.account_name
a.account_name,
a.native_place_area_id,
a.state_area_id,
a.city_area_id,
a.county_area_id,
a.hukou_province_area_id,
a.hukou_city_area_id,
a.hukou_county_area_id,
a.account_province_area_id,
a.account_city_area_id
</sql>
<sql
id=
"tGzEmpInfo_where"
>
<if
test=
"tGzEmpInfo != null"
>
...
...
yifu-archives/yifu-archives-biz/src/main/resources/mapper/TGzOfferInfoMapper.xml
View file @
501c23f0
...
...
@@ -268,6 +268,103 @@
a.del_flag = '0'
<include
refid=
"tGzOfferInfo_where"
/>
</where>
</select>
<!--根据条件获取指定条数限制的列表-->
<select
id=
"getTGzOfferInfoListHaveLimit"
resultMap=
"tGzOfferInfoMap"
>
SELECT
<include
refid=
"Base_Column_List"
/>
FROM t_gz_offer_info a
<where>
a.del_flag = '0'
<include
refid=
"tGzOfferInfo_where"
/>
</where>
ORDER by a.create_time desc,a.id desc limit #{limitCount}
</select>
<!--根据条件获取数量-->
<select
id=
"getTGzOfferInfoCount"
resultType=
"integer"
>
SELECT count(1) FROM t_gz_offer_info a
<where>
a.del_flag = '0'
<include
refid=
"tGzOfferInfo_where"
/>
</where>
</select>
<!--导出先查条数-->
<select
id=
"getTGzOfferCount"
resultType=
"java.lang.Integer"
>
SELECT
count(1)
FROM t_gz_offer_info a
where a.del_flag = '0'
<include
refid=
"tGzOfferInfo_where"
/>
ORDER by a.create_time desc,a.id desc
</select>
<!-- 导出ORRER字段 -->
<sql
id=
"Export_Column_List"
>
a.biz_id,
a.offer_status,
a.offer_send_status,
a.update_by,
a.update_time,
a.emp_type,
a.emp_type_descr,
a.out_sgin_type,
a.comраnу,
a.name,
a.name_ac,
a.last_name_ac,
a.first_name_ac,
a.country,
a.country_descr,
a.national_id_type,
a.national_id_type_descr,
a.national_id,
a.sex,
a.phone,
a.email,
a.supervisor_name,
a.jobcode_descr,
a.work_location,
a.work_location_descr,
date_format(a.exp_entry_date, '%Y-%m-%d') exp_entry_date,
a.dept_name,
a.base_pay,
a.perfom_pay,
a.year_bonus_month,
a.social_insurance_location,
a.social_insurance_location_descr,
a.social_insurance_base,
a.house_acc_fund_base_max,
a.be_regular_emp_pay,
a.apply_user_email,
date_format(a.create_time, '%Y-%m-%d %H:%i:%s') create_time
</sql>
<!--导出主表-->
<select
id=
"getTGzOfferMainList"
resultType=
"com.yifu.cloud.plus.v1.yifu.archives.vo.TGzOfferInfoExportMainVo"
>
SELECT
<include
refid=
"Export_Column_List"
/>
FROM t_gz_offer_info a
where a.del_flag = '0'
<include
refid=
"tGzOfferInfo_where"
/>
ORDER by a.create_time desc,a.id desc
<if
test=
"tGzOfferInfo.limitStart != null"
>
limit #{tGzOfferInfo.limitStart},#{tGzOfferInfo.limitEnd}
</if>
</select>
<!--导出详情-->
<select
id=
"getTGzOfferDetailList"
resultType=
"com.yifu.cloud.plus.v1.yifu.archives.vo.TGzOfferInfoExportDetailVo"
>
SELECT
<include
refid=
"Export_Column_List"
/>
FROM t_gz_offer_info a
where a.del_flag = '0'
<include
refid=
"tGzOfferInfo_where"
/>
ORDER by a.create_time desc,a.id desc
<if
test=
"tGzOfferInfo.limitStart != null"
>
limit #{tGzOfferInfo.limitStart},#{tGzOfferInfo.limitEnd}
</if>
</select>
</mapper>
yifu-common/yifu-common-core/src/main/java/com/yifu/cloud/plus/v1/yifu/common/core/constant/ExcelAttributeConstants.java
View file @
501c23f0
...
...
@@ -165,4 +165,14 @@ public class ExcelAttributeConstants {
//社保派减委托备注
public
static
final
String
TRUST_REMARK_ADD
=
"trustRemark"
;
// 瓜子的人员类别编码
public
static
final
String
GZ_EMP_TYPE
=
"gz_emp_type"
;
// 瓜子的证件类型编码
public
static
final
String
GZ_NATIONAL_ID_TYPE
=
"gz_national_id_type"
;
// 瓜子的国籍
public
static
final
String
GZ_COUNTRY
=
"gz_country"
;
// 瓜子的性别
public
static
final
String
GZ_SEX
=
"gz_sex"
;
// 瓜子的外签类型
public
static
final
String
GZ_OUT_SGIN_TYPE
=
"gz_out_sgin_type"
;
}
yifu-common/yifu-common-dapr/src/main/java/com/yifu/cloud/plus/v1/yifu/common/dapr/util/EkpDaprUtils.java
View file @
501c23f0
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
common
.
dapr
.
util
;
import
com.alibaba.fastjson.JSON
;
import
com.yifu.cloud.plus.v1.ekp.vo.EkpDeptContractInfoVo
;
import
com.yifu.cloud.plus.v1.ekp.vo.EkpIncomePushInfoVo
;
import
com.yifu.cloud.plus.v1.ekp.vo.EkpSocialPushInfoVo
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.SecurityConstants
;
...
...
@@ -113,4 +114,15 @@ public class EkpDaprUtils {
public
R
<
EkpDivisionInfoVo
>
getDivisionUsernameList
(
EkpDivisionInfoVo
divisionInfoVo
)
{
return
HttpDaprUtil
.
invokeMethodPost
(
daprProperties
.
getAppUrl
(),
daprProperties
.
getAppId
(),
"/ekpShenhepeizhi/inner/getDivisionUsernameList"
,
divisionInfoVo
,
EkpDivisionInfoVo
.
class
,
SecurityConstants
.
FROM_IN
);
}
/**
* @Author huyc
* @Description 新增社保明细数据
* @Date 11:48 2025/06/18
* @Param
* @return
**/
public
R
<
EkpDeptContractInfoVo
>
selectContractInfoByDetptNo
(
EkpDeptContractInfoVo
vo
)
{
return
HttpDaprUtil
.
invokeMethodPost
(
daprProperties
.
getAppUrl
(),
daprProperties
.
getAppId
(),
"/ekpSocialPush/inner/selectContractInfoByDetptNo"
,
JSON
.
toJSONString
(
vo
),
EkpDeptContractInfoVo
.
class
,
SecurityConstants
.
FROM_IN
);
}
}
yifu-csp/yifu-csp-biz/src/main/java/com/yifu/cloud/plus/v1/csp/service/impl/EmployeeRegistrationServiceImpl.java
View file @
501c23f0
...
...
@@ -23,6 +23,7 @@ import com.yifu.cloud.plus.v1.csp.service.EmployeeRegistrationService;
import
com.yifu.cloud.plus.v1.csp.service.TAttaInfoService
;
import
com.yifu.cloud.plus.v1.csp.service.TOperationLogService
;
import
com.yifu.cloud.plus.v1.csp.vo.*
;
import
com.yifu.cloud.plus.v1.ekp.vo.EkpDeptContractInfoVo
;
import
com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysUser
;
import
com.yifu.cloud.plus.v1.yifu.admin.api.vo.SysCspDeptVo
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.SysAutoDictItem
;
...
...
@@ -92,6 +93,9 @@ public class EmployeeRegistrationServiceImpl extends ServiceImpl<EmployeeRegistr
@Autowired
private
UpmsDaprUtils
upmsDaprUtils
;
@Autowired
private
EkpDaprUtils
ekpDaprUtils
;
@Autowired
private
InsuranceDaprUtil
insuranceDaprUtil
;
...
...
@@ -723,9 +727,28 @@ public class EmployeeRegistrationServiceImpl extends ServiceImpl<EmployeeRegistr
TEmployeeContractDateVo
vo
=
new
TEmployeeContractDateVo
();
//合同开始日期、合同截止日期
if
(
Common
.
isEmpty
(
employeeContractPreVo
.
getContractStart
())
&&
Common
.
isEmpty
(
employeeContractPreVo
.
getContractEnd
())
&&
Common
.
isEmpty
(
employeeContractPreVo
.
getContractDuratioYear
())
&&
Common
.
isEmpty
(
employeeContractPreVo
.
getContractDuratioMonth
())
&&
Common
.
isNotNull
(
employeeContractPreVo
.
getContractEndType
()))
{
employeeContractPreVo
.
setContractStart
(
employeeContractPreVo
.
getJoinLeaveDate
());
EkpDeptContractInfoVo
infoVo
=
new
EkpDeptContractInfoVo
();
infoVo
.
setDeptNo
(
registration
.
getDeptNo
());
R
<
EkpDeptContractInfoVo
>
info
=
ekpDaprUtils
.
selectContractInfoByDetptNo
(
infoVo
);
if
(
Common
.
isNotNull
(
info
)
&&
Common
.
isNotNull
(
info
.
getData
()))
{
EkpDeptContractInfoVo
returnVo
=
info
.
getData
();
employeeContractPreVo
.
setContractEnd
(
returnVo
.
getContractEndTime
());
employeeContractPreVo
.
setContractEndType
(
returnVo
.
getContractType
());
}
else
{
employeeContractPreVo
.
setContractEnd
(
null
);
employeeContractPreVo
.
setContractEndType
(
null
);
}
}
if
(
Common
.
isEmpty
(
employeeContractPreVo
.
getContractStart
())
&&
Common
.
isEmpty
(
employeeContractPreVo
.
getContractEnd
())
&&
Common
.
isNotNull
(
employeeContractPreVo
.
getContractDuratioYear
())
&&
Common
.
isNotNull
(
employeeContractPreVo
.
getContractDuratioMonth
()))
{
employeeContractPreVo
.
setContractStart
(
employeeContractPreVo
.
get
ExpectedCollectionTim
e
());
employeeContractPreVo
.
setContractStart
(
employeeContractPreVo
.
get
JoinLeaveDat
e
());
vo
.
setMonthAfter
(
Integer
.
parseInt
(
employeeContractPreVo
.
getContractDuratioMonth
()));
vo
.
setYearAfter
(
Integer
.
parseInt
(
employeeContractPreVo
.
getContractDuratioYear
()));
vo
.
setRegistDate
(
employeeContractPreVo
.
getContractStart
());
...
...
@@ -735,12 +758,12 @@ public class EmployeeRegistrationServiceImpl extends ServiceImpl<EmployeeRegistr
if
(
Common
.
isEmpty
(
employeeContractPreVo
.
getContractStart
())
&&
Common
.
isEmpty
(
employeeContractPreVo
.
getContractDuratioYear
())
&&
Common
.
isEmpty
(
employeeContractPreVo
.
getContractDuratioMonth
()))
{
employeeContractPreVo
.
setContractStart
(
employeeContractPreVo
.
get
ExpectedCollectionTim
e
());
employeeContractPreVo
.
setContractStart
(
employeeContractPreVo
.
get
JoinLeaveDat
e
());
}
//试用期开始日期、试用期截止日期
if
(
Common
.
isEmpty
(
employeeContractPreVo
.
getPeriodStart
())
&&
Common
.
isNotNull
(
employeeContractPreVo
.
getTryPeriodNum
()))
{
employeeContractPreVo
.
setPeriodStart
(
employeeContractPreVo
.
get
ExpectedCollectionTim
e
());
employeeContractPreVo
.
setPeriodStart
(
employeeContractPreVo
.
get
JoinLeaveDat
e
());
vo
.
setMonthAfter
(
Integer
.
parseInt
(
employeeContractPreVo
.
getTryPeriodNum
()));
vo
.
setYearAfter
(
0
);
vo
.
setRegistDate
(
employeeContractPreVo
.
getPeriodStart
());
...
...
@@ -750,7 +773,7 @@ public class EmployeeRegistrationServiceImpl extends ServiceImpl<EmployeeRegistr
if
(
Common
.
isEmpty
(
employeeContractPreVo
.
getDispatchPeriodStart
())
&&
Common
.
isNotNull
(
employeeContractPreVo
.
getDispatchPeriodYear
())
&&
Common
.
isNotNull
(
employeeContractPreVo
.
getDispatchPeriodMonth
()))
{
employeeContractPreVo
.
setDispatchPeriodStart
(
employeeContractPreVo
.
get
ExpectedCollectionTim
e
());
employeeContractPreVo
.
setDispatchPeriodStart
(
employeeContractPreVo
.
get
JoinLeaveDat
e
());
vo
.
setMonthAfter
(
Integer
.
parseInt
(
employeeContractPreVo
.
getDispatchPeriodMonth
()));
vo
.
setYearAfter
(
Integer
.
parseInt
(
employeeContractPreVo
.
getDispatchPeriodYear
()));
vo
.
setRegistDate
(
employeeContractPreVo
.
getDispatchPeriodStart
());
...
...
@@ -759,7 +782,7 @@ public class EmployeeRegistrationServiceImpl extends ServiceImpl<EmployeeRegistr
//实习开始日期、实习结束日期
if
(
Common
.
isEmpty
(
employeeContractPreVo
.
getInternshipPeriodStart
())
&&
Common
.
isNotNull
(
employeeContractPreVo
.
getInternshipPeriodNum
()))
{
employeeContractPreVo
.
setInternshipPeriodStart
(
employeeContractPreVo
.
get
ExpectedCollectionTim
e
());
employeeContractPreVo
.
setInternshipPeriodStart
(
employeeContractPreVo
.
get
JoinLeaveDat
e
());
vo
.
setMonthAfter
(
Integer
.
parseInt
(
employeeContractPreVo
.
getInternshipPeriodNum
()));
vo
.
setYearAfter
(
0
);
vo
.
setRegistDate
(
employeeContractPreVo
.
getInternshipPeriodStart
());
...
...
yifu-ekp/yifu-ekp-api/src/main/java/com/yifu/cloud/plus/v1/ekp/vo/EkpDeptContractInfoVo.java
0 → 100644
View file @
501c23f0
package
com
.
yifu
.
cloud
.
plus
.
v1
.
ekp
.
vo
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* @Author huyc
* @Date 2024/3/1
* @Description 获取项目明细信息
* @Version 1.0
*/
@Data
public
class
EkpDeptContractInfoVo
implements
Serializable
{
/**
* 合同类型 合同之前、合同之后
**/
private
String
contractType
;
/**
* 合同截至日期
**/
private
Date
contractEndTime
;
/**
* 项目编码
**/
private
String
deptNo
;
}
yifu-ekp/yifu-ekp-biz/src/main/java/com/yifu/cloud/plus/v1/ekp/controller/TEkpSocialInfoController.java
View file @
501c23f0
...
...
@@ -2,6 +2,7 @@ package com.yifu.cloud.plus.v1.ekp.controller;
import
com.alibaba.fastjson.JSONObject
;
import
com.yifu.cloud.plus.v1.ekp.service.EkpSocialInfoService
;
import
com.yifu.cloud.plus.v1.ekp.vo.EkpDeptContractInfoVo
;
import
com.yifu.cloud.plus.v1.ekp.vo.EkpSocialPushInfoVo
;
import
com.yifu.cloud.plus.v1.ekp.vo.EkpSocialStatusUpdateVo
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants
;
...
...
@@ -68,4 +69,29 @@ public class TEkpSocialInfoController {
List
<
EkpSocialStatusUpdateVo
>
list
=
JSONObject
.
parseArray
(
jsonStr
,
EkpSocialStatusUpdateVo
.
class
);
return
socialInfoService
.
updateScoialStatus
(
list
);
}
/**
* @param vo
* @Description: 根据项目编码查询项目信息
* @Author: huyc
* @Date: 2025/6/18
* @return:
**/
@Inner
@PostMapping
(
"/inner/selectContractInfoByDetptNo"
)
public
EkpDeptContractInfoVo
selectContractInfoInnerByDetptNo
(
@RequestBody
EkpDeptContractInfoVo
vo
)
{
return
socialInfoService
.
selectContractInfoByDetptNo
(
vo
);
}
/**
* @param vo
* @Description: 根据项目编码查询项目信息
* @Author: huyc
* @Date: 2025/6/18
* @return:
**/
@PostMapping
(
"/selectContractInfoByDetptNo"
)
public
EkpDeptContractInfoVo
selectContractInfoByDetptNo
(
@RequestBody
EkpDeptContractInfoVo
vo
)
{
return
socialInfoService
.
selectContractInfoByDetptNo
(
vo
);
}
}
yifu-ekp/yifu-ekp-biz/src/main/java/com/yifu/cloud/plus/v1/ekp/mapper/EkpSocialInfoMapper.java
View file @
501c23f0
...
...
@@ -2,6 +2,7 @@ package com.yifu.cloud.plus.v1.ekp.mapper;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yifu.cloud.plus.v1.ekp.entity.EkpSocialInfo
;
import
com.yifu.cloud.plus.v1.ekp.vo.EkpDeptContractInfoVo
;
import
com.yifu.cloud.plus.v1.ekp.vo.EkpDeptInfoVo
;
import
com.yifu.cloud.plus.v1.ekp.vo.EkpSocialSumInfoVo
;
import
org.apache.ibatis.annotations.Mapper
;
...
...
@@ -55,4 +56,6 @@ public interface EkpSocialInfoMapper extends BaseMapper<EkpSocialInfo> {
* @return
*/
List
<
Map
<
String
,
String
>>
getAccountList
();
EkpDeptContractInfoVo
selectContractInfoByDetptNo
(
@Param
(
"deptNo"
)
String
deptNo
);
}
yifu-ekp/yifu-ekp-biz/src/main/java/com/yifu/cloud/plus/v1/ekp/service/EkpSocialInfoService.java
View file @
501c23f0
...
...
@@ -2,6 +2,7 @@ package com.yifu.cloud.plus.v1.ekp.service;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.yifu.cloud.plus.v1.ekp.entity.EkpSocialInfo
;
import
com.yifu.cloud.plus.v1.ekp.vo.EkpDeptContractInfoVo
;
import
com.yifu.cloud.plus.v1.ekp.vo.EkpSocialPushInfoVo
;
import
com.yifu.cloud.plus.v1.ekp.vo.EkpSocialStatusUpdateVo
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
...
...
@@ -23,4 +24,6 @@ public interface EkpSocialInfoService extends IService<EkpSocialInfo> {
EkpSocialPushInfoVo
pushSocialInfoToEkp
(
List
<
EkpPushSocialParam
>
unPushList
);
R
updateScoialStatus
(
List
<
EkpSocialStatusUpdateVo
>
list
);
EkpDeptContractInfoVo
selectContractInfoByDetptNo
(
EkpDeptContractInfoVo
vo
);
}
yifu-ekp/yifu-ekp-biz/src/main/java/com/yifu/cloud/plus/v1/ekp/service/impl/EkpSocialInfoServiceImpl.java
View file @
501c23f0
...
...
@@ -5,10 +5,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import
com.yifu.cloud.plus.v1.ekp.entity.EkpSocialInfo
;
import
com.yifu.cloud.plus.v1.ekp.mapper.EkpSocialInfoMapper
;
import
com.yifu.cloud.plus.v1.ekp.service.EkpSocialInfoService
;
import
com.yifu.cloud.plus.v1.ekp.vo.EkpDeptInfoVo
;
import
com.yifu.cloud.plus.v1.ekp.vo.EkpSocialPushInfoVo
;
import
com.yifu.cloud.plus.v1.ekp.vo.EkpSocialStatusUpdateVo
;
import
com.yifu.cloud.plus.v1.ekp.vo.EkpSocialSumInfoVo
;
import
com.yifu.cloud.plus.v1.ekp.vo.*
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.redis.RedisDistributedLock
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.*
;
...
...
@@ -313,6 +310,14 @@ public class EkpSocialInfoServiceImpl extends ServiceImpl<EkpSocialInfoMapper, E
return
null
;
}
@Override
public
EkpDeptContractInfoVo
selectContractInfoByDetptNo
(
EkpDeptContractInfoVo
vo
)
{
if
(
Common
.
isNotNull
(
vo
)
&&
Common
.
isNotNull
(
vo
.
getDeptNo
()))
{
return
baseMapper
.
selectContractInfoByDetptNo
(
vo
.
getDeptNo
());
}
return
null
;
}
private
void
copySocialProperties
(
EkpPushSocialParam
socialParam
,
EkpSocialInfo
socialInfo
)
{
//订单类型
socialInfo
.
setFd_3add9dd7833db8
(
socialParam
.
getFd_3add9dd7833db8
());
...
...
yifu-ekp/yifu-ekp-biz/src/main/resources/mapper/EkpSocialInfoMapper.xml
View file @
501c23f0
...
...
@@ -136,4 +136,16 @@
<select
id=
"getAccountList"
resultType=
"Map"
>
select fd_3b14a2430ac214 as bank_name,fd_3b14a24376d86a as bank_no from ekp_fe8247b4cbb4b27881dd where fd_3b14a24b9adb52='启用' and fd_3b56747b811872='是';
</select>
<!--查询付款账户信息-->
<select
id=
"selectContractInfoByDetptNo"
resultType=
"com.yifu.cloud.plus.v1.ekp.vo.EkpDeptContractInfoVo"
>
select
a.fd_3b148031607a30 as contractType,
if(a.fd_3b148031607a30 = '合同之后',DATE_FORMAT(b.fd_3ad8da6ba4bd2c, '%Y-%m-%d'),null) as contractEndTime,
a.fd_3a37fe508071fe as deptNo
from ekp_24a8e6a7fc143bb8c48a a
left join ekp_0103c453b2848c3bb31c b on a.fd_3b14803c09db8e = b.fd_id
where a.fd_3a37fe508071fe = #{deptNo}
limit 1
</select>
</mapper>
yifu-upms/yifu-upms-api/src/main/java/com/yifu.cloud.plus.v1/yifu/admin/api/entity/SysGuaziBankBranch.java
0 → 100644
View file @
501c23f0
/*
* 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
.
admin
.
api
.
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
;
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
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute
;
import
org.hibernate.validator.constraints.Length
;
import
javax.validation.constraints.NotBlank
;
/**
* 瓜子银行支行信息
*
* @author chenyx
* @date 2025-06-17 09:43:32
*/
@Data
@TableName
(
"sys_guazi_bank_branch"
)
@EqualsAndHashCode
(
callSuper
=
true
)
@Schema
(
description
=
"瓜子银行支行信息"
)
public
class
SysGuaziBankBranch
extends
BaseEntity
{
/**
* id
*/
@TableId
(
type
=
IdType
.
AUTO
)
@ExcelProperty
(
"id"
)
@Schema
(
description
=
"id"
)
private
Integer
id
;
/**
* 大行编码
*/
@ExcelAttribute
(
name
=
"大行编码"
,
maxLength
=
11
)
@Length
(
max
=
11
,
message
=
"大行编码不能超过11个字符"
)
@ExcelProperty
(
"大行编码"
)
@Schema
(
description
=
"大行编码"
)
private
String
bankCd
;
/**
* 联行号ID
*/
@ExcelAttribute
(
name
=
"联行号ID"
)
@ExcelProperty
(
"联行号ID"
)
@Schema
(
description
=
"联行号ID"
)
private
Integer
cnapsId
;
/**
* 联行号
*/
@ExcelAttribute
(
name
=
"联行号"
,
maxLength
=
30
)
@Length
(
max
=
30
,
message
=
"联行号不能超过30个字符"
)
@ExcelProperty
(
"联行号"
)
@Schema
(
description
=
"联行号"
)
private
String
cnapsNum
;
/**
* 支行名称
*/
@ExcelAttribute
(
name
=
"支行名称"
,
maxLength
=
50
)
@Length
(
max
=
50
,
message
=
"支行名称不能超过50个字符"
)
@ExcelProperty
(
"支行名称"
)
@Schema
(
description
=
"支行名称"
)
private
String
bankDescr
;
/**
* 所在省编码
*/
@ExcelAttribute
(
name
=
"所在省编码"
,
maxLength
=
15
)
@Length
(
max
=
15
,
message
=
"所在省编码不能超过15个字符"
)
@ExcelProperty
(
"所在省编码"
)
@Schema
(
description
=
"所在省编码"
)
private
String
stateId
;
/**
* 所在市编码
*/
@ExcelAttribute
(
name
=
"所在市编码"
,
maxLength
=
15
)
@Length
(
max
=
15
,
message
=
"所在市编码不能超过15个字符"
)
@ExcelProperty
(
"所在市编码"
)
@Schema
(
description
=
"所在市编码"
)
private
String
cityId
;
}
yifu-upms/yifu-upms-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/admin/controller/SysGuaziBankBranchController.java
0 → 100644
View file @
501c23f0
/*
* 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
.
admin
.
controller
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog
;
import
com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysGuaziBankBranch
;
import
com.yifu.cloud.plus.v1.yifu.admin.service.SysGuaziBankBranchService
;
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 chenyx
* @date 2025-06-17 09:43:32
*/
@RestController
@RequiredArgsConstructor
@RequestMapping
(
"/sysguazibankbranch"
)
@Tag
(
name
=
"瓜子银行支行信息管理"
)
public
class
SysGuaziBankBranchController
{
private
final
SysGuaziBankBranchService
sysGuaziBankBranchService
;
/**
* 简单分页查询
*
* @param page 分页对象
* @param sysGuaziBankBranch 瓜子银行支行信息
* @return
*/
@Operation
(
description
=
"简单分页查询"
)
@GetMapping
(
"/page"
)
public
R
<
IPage
<
SysGuaziBankBranch
>>
getSysGuaziBankBranchPage
(
Page
<
SysGuaziBankBranch
>
page
,
SysGuaziBankBranch
sysGuaziBankBranch
)
{
return
new
R
<>(
sysGuaziBankBranchService
.
getSysGuaziBankBranchPage
(
page
,
sysGuaziBankBranch
));
}
}
yifu-upms/yifu-upms-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/admin/mapper/SysGuaziBankBranchMapper.java
0 → 100644
View file @
501c23f0
/*
* 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
.
admin
.
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.admin.api.entity.SysGuaziBankBranch
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
/**
* 瓜子银行支行信息
*
* @author chenyx
* @date 2025-06-17 09:43:32
*/
@Mapper
public
interface
SysGuaziBankBranchMapper
extends
BaseMapper
<
SysGuaziBankBranch
>
{
/**
* 瓜子银行支行信息简单分页查询
*
* @param sysGuaziBankBranch 瓜子银行支行信息
* @return
*/
IPage
<
SysGuaziBankBranch
>
getSysGuaziBankBranchPage
(
Page
<
SysGuaziBankBranch
>
page
,
@Param
(
"sysGuaziBankBranch"
)
SysGuaziBankBranch
sysGuaziBankBranch
);
}
yifu-upms/yifu-upms-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/admin/service/SysGuaziBankBranchService.java
0 → 100644
View file @
501c23f0
/*
* 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
.
admin
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysGuaziBankBranch
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
/**
* 瓜子银行支行信息
*
* @author chenyx
* @date 2025-06-17 09:43:32
*/
public
interface
SysGuaziBankBranchService
extends
IService
<
SysGuaziBankBranch
>
{
/**
* 瓜子银行支行信息简单分页查询
*
* @param sysGuaziBankBranch 瓜子银行支行信息
* @return IPage<SysGuaziBankBranch>
*/
IPage
<
SysGuaziBankBranch
>
getSysGuaziBankBranchPage
(
Page
<
SysGuaziBankBranch
>
page
,
SysGuaziBankBranch
sysGuaziBankBranch
);
}
yifu-upms/yifu-upms-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/admin/service/impl/SysGuaziBankBranchServiceImpl.java
0 → 100644
View file @
501c23f0
/*
* 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
.
admin
.
service
.
impl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysGuaziBankBranch
;
import
com.yifu.cloud.plus.v1.yifu.admin.mapper.SysGuaziBankBranchMapper
;
import
com.yifu.cloud.plus.v1.yifu.admin.service.SysGuaziBankBranchService
;
import
lombok.RequiredArgsConstructor
;
import
lombok.extern.log4j.Log4j2
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
/**
* 瓜子银行支行信息
*
* @author chenyx
* @date 2025-06-17 09:43:32
*/
@Log4j2
@Service
@RequiredArgsConstructor
public
class
SysGuaziBankBranchServiceImpl
extends
ServiceImpl
<
SysGuaziBankBranchMapper
,
SysGuaziBankBranch
>
implements
SysGuaziBankBranchService
{
/**
* 瓜子银行支行信息简单分页查询
*
* @param sysGuaziBankBranch 瓜子银行支行信息
* @return IPage<SysGuaziBankBranch>
*/
@Override
public
IPage
<
SysGuaziBankBranch
>
getSysGuaziBankBranchPage
(
Page
<
SysGuaziBankBranch
>
page
,
SysGuaziBankBranch
sysGuaziBankBranch
)
{
return
baseMapper
.
getSysGuaziBankBranchPage
(
page
,
sysGuaziBankBranch
);
}
}
yifu-upms/yifu-upms-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/admin/service/impl/SysOutEmpFormInfoServiceImpl.java
View file @
501c23f0
...
...
@@ -46,7 +46,6 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.*
;
import
com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity
;
/**
...
...
yifu-upms/yifu-upms-biz/src/main/resources/application.yml
View file @
501c23f0
...
...
@@ -42,6 +42,9 @@ security:
-
/role/getRoleList
-
/user/updateUserAndDept
-
/dict/getParentDictItemByTypes
-
/sysguazibankbranch/page
-
/sysoutempforminfo/configList
-
/dict/getDictMapByClientId
...
...
yifu-upms/yifu-upms-biz/src/main/resources/mapper/SysGuaziBankBranchMapper.xml
0 → 100644
View file @
501c23f0
<?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.admin.mapper.SysGuaziBankBranchMapper"
>
<resultMap
id=
"sysGuaziBankBranchMap"
type=
"com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysGuaziBankBranch"
>
<id
property=
"id"
column=
"id"
/>
<result
property=
"bankCd"
column=
"bank_cd"
/>
<result
property=
"cnapsId"
column=
"cnaps_id"
/>
<result
property=
"cnapsNum"
column=
"cnaps_num"
/>
<result
property=
"bankDescr"
column=
"bank_descr"
/>
<result
property=
"stateId"
column=
"state_id"
/>
<result
property=
"cityId"
column=
"city_id"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"createBy"
column=
"create_by"
/>
<result
property=
"createName"
column=
"create_name"
/>
<result
property=
"updateBy"
column=
"update_by"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
a.id,
a.bank_cd,
a.cnaps_id,
a.cnaps_num,
a.bank_descr,
a.state_id,
a.city_id,
a.create_time,
a.create_by,
a.create_name,
a.update_by,
a.update_time
</sql>
<sql
id=
"sysGuaziBankBranch_where"
>
<if
test=
"sysGuaziBankBranch != null"
>
<if
test=
"sysGuaziBankBranch.id != null"
>
AND a.id = #{sysGuaziBankBranch.id}
</if>
<if
test=
"sysGuaziBankBranch.bankCd != null and sysGuaziBankBranch.bankCd.trim() != ''"
>
AND a.bank_cd = #{sysGuaziBankBranch.bankCd}
</if>
<if
test=
"sysGuaziBankBranch.cnapsId != null"
>
AND a.cnaps_id = #{sysGuaziBankBranch.cnapsId}
</if>
<if
test=
"sysGuaziBankBranch.cnapsNum != null and sysGuaziBankBranch.cnapsNum.trim() != ''"
>
AND a.cnaps_num = #{sysGuaziBankBranch.cnapsNum}
</if>
<if
test=
"sysGuaziBankBranch.bankDescr != null and sysGuaziBankBranch.bankDescr.trim() != ''"
>
AND a.bank_descr LIKE CONCAT('%',#{sysGuaziBankBranch.bankDescr},'%')
</if>
<if
test=
"sysGuaziBankBranch.stateId != null and sysGuaziBankBranch.stateId.trim() != ''"
>
AND a.state_id = #{sysGuaziBankBranch.stateId}
</if>
<if
test=
"sysGuaziBankBranch.cityId != null and sysGuaziBankBranch.cityId.trim() != ''"
>
AND a.city_id = #{sysGuaziBankBranch.cityId}
</if>
<if
test=
"sysGuaziBankBranch.createTime != null"
>
AND a.create_time = #{sysGuaziBankBranch.createTime}
</if>
<if
test=
"sysGuaziBankBranch.createBy != null and sysGuaziBankBranch.createBy.trim() != ''"
>
AND a.create_by = #{sysGuaziBankBranch.createBy}
</if>
<if
test=
"sysGuaziBankBranch.createName != null and sysGuaziBankBranch.createName.trim() != ''"
>
AND a.create_name = #{sysGuaziBankBranch.createName}
</if>
<if
test=
"sysGuaziBankBranch.updateBy != null and sysGuaziBankBranch.updateBy.trim() != ''"
>
AND a.update_by = #{sysGuaziBankBranch.updateBy}
</if>
<if
test=
"sysGuaziBankBranch.updateTime != null"
>
AND a.update_time = #{sysGuaziBankBranch.updateTime}
</if>
</if>
</sql>
<!--sysGuaziBankBranch简单分页查询-->
<select
id=
"getSysGuaziBankBranchPage"
resultMap=
"sysGuaziBankBranchMap"
>
SELECT
<include
refid=
"Base_Column_List"
/>
FROM sys_guazi_bank_branch a
<where>
1=1
<include
refid=
"sysGuaziBankBranch_where"
/>
</where>
order by a.id
</select>
</mapper>
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