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 abf4ef1e
authored
Dec 31, 2025
by
谢海旭
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
202601月中版本 招聘管理:新增招聘需求接口调整
1 parent
803209e5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
145 additions
and
7 deletions
rpc-dj-staff-api/src/main/java/cn/com/glsx/dj/staff/enums/RecruitmentDemandStatusEnum.java
rpc-dj-staff-api/src/main/java/cn/com/glsx/dj/staff/enums/recruitment/RecruitmentDemandBusinessTypeEnum.java
rpc-dj-staff/src/main/java/cn/com/glsx/dj/staff/service/recruitment/RecruitmentDemandService.java
rpc-dj-staff-api/src/main/java/cn/com/glsx/dj/staff/enums/RecruitmentDemandStatusEnum.java
View file @
abf4ef1
...
...
@@ -2,21 +2,29 @@ package cn.com.glsx.dj.staff.enums;
public
enum
RecruitmentDemandStatusEnum
{
/**
* 待人事确认
*
0-
待人事确认
*/
WAIT_HUMAN_CONFIRM
((
byte
)
0
,
"待人事确认"
),
/**
* 招聘中
*
1-
招聘中
*/
RECRUITING
((
byte
)
1
,
"招聘中"
),
/**
* 已完成
*
2-
已完成
*/
COMPLETED
((
byte
)
2
,
"已完成"
),
/**
* 已驳回
*
3-
已驳回
*/
REJECTED
((
byte
)
3
,
"已驳回"
),
/**
* 4-待督导确认
*/
WAIT_SUPERVISOR_CONFIRM
((
byte
)
4
,
"待督导确认"
),
;
private
byte
value
;
...
...
rpc-dj-staff-api/src/main/java/cn/com/glsx/dj/staff/enums/recruitment/RecruitmentDemandBusinessTypeEnum.java
0 → 100644
View file @
abf4ef1
package
cn
.
com
.
glsx
.
dj
.
staff
.
enums
.
recruitment
;
/**
* 招聘需求 业务类型 枚举
*/
public
enum
RecruitmentDemandBusinessTypeEnum
{
/**
* 1-延保
*/
EXTENDED_WARRANTY
(
"1"
,
"延保"
),
/**
* 2-权益
*/
RIGHTS
(
"2"
,
"权益"
),
/**
* 3-轻改
*/
LIGHT_MODIFICATION
(
"3"
,
"轻改"
),
/**
* 4-窗膜技师
*/
WINDOW_FILM_TECHNICIAN
(
"4"
,
"窗膜技师"
),
/**
* 5-权益+延保
*/
RIGHTS_EXTENDED_WARRANTY
(
"5"
,
"权益+延保"
),
/**
* 6-三膜技师
*/
THREE_FILM_TECHNICIAN
(
"6"
,
"三膜技师"
),
/**
* 7-车衣技师
*/
CAR_WRAP_TECHNICIAN
(
"7"
,
"车衣技师"
),
/**
* 8-精品技师
*/
ACCESSORIES_TECHNICIAN
(
"8"
,
"精品技师"
),
/**
* 9-二手车验车专员
*/
USED_CAR_INSPECTOR
(
"9"
,
"二手车验车专员"
),
;
private
String
value
;
private
String
displayName
;
RecruitmentDemandBusinessTypeEnum
(
String
value
,
String
displayName
)
{
this
.
value
=
value
;
this
.
displayName
=
displayName
;
}
public
String
getValue
()
{
return
value
;
}
public
String
getDisplayName
()
{
return
displayName
;
}
public
static
RecruitmentDemandBusinessTypeEnum
getByValue
(
String
value
)
{
if
(
value
!=
null
)
{
for
(
RecruitmentDemandBusinessTypeEnum
temp
:
RecruitmentDemandBusinessTypeEnum
.
values
())
{
if
(
temp
.
getValue
().
equals
(
value
))
{
return
temp
;
}
}
}
return
null
;
}
/**
* 判断是否需要技术督导
* 窗膜技师、三膜技师、车衣技师、精品技师需要技术督导
*/
public
static
boolean
needsTechnicalSupervisor
(
String
businessType
)
{
if
(
businessType
==
null
)
{
return
false
;
}
return
WINDOW_FILM_TECHNICIAN
.
getValue
().
equals
(
businessType
)
||
THREE_FILM_TECHNICIAN
.
getValue
().
equals
(
businessType
)
||
CAR_WRAP_TECHNICIAN
.
getValue
().
equals
(
businessType
)
||
ACCESSORIES_TECHNICIAN
.
getValue
().
equals
(
businessType
);
}
}
rpc-dj-staff/src/main/java/cn/com/glsx/dj/staff/service/recruitment/RecruitmentDemandService.java
View file @
abf4ef1
...
...
@@ -10,6 +10,7 @@ import cn.com.glsx.dj.staff.dto.recruitment.*;
import
cn.com.glsx.dj.staff.enums.FlagEnum
;
import
cn.com.glsx.dj.staff.enums.RecruitmentDemandStatusEnum
;
import
cn.com.glsx.dj.staff.enums.RpcErrorEnum
;
import
cn.com.glsx.dj.staff.enums.recruitment.RecruitmentDemandBusinessTypeEnum
;
import
cn.com.glsx.dj.staff.enums.recruitment.RecruitmentDemandLogOperationTypeEnum
;
import
cn.com.glsx.dj.staff.mapper.*
;
import
cn.com.glsx.dj.staff.model.*
;
...
...
@@ -108,6 +109,9 @@ public class RecruitmentDemandService {
@Autowired
private
RecruitmentTrialOnboardingMapper
recruitmentTrialOnboardingMapper
;
@Autowired
private
TechnicalSupervisorMappingMapper
technicalSupervisorMappingMapper
;
/**
* 招聘需求统计
*
...
...
@@ -176,8 +180,19 @@ public class RecruitmentDemandService {
public
RecruitmentDemandDTO
recruitmentDemandAdd
(
RecruitmentDemandDTO
dto
)
{
RpcAssert
.
assertNotNull
(
dto
,
DefaultErrorEnum
.
DATA_NULL
,
"dto not be null"
);
RpcAssert
.
assertNotEmpty
(
dto
.
getUpdatedBy
(),
DefaultErrorEnum
.
DATA_NULL
,
"dto.getUpdatedBy() not be empty"
);
String
recruiterName
=
dto
.
getRecruiterName
();
if
(
StringUtils
.
isBlank
(
recruiterName
))
{
// 二手车验车专员,从配置读取招聘负责人
String
businessType
=
dto
.
getBusinessType
();
if
(
RecruitmentDemandBusinessTypeEnum
.
USED_CAR_INSPECTOR
.
getValue
().
equals
(
businessType
))
{
String
defaultRecruiterConfig
=
env
.
getProperty
(
"used.car.validate.business.default.recruiter"
);
if
(
StringUtils
.
isNotBlank
(
defaultRecruiterConfig
)
&&
defaultRecruiterConfig
.
contains
(
":"
))
{
String
[]
recruiterInfo
=
defaultRecruiterConfig
.
split
(
":"
);
if
(
recruiterInfo
.
length
==
2
)
{
dto
.
setRecruiterName
(
recruiterInfo
[
0
]);
dto
.
setRecruiterPhone
(
recruiterInfo
[
1
]);
}
}
}
else
{
String
regionOperationName
=
dto
.
getRegionOperationName
();
Example
ohRelationExample
=
new
Example
(
RecruitmentRegionOperationHrbpRelation
.
class
);
ohRelationExample
.
createCriteria
()
...
...
@@ -189,9 +204,10 @@ public class RecruitmentDemandService {
dto
.
setRecruiterPhone
(
relation
.
getHrbpPhone
());
}
}
// 查询门店省市信息
String
merchantId
=
dto
.
getMerchantId
();
String
provinceName
=
null
;
if
(
StringUtils
.
isNotBlank
(
merchantId
))
{
RpcPagination
<
ListMerchantRequest
>
merchantPagination
=
new
RpcPagination
<>();
merchantPagination
.
setPageNum
(
1
);
...
...
@@ -213,6 +229,7 @@ public class RecruitmentDemandService {
String
provinceCity
=
""
;
if
(
StringUtils
.
isNotBlank
(
merchant
.
getProvinceName
()))
{
provinceCity
=
merchant
.
getProvinceName
();
provinceName
=
merchant
.
getProvinceName
();
}
if
(
StringUtils
.
isNotBlank
(
merchant
.
getCityName
()))
{
provinceCity
+=
merchant
.
getCityName
();
...
...
@@ -225,6 +242,26 @@ public class RecruitmentDemandService {
}
}
// 根据省份查询技术督导(仅针对特定业务类型:窗膜技师、三膜技师、车衣技师、精品技师)
if
(
StringUtils
.
isNotBlank
(
provinceName
)
&&
RecruitmentDemandBusinessTypeEnum
.
needsTechnicalSupervisor
(
businessType
))
{
Example
supervisorExample
=
new
Example
(
TechnicalSupervisorMapping
.
class
);
supervisorExample
.
createCriteria
()
.
andEqualTo
(
"deletedFlag"
,
BaseModel
.
DeletedFlagEnum
.
N
.
name
())
.
andEqualTo
(
"province"
,
provinceName
);
TechnicalSupervisorMapping
supervisorMapping
=
technicalSupervisorMappingMapper
.
selectOneByExample
(
supervisorExample
);
if
(
Objects
.
nonNull
(
supervisorMapping
))
{
dto
.
setTechnicalSupervisorName
(
supervisorMapping
.
getSupervisorName
());
dto
.
setTechnicalSupervisorPhone
(
supervisorMapping
.
getSupervisorPhone
());
}
}
// 根据业务类型设置初始状态:窗膜技师、三膜技师、车衣技师、精品技师为“待督导确认”,其他为“待人事确认”
if
(
RecruitmentDemandBusinessTypeEnum
.
needsTechnicalSupervisor
(
businessType
))
{
dto
.
setStatus
(
RecruitmentDemandStatusEnum
.
WAIT_SUPERVISOR_CONFIRM
.
getValue
());
}
else
{
dto
.
setStatus
(
RecruitmentDemandStatusEnum
.
WAIT_HUMAN_CONFIRM
.
getValue
());
}
Date
now
=
new
Date
();
dto
.
setCreatedBy
(
dto
.
getUpdatedBy
());
dto
.
setCreatedDate
(
now
);
...
...
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