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
5b6ccf01
Commit
5b6ccf01
authored
Jul 12, 2023
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
校验添加
parent
27e48025
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
21 deletions
+21
-21
TDispatchInfoServiceImpl.java
...v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
+21
-21
No files found.
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
View file @
5b6ccf01
...
@@ -2277,21 +2277,21 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -2277,21 +2277,21 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
return
true
;
return
true
;
}
}
// 如果没有人员档案和项目档案的时候校验身份证和手机号码
// 如果没有人员档案和项目档案的时候校验身份证和手机号码
//
R<Boolean> checkRes = checkDaprUtil.checkIdCardAndMobile(excel.getEmpName(),excel.getEmpIdcard(),excel.getEmpMobile());
R
<
Boolean
>
checkRes
=
checkDaprUtil
.
checkIdCardAndMobile
(
excel
.
getEmpName
(),
excel
.
getEmpIdcard
(),
excel
.
getEmpMobile
());
//
if (Common.isEmpty(checkRes) || checkRes.getCode() != CommonConstants.SUCCESS){
if
(
Common
.
isEmpty
(
checkRes
)
||
checkRes
.
getCode
()
!=
CommonConstants
.
SUCCESS
){
//
errorMessageList.add(new ErrorMessage(excel.getRowIndex(), checkRes.getMsg()));
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
checkRes
.
getMsg
()));
//
return true;
return
true
;
//
}
}
//
// 校验手机号码重复
// 校验手机号码重复
//
checkRes = archivesDaprUtil.checkMobile(excel.getEmpMobile());
checkRes
=
archivesDaprUtil
.
checkMobile
(
excel
.
getEmpMobile
());
//
if (Common.isEmpty(checkRes) || checkRes.getCode() != CommonConstants.SUCCESS){
if
(
Common
.
isEmpty
(
checkRes
)
||
checkRes
.
getCode
()
!=
CommonConstants
.
SUCCESS
){
//
errorMessageList.add(new ErrorMessage(excel.getRowIndex(), checkRes.getMsg()));
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
checkRes
.
getMsg
()));
//
return true;
return
true
;
//
}
}
//
if (checkRes.getData().booleanValue()){
if
(
checkRes
.
getData
().
booleanValue
()){
//
errorMessageList.add(new ErrorMessage(excel.getRowIndex(), MsgUtils.getMessage(ErrorCodes.EMP_DISPATCH_EMP_MOBILE_REPEAT)));
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
MsgUtils
.
getMessage
(
ErrorCodes
.
EMP_DISPATCH_EMP_MOBILE_REPEAT
)));
//
return true;
return
true
;
//
}
}
}
}
Date
contractDateTemp
=
excel
.
getContractStart
();
Date
contractDateTemp
=
excel
.
getContractStart
();
/*项目档案有可用状态的合同:
/*项目档案有可用状态的合同:
...
@@ -2340,12 +2340,12 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -2340,12 +2340,12 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
if
(
Common
.
isNotNull
(
empVo
.
getEmpPhone
())
&&
Common
.
isEmpty
(
excel
.
getEmpMobile
())){
if
(
Common
.
isNotNull
(
empVo
.
getEmpPhone
())
&&
Common
.
isEmpty
(
excel
.
getEmpMobile
())){
excel
.
setEmpMobile
(
empVo
.
getEmpPhone
());
excel
.
setEmpMobile
(
empVo
.
getEmpPhone
());
}
}
//
// 如果存在档案但是手机号码不为空校验号码
// 如果存在档案但是手机号码不为空校验号码
//
if (Common.isNotNull(excel.getEmpMobile())
if
(
Common
.
isNotNull
(
excel
.
getEmpMobile
())
//
&& !excel.getEmpMobile().equals(empVo.getEmpPhone())
&&
!
excel
.
getEmpMobile
().
equals
(
empVo
.
getEmpPhone
())
//
&& checkMobileAndIdcard(errorMessageList, excel)){
&&
checkMobileAndIdcard
(
errorMessageList
,
excel
)){
//
return true;
return
true
;
//
}
}
// 档案地 手机号码, 派单有数据 更新档案,派单没有 有档案取值档案数据
// 档案地 手机号码, 派单有数据 更新档案,派单没有 有档案取值档案数据
if
(
Common
.
isEmpty
(
excel
.
getFileProvince
())){
if
(
Common
.
isEmpty
(
excel
.
getFileProvince
())){
excel
.
setFileProvince
(
Common
.
isNotNullToStr
(
empVo
.
getFileProvince
()));
excel
.
setFileProvince
(
Common
.
isNotNullToStr
(
empVo
.
getFileProvince
()));
...
...
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