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 aa217003
authored
Jun 24, 2026
by
黄炜
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat(recruitment): 试岗企微推送
1 parent
6edd42e5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
45 deletions
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/service/recruitment/RecruitmentDemandService.java
View file @
aa21700
...
@@ -86,7 +86,7 @@ public class RecruitmentDemandService {
...
@@ -86,7 +86,7 @@ public class RecruitmentDemandService {
private
static
final
String
SCENE_NAME_SEPARATOR
=
"、"
;
private
static
final
String
SCENE_NAME_SEPARATOR
=
"、"
;
/** 业务场景JSON 中场景名称的字段名 */
/** 业务场景JSON 中场景名称的字段名 */
private
static
final
String
SCENE_NAME_FIELD
=
"
s
ceneName"
;
private
static
final
String
SCENE_NAME_FIELD
=
"
bizS
ceneName"
;
@Autowired
@Autowired
private
RecruitmentDemandMapper
recruitmentDemandMapper
;
private
RecruitmentDemandMapper
recruitmentDemandMapper
;
...
@@ -2314,18 +2314,7 @@ public class RecruitmentDemandService {
...
@@ -2314,18 +2314,7 @@ public class RecruitmentDemandService {
String
hrbpName
=
demand
.
getRecruiterName
();
String
hrbpName
=
demand
.
getRecruiterName
();
// 解析业务场景名称
// 解析业务场景名称
String
sceneNameStr
=
""
;
String
sceneNameStr
=
parseSceneNames
(
trial
.
getBizSceneInfo
());
if
(
StringUtils
.
isNotBlank
(
trial
.
getBizSceneInfo
()))
{
JSONArray
sceneArray
=
JSON
.
parseArray
(
trial
.
getBizSceneInfo
());
List
<
String
>
sceneNames
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
sceneArray
.
size
();
i
++)
{
JSONObject
obj
=
sceneArray
.
getJSONObject
(
i
);
if
(
obj
!=
null
&&
StringUtils
.
isNotBlank
(
obj
.
getString
(
"sceneName"
)))
{
sceneNames
.
add
(
obj
.
getString
(
"sceneName"
));
}
}
sceneNameStr
=
String
.
join
(
"、"
,
sceneNames
);
}
// 构建通知内容
// 构建通知内容
boolean
isApproved
=
Objects
.
equals
(
trial
.
getApprovalResult
(),
1
);
boolean
isApproved
=
Objects
.
equals
(
trial
.
getApprovalResult
(),
1
);
...
@@ -2387,8 +2376,8 @@ public class RecruitmentDemandService {
...
@@ -2387,8 +2376,8 @@ public class RecruitmentDemandService {
List
<
String
>
sceneCodes
=
new
ArrayList
<>();
List
<
String
>
sceneCodes
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
sceneArray
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
sceneArray
.
size
();
i
++)
{
JSONObject
obj
=
sceneArray
.
getJSONObject
(
i
);
JSONObject
obj
=
sceneArray
.
getJSONObject
(
i
);
if
(
obj
!=
null
&&
StringUtils
.
isNotBlank
(
obj
.
getString
(
"
s
ceneCode"
)))
{
if
(
obj
!=
null
&&
StringUtils
.
isNotBlank
(
obj
.
getString
(
"
bizS
ceneCode"
)))
{
sceneCodes
.
add
(
obj
.
getString
(
"
s
ceneCode"
));
sceneCodes
.
add
(
obj
.
getString
(
"
bizS
ceneCode"
));
}
}
}
}
if
(
CollectionUtils
.
isEmpty
(
sceneCodes
))
{
if
(
CollectionUtils
.
isEmpty
(
sceneCodes
))
{
...
@@ -2610,7 +2599,7 @@ public class RecruitmentDemandService {
...
@@ -2610,7 +2599,7 @@ public class RecruitmentDemandService {
public
void
sendTrialOnboardingApprovalQWMessage
(
RecruitmentTrialOnboardingDTO
dto
,
boolean
remind
)
{
public
void
sendTrialOnboardingApprovalQWMessage
(
RecruitmentTrialOnboardingDTO
dto
,
boolean
remind
)
{
try
{
try
{
Integer
demandId
=
dto
.
getDemandId
();
Integer
demandId
=
dto
.
getDemandId
();
// 业务场景信息为JSON数组格式:[{"
sceneCode":"xxx","s
ceneName":"xxx"}],提取sceneName用分隔符拼接
// 业务场景信息为JSON数组格式:[{"
bizSceneCode":"xxx","bizS
ceneName":"xxx"}],提取sceneName用分隔符拼接
String
sceneNames
=
parseSceneNames
(
dto
.
getBizSceneInfo
());
String
sceneNames
=
parseSceneNames
(
dto
.
getBizSceneInfo
());
RecruitmentDemand
demand
=
recruitmentDemandMapper
.
selectByPrimaryKey
(
demandId
);
RecruitmentDemand
demand
=
recruitmentDemandMapper
.
selectByPrimaryKey
(
demandId
);
if
(
demand
==
null
)
{
if
(
demand
==
null
)
{
...
@@ -2651,7 +2640,7 @@ public class RecruitmentDemandService {
...
@@ -2651,7 +2640,7 @@ public class RecruitmentDemandService {
/**
/**
* 解析业务场景信息JSON数组,提取场景名称并用分隔符拼接。
* 解析业务场景信息JSON数组,提取场景名称并用分隔符拼接。
*
*
* @param bizSceneInfo 业务场景信息,JSON数组格式:[{"
sceneCode":"xxx","s
ceneName":"xxx"}]
* @param bizSceneInfo 业务场景信息,JSON数组格式:[{"
bizSceneCode":"xxx","bizS
ceneName":"xxx"}]
* @return 拼接后的场景名称;入参为空或解析失败返回空串
* @return 拼接后的场景名称;入参为空或解析失败返回空串
*/
*/
private
String
parseSceneNames
(
String
bizSceneInfo
)
{
private
String
parseSceneNames
(
String
bizSceneInfo
)
{
...
@@ -2733,18 +2722,7 @@ public class RecruitmentDemandService {
...
@@ -2733,18 +2722,7 @@ public class RecruitmentDemandService {
String
hrbpName
=
demand
.
getRecruiterName
();
String
hrbpName
=
demand
.
getRecruiterName
();
// 解析业务场景名称
// 解析业务场景名称
String
sceneNameStr
=
""
;
String
sceneNameStr
=
parseSceneNames
(
trial
.
getBizSceneInfo
());
if
(
StringUtils
.
isNotBlank
(
trial
.
getBizSceneInfo
()))
{
JSONArray
sceneArray
=
JSON
.
parseArray
(
trial
.
getBizSceneInfo
());
List
<
String
>
sceneNames
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
sceneArray
.
size
();
i
++)
{
JSONObject
obj
=
sceneArray
.
getJSONObject
(
i
);
if
(
obj
!=
null
&&
StringUtils
.
isNotBlank
(
obj
.
getString
(
"sceneName"
)))
{
sceneNames
.
add
(
obj
.
getString
(
"sceneName"
));
}
}
sceneNameStr
=
String
.
join
(
"、"
,
sceneNames
);
}
// 构建通知内容
// 构建通知内容
boolean
isPassed
=
Objects
.
equals
(
trial
.
getProcessResult
(),
1
);
boolean
isPassed
=
Objects
.
equals
(
trial
.
getProcessResult
(),
1
);
...
@@ -2807,8 +2785,8 @@ public class RecruitmentDemandService {
...
@@ -2807,8 +2785,8 @@ public class RecruitmentDemandService {
List
<
String
>
sceneCodes
=
new
ArrayList
<>();
List
<
String
>
sceneCodes
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
sceneArray
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
sceneArray
.
size
();
i
++)
{
JSONObject
obj
=
sceneArray
.
getJSONObject
(
i
);
JSONObject
obj
=
sceneArray
.
getJSONObject
(
i
);
if
(
obj
!=
null
&&
StringUtils
.
isNotBlank
(
obj
.
getString
(
"
s
ceneCode"
)))
{
if
(
obj
!=
null
&&
StringUtils
.
isNotBlank
(
obj
.
getString
(
"
bizS
ceneCode"
)))
{
sceneCodes
.
add
(
obj
.
getString
(
"
s
ceneCode"
));
sceneCodes
.
add
(
obj
.
getString
(
"
bizS
ceneCode"
));
}
}
}
}
if
(
CollectionUtils
.
isEmpty
(
sceneCodes
))
{
if
(
CollectionUtils
.
isEmpty
(
sceneCodes
))
{
...
@@ -2951,18 +2929,7 @@ public class RecruitmentDemandService {
...
@@ -2951,18 +2929,7 @@ public class RecruitmentDemandService {
String
hrbpName
=
demand
.
getRecruiterName
();
String
hrbpName
=
demand
.
getRecruiterName
();
// 解析业务场景名称
// 解析业务场景名称
String
sceneNameStr
=
""
;
String
sceneNameStr
=
parseSceneNames
(
trial
.
getBizSceneInfo
());
if
(
StringUtils
.
isNotBlank
(
trial
.
getBizSceneInfo
()))
{
JSONArray
sceneArray
=
JSON
.
parseArray
(
trial
.
getBizSceneInfo
());
List
<
String
>
sceneNames
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
sceneArray
.
size
();
i
++)
{
JSONObject
obj
=
sceneArray
.
getJSONObject
(
i
);
if
(
obj
!=
null
&&
StringUtils
.
isNotBlank
(
obj
.
getString
(
"sceneName"
)))
{
sceneNames
.
add
(
obj
.
getString
(
"sceneName"
));
}
}
sceneNameStr
=
String
.
join
(
"、"
,
sceneNames
);
}
// 构建通知内容
// 构建通知内容
String
title
=
"新建试岗计划通知"
;
String
title
=
"新建试岗计划通知"
;
...
@@ -3023,8 +2990,8 @@ public class RecruitmentDemandService {
...
@@ -3023,8 +2990,8 @@ public class RecruitmentDemandService {
List
<
String
>
sceneCodes
=
new
ArrayList
<>();
List
<
String
>
sceneCodes
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
sceneArray
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
sceneArray
.
size
();
i
++)
{
JSONObject
obj
=
sceneArray
.
getJSONObject
(
i
);
JSONObject
obj
=
sceneArray
.
getJSONObject
(
i
);
if
(
obj
!=
null
&&
StringUtils
.
isNotBlank
(
obj
.
getString
(
"
s
ceneCode"
)))
{
if
(
obj
!=
null
&&
StringUtils
.
isNotBlank
(
obj
.
getString
(
"
bizS
ceneCode"
)))
{
sceneCodes
.
add
(
obj
.
getString
(
"
s
ceneCode"
));
sceneCodes
.
add
(
obj
.
getString
(
"
bizS
ceneCode"
));
}
}
}
}
if
(
CollectionUtils
.
isEmpty
(
sceneCodes
))
{
if
(
CollectionUtils
.
isEmpty
(
sceneCodes
))
{
...
...
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