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
6efff77f
Commit
6efff77f
authored
Aug 04, 2022
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
派单调整
parent
44ee2df9
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
76 additions
and
20 deletions
+76
-20
TEmployeeInfoController.java
.../v1/yifu/archives/controller/TEmployeeInfoController.java
+12
-0
TEmployeeInfoService.java
...d/plus/v1/yifu/archives/service/TEmployeeInfoService.java
+2
-0
TEmployeeInfoServiceImpl.java
.../yifu/archives/service/impl/TEmployeeInfoServiceImpl.java
+10
-0
ErrorCodes.java
....cloud.plus.v1/yifu/common/core/exception/ErrorCodes.java
+4
-0
messages_zh_CN.properties
...on-core/src/main/resources/i18n/messages_zh_CN.properties
+2
-0
ArchivesDaprUtil.java
...cloud/plus/v1/yifu/common/dapr/util/ArchivesDaprUtil.java
+14
-0
TDispatchInfoServiceImpl.java
...v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
+32
-20
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/controller/TEmployeeInfoController.java
View file @
6efff77f
...
...
@@ -474,4 +474,16 @@ public class TEmployeeInfoController {
public
Boolean
updateEmpInfo
(
@RequestBody
UpdateEmpVo
vo
)
{
return
tEmployeeInfoService
.
updateEmpInfo
(
vo
);
}
/**
* @Description: 查验手机号码是否存在
* @Author: fxj
* @Date: 2022/08/01 18:52
**/
@Operation
(
summary
=
"通过mobile查询是否已存在"
,
description
=
"通过mobile查询是否已存在"
)
@Inner
@PostMapping
(
"/inner/checkMobile"
)
public
Boolean
checkMobile
(
@RequestBody
String
mobile
)
{
return
tEmployeeInfoService
.
checkMobile
(
mobile
);
}
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/TEmployeeInfoService.java
View file @
6efff77f
...
...
@@ -186,4 +186,6 @@ public interface TEmployeeInfoService extends IService<TEmployeeInfo> {
EmpDispatchAddVo
addDispatchInfo
(
EmpDispatchAddVo
addVo
);
Boolean
updateEmpInfo
(
UpdateEmpVo
vo
);
Boolean
checkMobile
(
String
mobile
);
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmployeeInfoServiceImpl.java
View file @
6efff77f
...
...
@@ -2135,6 +2135,16 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
return
true
;
}
@Override
public
Boolean
checkMobile
(
String
mobile
)
{
if
(
Common
.
isEmpty
(
mobile
)){
return
true
;
}
return
!(
baseMapper
.
selectCount
(
Wrappers
.<
TEmployeeInfo
>
query
().
lambda
()
.
eq
(
TEmployeeInfo:
:
getFileStatus
,
CommonConstants
.
ZERO_STRING
)
.
eq
(
TEmployeeInfo:
:
getDeleteFlag
,
CommonConstants
.
ZERO_STRING
))
>
0
);
}
private
void
saveContract
(
Map
<
String
,
EmpProjectDispatchVo
>
projectsMap
,
Map
<
String
,
EmpContractDispatchVo
>
contractsMap
,
Map
<
String
,
EmpAddDispatchVo
>
empAddsMap
)
{
...
...
yifu-common/yifu-common-core/src/main/java/com/yifu.cloud.plus.v1/yifu/common/core/exception/ErrorCodes.java
View file @
6efff77f
...
...
@@ -480,4 +480,8 @@ public interface ErrorCodes {
* 派增异常: 单派工伤其他起缴日期不可填写
*/
String
EMP_DISPATCH_SOCIAL_DIY_INJURY_ERROR
=
"emp.dispatch.social.diy.injury.error"
;
/**
* 派增异常: 已存在对应手机号码的在用员工档案
*/
String
EMP_DISPATCH_EMP_MOBILE_REPEAT
=
"emp.dispatch.emp.mobile.repeat"
;
}
yifu-common/yifu-common-core/src/main/resources/i18n/messages_zh_CN.properties
View file @
6efff77f
...
...
@@ -183,6 +183,8 @@ emp.dispatch.reduce.fund.depart.no.error=\u6D3E\u51CF\u5F02\u5E38\uFF1A \u65E0\u
emp.dispatch.social.diy.injury.error
=
\u
6D3E
\u
589E
\u
5F02
\u
5E38
\u
FF1A
\u5355\u
6D3E
\u
5DE5
\u
4F24
\u5176\u
4ED6
\u
8D77
\u
7F34
\u
65E5
\u
671F
\u
4E0D
\u
53EF
\u
586B
\u5199
emp.dispatch.emp.mobile.repeat
=
\u
6D3E
\u
589E
\u
5F02
\u
5E38
\u
FF1A
\u
5DF2
\u
5B58
\u5728\u
5BF9
\u
5E94
\u
624B
\u
673A
\u
53F7
\u7801\u7684\u5728\u7528\u5458\u
5DE5
\u6863\u6848
...
...
yifu-common/yifu-common-dapr/src/main/java/com/yifu/cloud/plus/v1/yifu/common/dapr/util/ArchivesDaprUtil.java
View file @
6efff77f
...
...
@@ -187,4 +187,18 @@ public class ArchivesDaprUtil {
}
return
res
;
}
/**
* @Author fxj
* @Description 校验手机号码重复
* @Date 22:11 2022/8/4
* @Param
* @return
**/
public
R
<
Boolean
>
checkMobile
(
String
mobile
)
{
R
<
Boolean
>
res
=
HttpDaprUtil
.
invokeMethodPost
(
daprArchivesProperties
.
getAppUrl
(),
daprArchivesProperties
.
getAppId
(),
"/temployeeinfo/checkMobile"
,
mobile
,
Boolean
.
class
,
SecurityConstants
.
FROM_IN
);
if
(
Common
.
isEmpty
(
res
)){
return
R
.
failed
(
"检验号码重复信息失败!"
);
}
return
res
;
}
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
View file @
6efff77f
This diff is collapsed.
Click to expand it.
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