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
a07fd0b8
authored
Dec 25, 2025
by
zwb
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
添加简历名称修改
parent
db93e21b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
79 additions
and
2 deletions
employmentBusiness-pc-modules/employmentBusiness-pc-system/src/main/java/com/bkty/system/controller/NewEditionResumeController.java
employmentBusiness-pc-modules/employmentBusiness-pc-system/src/main/java/com/bkty/system/service/resume/NewEditionResumeService.java
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/controller/NewEditionResumeController.java
View file @
a07fd0b8
...
...
@@ -291,7 +291,6 @@ public class NewEditionResumeController {
/**
* 查询简历分析详情
*
* @param resumeId
* @return
*/
...
...
@@ -300,4 +299,43 @@ public class NewEditionResumeController {
FunctionResumeSketch
vo
=
this
.
resumeMakeService
.
queryResumeSketch
(
resumeId
);
return
new
R
<>(
vo
);
}
/**
* 查询简历名称
* @param resumeId
* @return
*/
@GetMapping
(
"/query-resume-name"
)
public
R
<
String
>
queryResumeName
(
@RequestParam
(
"resumeId"
)
Long
resumeId
)
{
LoginUser
loginUser
=
LoginHelper
.
getLoginUser
();
if
(
null
==
loginUser
)
{
throw
new
WarnException
(
"用户信息获取失败"
);
}
Long
userId
=
loginUser
.
getUserId
();
String
name
=
this
.
newEditionResumeService
.
queryResumeName
(
resumeId
,
userId
);
return
new
R
<>(
name
);
}
/**
* 修改简历名称
* @param dto
* @return
*/
@GetMapping
(
"/update-resume-name"
)
public
R
updateResumeName
(
@RequestBody
ResumeMakeDto
dto
)
{
LoginUser
loginUser
=
LoginHelper
.
getLoginUser
();
if
(
null
==
loginUser
)
{
throw
new
WarnException
(
"用户信息获取失败"
);
}
Long
userId
=
loginUser
.
getUserId
();
if
(
dto
.
getResumeId
()==
null
){
throw
new
WarnException
(
"简历id不能为空"
);
}
if
(
dto
.
getResumeName
()==
null
){
throw
new
WarnException
(
"简历名称不能为空"
);
}
return
new
R
(
this
.
newEditionResumeService
.
updateResumeName
(
Long
.
valueOf
(
dto
.
getResumeId
()),
dto
.
getResumeName
(),
userId
));
}
}
employmentBusiness-pc-modules/employmentBusiness-pc-system/src/main/java/com/bkty/system/service/resume/NewEditionResumeService.java
View file @
a07fd0b8
package
com
.
bkty
.
system
.
service
.
resume
;
import
com.bkty.system.domain.dto.*
;
import
com.bkty.system.domain.entity.FunctionResumeSketch
;
import
com.bkty.system.domain.vo.ResumeByPdfVo
;
import
com.bkty.system.domain.vo.ResumeModelVo
;
import
com.bkty.system.domain.vo.ResumeVo
;
...
...
@@ -129,4 +128,22 @@ public interface NewEditionResumeService {
*/
ResumeByPdfVo
createResumeMinPng
(
ResumeByPdfDto
dto
);
/**
* 查询简历名称
*
* @param resumeId
* @param userid
* @return
*/
String
queryResumeName
(
Long
resumeId
,
Long
userid
);
/**
* 修改简历名称
*
* @param resumeId
* @param resumeName
* @param userId
* @return
*/
Boolean
updateResumeName
(
Long
resumeId
,
String
resumeName
,
Long
userId
);
}
employmentBusiness-pc-modules/employmentBusiness-pc-system/src/main/java/com/bkty/system/service/resume/impl/NewEditionResumeServiceImpl.java
View file @
a07fd0b8
...
...
@@ -1085,6 +1085,28 @@ public class NewEditionResumeServiceImpl implements NewEditionResumeService {
return
vo
;
}
@Override
public
String
queryResumeName
(
Long
resumeId
,
Long
userId
)
{
FunctionResumeBase
resumeBase
=
this
.
functionResumeBaseMapper
.
selectById
(
resumeId
);
if
(
resumeBase
==
null
){
throw
new
WarnException
(
"该简历不存在"
);
}
return
resumeBase
.
getResumeName
();
}
@Override
public
Boolean
updateResumeName
(
Long
resumeId
,
String
resumeName
,
Long
userId
)
{
FunctionResumeBase
resumeBase
=
this
.
functionResumeBaseMapper
.
selectById
(
resumeId
);
if
(
resumeBase
==
null
){
throw
new
WarnException
(
"该简历不存在"
);
}
resumeBase
.
setResumeName
(
resumeName
);
this
.
functionResumeBaseMapper
.
updateById
(
resumeBase
);
redisTemplate
.
delete
(
CacheConstants
.
REDIS_USER_RESUME_KEY
.
formatted
(
userId
,
resumeName
));
this
.
resumeCacheService
.
delResumeListCache
(
userId
);
return
true
;
}
public
String
sanitizeFileName
(
String
fileName
)
{
if
(
fileName
==
null
)
return
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