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
784a39ed
Commit
784a39ed
authored
Apr 16, 2026
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.7.22-微信号
parent
d38f39df
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
49 additions
and
3 deletions
+49
-3
TEmployeeInfo.java
...ifu/cloud/plus/v1/yifu/archives/entity/TEmployeeInfo.java
+7
-0
TPreEmployeeInfo.java
.../cloud/plus/v1/yifu/archives/entity/TPreEmployeeInfo.java
+7
-0
EmployeeInsertVO.java
...yifu/cloud/plus/v1/yifu/archives/vo/EmployeeInsertVO.java
+8
-0
PreUploadEmpImportVo.java
.../cloud/plus/v1/yifu/archives/vo/PreUploadEmpImportVo.java
+3
-0
EmployeeConstants.java
...ud/plus/v1/yifu/archives/constants/EmployeeConstants.java
+1
-0
TEmployeeInfoServiceImpl.java
.../yifu/archives/service/impl/TEmployeeInfoServiceImpl.java
+14
-0
TPreEmpMainServiceImpl.java
...v1/yifu/archives/service/impl/TPreEmpMainServiceImpl.java
+3
-1
TEmployeeInfoMapper.xml
...ves-biz/src/main/resources/mapper/TEmployeeInfoMapper.xml
+3
-1
TPreEmployeeInfoMapper.xml
...-biz/src/main/resources/mapper/TPreEmployeeInfoMapper.xml
+3
-1
No files found.
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/entity/TEmployeeInfo.java
View file @
784a39ed
...
...
@@ -571,6 +571,13 @@ public class TEmployeeInfo extends BaseEntity {
@Schema
(
description
=
"是否有职业资格证书:0 是 1 否"
)
private
String
haveQualification
;
// 1.7.22版本新增字段
@ExcelAttribute
(
name
=
"微信号"
,
maxLength
=
50
)
@Length
(
max
=
50
,
message
=
"微信号不能超过50个字符"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"微信号"
)
private
String
weChatId
;
/**
* 其他附件--C段二维码扫码数据
*/
...
...
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/entity/TPreEmployeeInfo.java
View file @
784a39ed
...
...
@@ -518,4 +518,11 @@ public class TPreEmployeeInfo extends BaseEntity {
@Schema
(
description
=
"是否有职业资格证书:0 是 1 否"
)
private
String
haveQualification
;
// 1.7.22版本新增字段
@ExcelAttribute
(
name
=
"微信号"
,
maxLength
=
50
)
@Length
(
max
=
50
,
message
=
"微信号不能超过50个字符"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"微信号"
)
private
String
weChatId
;
}
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/vo/EmployeeInsertVO.java
View file @
784a39ed
...
...
@@ -8,6 +8,7 @@ import com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute;
import
com.yifu.cloud.plus.v1.yifu.common.core.vo.RowIndex
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
org.hibernate.validator.constraints.Length
;
import
javax.validation.constraints.Size
;
import
java.io.Serializable
;
...
...
@@ -245,6 +246,13 @@ public class EmployeeInsertVO extends RowIndex implements Serializable {
@ExcelProperty
(
value
=
"通信地址-详细地址"
)
private
String
contactAddress
;
// 1.7.22版本新增字段
@ExcelAttribute
(
name
=
"微信号"
,
maxLength
=
50
)
@Length
(
max
=
50
,
message
=
"微信号不能超过50个字符"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"微信号"
)
private
String
weChatId
;
/*
// 紧急联系人姓名 与本人关系 联系地址-省 联系地址-市 联系地址-区/县 联系地址-详细地址 手机号码(紧急联系人)
@ExcelAttribute(name = "紧急联系人姓名", isNotEmpty = true, errorInfo = "紧急联系人姓名不能为空", maxLength = 20)
...
...
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/vo/PreUploadEmpImportVo.java
View file @
784a39ed
...
...
@@ -56,6 +56,9 @@ public class PreUploadEmpImportVo implements Serializable {
private
String
empPhone
;
@ExcelAttribute
(
name
=
"邮箱"
,
maxLength
=
50
)
private
String
empEmail
;
// 1.7.22版本新增字段
@ExcelAttribute
(
name
=
"微信号"
,
maxLength
=
50
)
private
String
weChatId
;
// 区域ID
@ExcelAttribute
(
name
=
"户籍所在地-省"
,
isArea
=
true
)
private
String
idProvince
;
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/constants/EmployeeConstants.java
View file @
784a39ed
...
...
@@ -9,6 +9,7 @@ public class EmployeeConstants {
public
static
final
String
REMARL_LENGTH
=
"备注长度超过200"
;
public
static
final
String
POST_LENGTH
=
"就职岗位长度超过20"
;
public
static
final
String
DEPT_NO_LENGTH
=
"项目编码长度超过20"
;
public
static
final
String
WE_CHAT_ID_NO_LENGTH
=
"微信号长度超过50"
;
public
static
final
String
VALIDITY_START
=
"身份证开始日期必填"
;
public
static
final
String
VALIDITY_END
=
"身份证截止日期必填"
;
public
static
final
String
VALIDITY_END_FORMAT
=
"身份证截止日期只能为日期格式:yyyy-MM-dd或者固定值:长期"
;
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmployeeInfoServiceImpl.java
View file @
784a39ed
...
...
@@ -1711,6 +1711,13 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
saveEmp
.
setDeptNo
(
excel
.
getDeptNo
());
}
}
if
(
Common
.
isNotNull
(
excel
.
getWeChatId
()))
{
if
(
excel
.
getWeChatId
().
length
()
>
50
)
{
errorMsg
.
add
(
EmployeeConstants
.
WE_CHAT_ID_NO_LENGTH
);
}
else
{
saveEmp
.
setWeChatId
(
excel
.
getWeChatId
());
}
}
this
.
setBaseData
(
saveEmp
,
CommonConstants
.
dingleDigitStrArray
[
5
],
user
);
saveList
.
add
(
saveEmp
);
}
...
...
@@ -2277,6 +2284,13 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
saveEmp
.
setDeptNo
(
excel
.
getDeptNo
());
}
}
if
(
Common
.
isNotNull
(
excel
.
getWeChatId
()))
{
if
(
excel
.
getWeChatId
().
length
()
>
50
)
{
errorMsg
.
add
(
EmployeeConstants
.
WE_CHAT_ID_NO_LENGTH
);
}
else
{
saveEmp
.
setWeChatId
(
excel
.
getWeChatId
());
}
}
// 判断空值
//this.judgeNull(errorMsg, saveEmp);
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TPreEmpMainServiceImpl.java
View file @
784a39ed
...
...
@@ -278,6 +278,7 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE
newEmp
.
setCreateBy
(
user
.
getId
());
newEmp
.
setCreateName
(
user
.
getNickname
());
newEmp
.
setCreateTime
(
LocalDateTime
.
now
());
newEmp
.
setWeChatId
(
emp
.
getWeChatId
());
tPreEmployeeInfoService
.
save
(
newEmp
);
vo
.
setTpreEmployeeInfo
(
newEmp
);
// 全部保留
...
...
@@ -3554,7 +3555,7 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE
return
R
.
failed
(
voR
==
null
?
"预入职导入识别表格异常!"
:
voR
.
getMsg
());
}
String
[]
modelTitle
=
{
"员工类型"
,
"员工姓名"
,
"身份证号"
,
"身份证开始日期"
,
"身份证截止日期"
,
"婚姻状况"
,
"民族"
,
"政治面貌"
,
"手机号码"
,
"邮箱"
,
"户籍所在地-省"
,
"户籍所在地-市"
,
"户籍所在地-区/县"
,
"户口性质"
,
"档案所在地-省"
,
"政治面貌"
,
"手机号码"
,
"邮箱"
,
"
微信号"
,
"
户籍所在地-省"
,
"户籍所在地-市"
,
"户籍所在地-区/县"
,
"户口性质"
,
"档案所在地-省"
,
"档案所在地-市"
,
"档案所在地-区/县"
,
"通信地址-省"
,
"通信地址-市"
,
"通信地址-区/县"
,
"通信地址-详细地址"
,
"紧急联系人姓名"
,
"紧急联系人与本人关系"
,
"联系地址-省"
,
"联系地址-市"
,
"联系地址-区/县"
,
"联系地址-详细地址"
,
"手机号码(紧急联系人)"
,
"学历"
,
"学校"
,
"专业"
,
"教育开始时间"
,
"教育结束时间"
,
"是否为首份工作"
,
"工作单位"
...
...
@@ -4136,6 +4137,7 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE
tPreEmployeeInfo
.
setEmpNational
(
info
.
getEmpNationalValue
());
tPreEmployeeInfo
.
setPoliticalStatus
(
info
.
getPoliticalStatusValue
());
tPreEmployeeInfo
.
setEmpEmail
(
info
.
getEmpEmail
());
tPreEmployeeInfo
.
setWeChatId
(
info
.
getWeChatId
());
tPreEmployeeInfo
.
setEmpPhone
(
info
.
getEmpPhone
());
// 2024-10-30 20:02:53 测试jld认为如果没写户籍省,则带出档案。我认为有道理
if
(
Common
.
isNotNull
(
info
.
getIdProvinceValue
()))
{
...
...
yifu-archives/yifu-archives-biz/src/main/resources/mapper/TEmployeeInfoMapper.xml
View file @
784a39ed
...
...
@@ -88,6 +88,7 @@
<result
property=
"contactProvince"
column=
"CONTACT_PROVINCE"
/>
<result
property=
"contactCity"
column=
"CONTACT_CITY"
/>
<result
property=
"contactTown"
column=
"CONTACT_TOWN"
/>
<result
property=
"weChatId"
column=
"WE_CHAT_ID"
/>
</resultMap>
...
...
@@ -264,7 +265,8 @@
a.TAX_MONTH,
a.CONTACT_PROVINCE,
a.CONTACT_CITY,
a.CONTACT_TOWN
a.CONTACT_TOWN,
a.WE_CHAT_ID
</sql>
<sql
id=
"Base_Export_List"
>
...
...
yifu-archives/yifu-archives-biz/src/main/resources/mapper/TPreEmployeeInfoMapper.xml
View file @
784a39ed
...
...
@@ -90,6 +90,7 @@
<result
property=
"contactCity"
column=
"CONTACT_CITY"
/>
<result
property=
"contactTown"
column=
"CONTACT_TOWN"
/>
<result
property=
"taxMonthFlag"
column=
"TAX_MONTH_FLAG"
/>
<result
property=
"weChatId"
column=
"WE_CHAT_ID"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
...
...
@@ -158,7 +159,8 @@
a.CONTACT_PROVINCE,
a.CONTACT_CITY,
a.CONTACT_TOWN,
a.TAX_MONTH_FLAG
a.TAX_MONTH_FLAG,
a.WE_CHAT_ID
</sql>
<sql
id=
"tPreEmployeeInfo_where"
>
<if
test=
"tPreEmployeeInfo != null"
>
...
...
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