Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rpc-staff
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6edd42e5
authored
Jun 24, 2026
by
黄炜
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat(recruitment): 新增试岗审批状态校验
1 parent
76f7d936
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
rpc-dj-staff/src/main/java/cn/com/glsx/dj/staff/job/RecruitmentTrialOnboardingApprovalRemindJob.java
rpc-dj-staff/src/main/java/cn/com/glsx/dj/staff/service/recruitment/RecruitmentDemandService.java
rpc-dj-staff/src/main/java/cn/com/glsx/dj/staff/job/RecruitmentTrialOnboardingApprovalRemindJob.java
View file @
6edd42e
...
...
@@ -6,7 +6,6 @@ import com.dangdang.ddframe.job.api.simple.SimpleJob;
import
lombok.RequiredArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
org.oreframework.boot.autoconfigure.elasticjob.annotation.ElasticJobConf
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
/**
...
...
@@ -16,7 +15,7 @@ import org.springframework.stereotype.Service;
**/
@Service
@Slf4j
@ElasticJobConf
(
name
=
"RecruitmentTrialOnboardingApprovalRemindJob"
,
cron
=
"0 */
2
* * * ?"
,
description
=
"试岗催审任务-每30分钟扫描,未审批超2小时则每2小时催一次"
)
@ElasticJobConf
(
name
=
"RecruitmentTrialOnboardingApprovalRemindJob"
,
cron
=
"0 */
30
* * * ?"
,
description
=
"试岗催审任务-每30分钟扫描,未审批超2小时则每2小时催一次"
)
@RequiredArgsConstructor
public
class
RecruitmentTrialOnboardingApprovalRemindJob
implements
SimpleJob
{
...
...
rpc-dj-staff/src/main/java/cn/com/glsx/dj/staff/service/recruitment/RecruitmentDemandService.java
View file @
6edd42e
...
...
@@ -2052,6 +2052,11 @@ public class RecruitmentDemandService {
throw
new
RpcServiceException
(
RpcErrorEnum
.
BUSINESS_ERROR
,
"仅支持对个人新增的试岗人员进行编辑"
);
}
// 审批中(approval_result为空)不允许编辑
if
(
Objects
.
isNull
(
existing
.
getApprovalResult
()))
{
throw
new
RpcServiceException
(
RpcErrorEnum
.
BUSINESS_ERROR
,
"审批中不允许处理"
);
}
if
(
Objects
.
nonNull
(
existing
.
getProcessResult
()))
{
throw
new
RpcServiceException
(
RpcErrorEnum
.
BUSINESS_ERROR
,
"仅支持对待处理的试岗人员进行编辑"
);
}
...
...
@@ -2162,6 +2167,10 @@ public class RecruitmentDemandService {
if
(
existing
==
null
||
BaseModel
.
DeletedFlagEnum
.
D
.
name
().
equals
(
existing
.
getDeletedFlag
()))
{
throw
new
RpcServiceException
(
RpcErrorEnum
.
BUSINESS_ERROR
,
"试岗记录不存在"
);
}
// 审批中(approval_result为空)不允许处理
if
(
Objects
.
isNull
(
existing
.
getApprovalResult
()))
{
throw
new
RpcServiceException
(
RpcErrorEnum
.
BUSINESS_ERROR
,
"审批中不允许处理"
);
}
if
(
Objects
.
nonNull
(
existing
.
getProcessResult
()))
{
throw
new
RpcServiceException
(
RpcErrorEnum
.
BUSINESS_ERROR
,
"试岗记录已处理,不可重复处理"
);
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment