Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
张文彪
/
employmentBusinessPc
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9766577f
authored
Dec 12, 2025
by
zwb
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
添加手机号邮箱校验
parent
45289a21
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletions
employmentBusiness-pc-modules/employmentBusiness-pc-system/src/main/java/com/bkty/system/service/resume/impl/NewEditionResumeServiceImpl.java
employmentBusiness-pc-modules/employmentBusiness-pc-system/src/main/java/com/bkty/system/utils/NewEditionResumeUtil.java
employmentBusiness-pc-modules/employmentBusiness-pc-system/src/main/java/com/bkty/system/service/resume/impl/NewEditionResumeServiceImpl.java
View file @
9766577f
...
@@ -2,6 +2,7 @@ package com.bkty.system.service.resume.impl;
...
@@ -2,6 +2,7 @@ package com.bkty.system.service.resume.impl;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.collection.CollectionUtil
;
import
cn.hutool.core.collection.CollectionUtil
;
import
cn.hutool.core.util.ObjectUtil
;
import
cn.hutool.http.HttpRequest
;
import
cn.hutool.http.HttpRequest
;
import
com.alibaba.fastjson2.JSON
;
import
com.alibaba.fastjson2.JSON
;
import
com.alibaba.fastjson2.JSONArray
;
import
com.alibaba.fastjson2.JSONArray
;
...
@@ -402,6 +403,9 @@ public class NewEditionResumeServiceImpl implements NewEditionResumeService {
...
@@ -402,6 +403,9 @@ public class NewEditionResumeServiceImpl implements NewEditionResumeService {
public
CompletableFuture
<
ResumeVo
>
queryNewEditionResumeId
(
String
resumeId
)
{
public
CompletableFuture
<
ResumeVo
>
queryNewEditionResumeId
(
String
resumeId
)
{
ResumeVo
vo
=
new
ResumeVo
();
ResumeVo
vo
=
new
ResumeVo
();
FunctionResumeBase
resumeBase
=
this
.
functionResumeBaseMapper
.
selectResumeById
(
Long
.
valueOf
(
resumeId
));
FunctionResumeBase
resumeBase
=
this
.
functionResumeBaseMapper
.
selectResumeById
(
Long
.
valueOf
(
resumeId
));
if
(
ObjectUtil
.
isNull
(
resumeBase
))
{
throw
new
WarnException
(
"不存在该简历信息"
);
}
ResumeBase
base
=
new
ResumeBase
();
ResumeBase
base
=
new
ResumeBase
();
BeanUtils
.
copyProperties
(
resumeBase
,
base
);
BeanUtils
.
copyProperties
(
resumeBase
,
base
);
vo
.
setBase
(
base
);
vo
.
setBase
(
base
);
...
...
employmentBusiness-pc-modules/employmentBusiness-pc-system/src/main/java/com/bkty/system/utils/NewEditionResumeUtil.java
View file @
9766577f
...
@@ -697,9 +697,12 @@ public class NewEditionResumeUtil {
...
@@ -697,9 +697,12 @@ public class NewEditionResumeUtil {
public
void
updateBaseInfo
(
ResumeMakeDto
resumeMakeDto
,
Long
userId
)
{
public
void
updateBaseInfo
(
ResumeMakeDto
resumeMakeDto
,
Long
userId
)
{
FunctionResumeBase
resumeBase
=
JsonToObjectMapper
.
mapJsonToObject
(
JSONObject
.
parseObject
(
JSON
.
toJSONString
(
resumeMakeDto
.
getBodyData
())),
FunctionResumeBase
resumeBase
=
JsonToObjectMapper
.
mapJsonToObject
(
JSONObject
.
parseObject
(
JSON
.
toJSONString
(
resumeMakeDto
.
getBodyData
())),
FunctionResumeBase
.
class
);
FunctionResumeBase
.
class
);
if
(
validateChineseMobile
(
resumeBase
.
getPhone
())){
if
(
!
validateChineseMobile
(
resumeBase
.
getPhone
())){
throw
new
WarnException
(
"手机号格式不正确"
);
throw
new
WarnException
(
"手机号格式不正确"
);
}
}
if
(!
validateEmailStrict
(
resumeBase
.
getEmail
())){
throw
new
WarnException
(
"邮箱格式不正确"
);
}
resumeBase
.
setResumeName
(
resumeMakeDto
.
getResumeName
());
resumeBase
.
setResumeName
(
resumeMakeDto
.
getResumeName
());
resumeBase
.
setId
(
Long
.
valueOf
(
resumeMakeDto
.
getResumeId
()));
resumeBase
.
setId
(
Long
.
valueOf
(
resumeMakeDto
.
getResumeId
()));
resumeBase
.
setUserId
(
userId
);
resumeBase
.
setUserId
(
userId
);
...
...
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