Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
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
5d40d68d
You need to sign in or sign up before continuing.
Commit
5d40d68d
authored
Mar 03, 2025
by
huyuchen
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/MVP1.7.7' into MVP1.7.7
parents
21c92c01
f60e991a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
20 deletions
+44
-20
PreUploadEmpImportTwoVo.java
...oud/plus/v1/yifu/archives/vo/PreUploadEmpImportTwoVo.java
+9
-11
TEmployeeInfoServiceImpl.java
.../yifu/archives/service/impl/TEmployeeInfoServiceImpl.java
+30
-4
TPaymentInfoServiceImpl.java
.../v1/yifu/social/service/impl/TPaymentInfoServiceImpl.java
+5
-5
No files found.
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/vo/PreUploadEmpImportTwoVo.java
View file @
5d40d68d
...
...
@@ -158,7 +158,7 @@ public class PreUploadEmpImportTwoVo implements Serializable {
@ExcelAttribute
(
name
=
"是否有职业资格证书"
,
isDataId
=
true
,
readConverterExp
=
"0=是,1=否"
)
private
String
haveQualification
;
// 1.9.7: 职业资格信息
@ExcelAttribute
(
name
=
"申报年度"
,
isDate
=
true
,
dateFormat
=
"yyyy"
,
maxLength
=
32
)
@ExcelAttribute
(
name
=
"申报年度"
,
isDate
=
true
,
dateFormat
=
"yyyy"
,
maxLength
=
6
)
private
String
declareYear
;
@ExcelAttribute
(
name
=
"职业资格名称"
,
isDataId
=
true
,
dataType
=
ExcelAttributeConstants
.
QUALIFICATION_TYPE
,
maxLength
=
32
)
private
String
qualificationType
;
...
...
@@ -246,25 +246,23 @@ public class PreUploadEmpImportTwoVo implements Serializable {
@ExcelAttribute
(
name
=
"结束工作日期-值"
)
private
LocalDateTime
endDateValue
;
@ExcelAttribute
(
name
=
"与本人关系"
)
@ExcelAttribute
(
name
=
"与本人关系
-值
"
)
private
String
relationshipSelfValue
;
@ExcelAttribute
(
name
=
"申报年度"
)
private
String
declareYearValue
;
@ExcelAttribute
(
name
=
"职业资格名称"
)
@ExcelAttribute
(
name
=
"职业资格名称-值"
)
private
String
qualificationTypeValue
;
@ExcelAttribute
(
name
=
"是否曾被认定为工伤"
)
@ExcelAttribute
(
name
=
"是否曾被认定为工伤
-值
"
)
private
String
injuryIdentificationValue
;
@ExcelAttribute
(
name
=
"是否有职业病"
)
@ExcelAttribute
(
name
=
"是否有职业病
-值
"
)
private
String
occupationalDiseaseFlagValue
;
@ExcelAttribute
(
name
=
"是否有传染性疾病"
)
@ExcelAttribute
(
name
=
"是否有传染性疾病
-值
"
)
private
String
infectiousDiseaseFlagValue
;
@ExcelAttribute
(
name
=
"是否被劳动能力鉴定委员会鉴定为具有伤残等级"
)
@ExcelAttribute
(
name
=
"是否被劳动能力鉴定委员会鉴定为具有伤残等级
-值
"
)
private
String
disabilityFlagValue
;
@ExcelAttribute
(
name
=
"伤残等级"
)
@ExcelAttribute
(
name
=
"伤残等级
-值
"
)
private
String
disabilityLevelValue
;
@ExcelAttribute
(
name
=
"是否从事过井下、高空、高温、特别繁重体力劳动以及有毒有害工种"
)
@ExcelAttribute
(
name
=
"是否从事过井下、高空、高温、特别繁重体力劳动以及有毒有害工种
-值
"
)
private
String
otherFlagValue
;
// 字典值结束
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmployeeInfoServiceImpl.java
View file @
5d40d68d
...
...
@@ -3450,6 +3450,14 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
if
(
"bankName"
.
equals
(
shuName
)
&&
bankMap
.
get
(
shuValue
)
==
null
)
{
errorFormat
.
append
(
attr
.
name
()).
append
(
"_不符合财务要求,请查薪资配置;"
);
}
// 1.9.7 : 校验年份不可为未来年份
if
(
"declareYear"
.
equals
(
shuName
)
&&
Common
.
isNotNull
(
shuValue
)){
shuValue
=
shuValue
.
replaceAll
(
"\\..*"
,
""
);
if
(
shuValue
.
length
()
==
4
&&
(
Integer
.
parseInt
(
shuValue
)
>
DateUtil
.
getYearOfInt
(
new
Date
()))){
errorFormat
.
append
(
attr
.
name
()).
append
(
"_不可为未来年份;"
);
}
}
fieldType
=
field
.
getType
();
if
(
Common
.
isNotNull
(
fieldType
))
{
DiyExcelImportUtil
.
setFields
(
field
,
shuValue
,
fieldType
,
detail
);
...
...
@@ -3524,6 +3532,11 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
if
(
Common
.
isNotNull
(
detail
.
getTel
()))
{
mobileList
.
add
(
detail
.
getTel
());
}
// 1.9.7 手机号真实性校验加 :手机号码(家庭成员)
if
(
Common
.
isNotNull
(
detail
.
getContractTel
()))
{
mobileList
.
add
(
detail
.
getContractTel
());
}
// 1.9.7 新增必填校验
// 1.9.7 工作经历必填校验
if
(
"否"
.
equals
(
detail
.
getIsFirstWork
()))
{
...
...
@@ -3540,7 +3553,7 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
}
// 1.9.7 职业资格信息必填校验
if
(
"是"
.
equals
(
detail
.
getHaveQualification
()))
{
if
(
Common
.
isEmpty
(
detail
.
getDeclareYear
())||
Common
.
isEmpty
(
detail
.
getQualificationType
())){
if
(
Common
.
isEmpty
(
detail
.
getDeclareYear
())
||
Common
.
isEmpty
(
detail
.
getQualificationType
())){
errorMust
.
append
(
"是否有职业资格证书为【是】时,申报年度、职业资格名称同时必填!"
);
}
}
...
...
@@ -3567,7 +3580,7 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
}
}
}
else
{
errorMust
.
append
(
"是否曾被认定为工伤,是否有职业病、是否有传染性疾病、是否被劳动能力鉴定委员会鉴定为具有伤残等级 必须同时必填!"
);
errorMust
.
append
(
"是否曾被认定为工伤,是否有职业病、是否有传染性疾病、是否被劳动能力鉴定委员会鉴定为具有伤残等级
、是否从事过井下、高空、高温、特别繁重体力劳动以及有毒有害工种
必须同时必填!"
);
}
}
...
...
@@ -3678,6 +3691,17 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
errorCheck
.
append
(
"手机号码(紧急联系人)"
).
append
(
"未校验;"
);
}
}
// 1.9.7: 手机号码(家庭成员)校验
if
(
Common
.
isNotNull
(
info
.
getContractTel
()))
{
resultB
=
phoneMap
.
get
(
info
.
getContractTel
());
if
(
resultB
!=
null
)
{
if
(
Boolean
.
FALSE
.
equals
(
resultB
))
{
errorCheck
.
append
(
"手机号码(家庭成员)"
).
append
(
"校验不通过;"
);
}
}
else
{
errorCheck
.
append
(
"手机号码(家庭成员)"
).
append
(
"未校验;"
);
}
}
if
(
errorCheck
.
length
()
>
0
)
{
info
.
setErrorInfo
(
info
.
getErrorInfo
()
+
"校验未通过:"
+
errorCheck
);
allTrue
=
false
;
...
...
@@ -3954,6 +3978,7 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
workRecord
.
setCreateName
(
user
.
getNickname
());
workRecord
.
setCreateTime
(
LocalDateTime
.
now
());
workRecord
.
setWorkingStatus
(
CommonConstants
.
ONE_STRING
);
workRecord
.
setDeleteFlag
(
CommonConstants
.
NOT_DELETE_FLAG
);
workRecordList
.
add
(
workRecord
);
}
...
...
@@ -3982,9 +4007,9 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
qualificationRecord
.
setEmpId
(
saveEmp
.
getId
());
qualificationRecord
.
setEmpCode
(
saveEmp
.
getEmpCode
());
qualificationRecord
.
setEmpIdcard
(
saveEmp
.
getEmpIdcard
());
qualificationRecord
.
setDeclareYear
(
excel
.
getDeclareYear
Value
());
qualificationRecord
.
setDeclareYear
(
excel
.
getDeclareYear
());
qualificationRecord
.
setQualificationType
(
excel
.
getQualificationTypeValue
());
qualificationRecord
.
setDeleteFlag
(
CommonConstants
.
NOT_DELETE_FLAG
);
qualificationRecord
.
setCreateBy
(
user
.
getId
());
qualificationRecord
.
setCreateName
(
user
.
getNickname
());
qualificationRecord
.
setCreateTime
(
LocalDateTime
.
now
());
...
...
@@ -4021,6 +4046,7 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
disabilityRecord
.
setCreateBy
(
user
.
getId
());
disabilityRecord
.
setCreateName
(
user
.
getNickname
());
disabilityRecord
.
setCreateTime
(
LocalDateTime
.
now
());
disabilityRecord
.
setDeleteFlag
(
CommonConstants
.
NOT_DELETE_FLAG
);
disabilityRecordList
.
add
(
disabilityRecord
);
}
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TPaymentInfoServiceImpl.java
View file @
5d40d68d
...
...
@@ -332,10 +332,10 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
if
(
count
>
CommonConstants
.
ZERO_INT
)
{
WriteSheet
writeSheet
=
null
;
List
<
String
>
ids
;
for
(
int
i
=
0
;
i
<=
count
;
i
+=
CommonConstants
.
EXCEL_EXPORT_LIMIT_
2
)
{
for
(
int
i
=
0
;
i
<=
count
;
i
+=
CommonConstants
.
EXCEL_EXPORT_LIMIT_
1
)
{
// 获取实际记录
searchVo
.
setLimitStart
(
i
);
searchVo
.
setLimitEnd
(
CommonConstants
.
EXCEL_EXPORT_LIMIT_
2
);
searchVo
.
setLimitEnd
(
CommonConstants
.
EXCEL_EXPORT_LIMIT_
1
);
if
(
i
<
200000
){
list
=
baseMapper
.
getTPaymentInfoNoPage
(
searchVo
);
}
else
{
...
...
@@ -411,7 +411,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
}
else
{
redisUtil
.
set
(
key
,
user
.
getId
(),
600L
);
}
if
(
count
>
15
0000
&&
!
CommonConstants
.
ONE_STRING
.
equals
(
user
.
getId
()))
{
if
(
count
>
2
0000
&&
!
CommonConstants
.
ONE_STRING
.
equals
(
user
.
getId
()))
{
out
.
write
(
CommonConstants
.
SOCIAL_EXPORT_LIMIT
.
getBytes
(
"GBK"
));
out
.
close
();
redisUtil
.
remove
(
key
);
...
...
@@ -423,10 +423,10 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
if
(
count
>
CommonConstants
.
ZERO_INT
)
{
WriteSheet
writeSheet
=
null
;
List
<
String
>
ids
;
for
(
int
i
=
0
;
i
<=
count
;
i
+=
CommonConstants
.
EXCEL_EXPORT_LIMIT
)
{
for
(
int
i
=
0
;
i
<=
count
;
i
+=
CommonConstants
.
EXCEL_EXPORT_LIMIT
_1
)
{
// 获取实际记录
searchVo
.
setLimitStart
(
i
);
searchVo
.
setLimitEnd
(
CommonConstants
.
EXCEL_EXPORT_LIMIT
);
searchVo
.
setLimitEnd
(
CommonConstants
.
EXCEL_EXPORT_LIMIT
_1
);
if
(
i
<
200000
){
list
=
baseMapper
.
getTPaymentInfoSumNoPage
(
searchVo
);
}
else
{
...
...
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