Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rop-dj-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 0fd611cf
authored
Jun 22, 2026
by
谢海旭
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
招聘管理:新增试岗-查询小场景
1 parent
da1aae9b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
15 deletions
src/main/java/cn/com/glsx/dj/staff/controller/recruitment/RecruitmentDemandController.java
src/main/java/cn/com/glsx/dj/staff/request/recruitment/RecruitmentSubSceneListRequest.java
src/main/java/cn/com/glsx/dj/staff/controller/recruitment/RecruitmentDemandController.java
View file @
0fd611c
...
@@ -265,7 +265,7 @@ public class RecruitmentDemandController {
...
@@ -265,7 +265,7 @@ public class RecruitmentDemandController {
return
CommonUtil
.
convertRopResponse
(
response
);
return
CommonUtil
.
convertRopResponse
(
response
);
}
}
@ApiOperation
(
"新增试岗-门店列表(根据区域运营uuid查询)"
)
@ApiOperation
(
"新增试岗-
4s
门店列表(根据区域运营uuid查询)"
)
@ServiceMethod
(
method
=
"dj.staff.api.recruitment.demand.store.list"
,
needInSession
=
NeedInSessionType
.
YES
)
@ServiceMethod
(
method
=
"dj.staff.api.recruitment.demand.store.list"
,
needInSession
=
NeedInSessionType
.
YES
)
public
RopResponse
<
List
<
RecruitmentDemandStoreListDTO
>>
listStore
(
RecruitmentDemandStoreListRequest
request
)
{
public
RopResponse
<
List
<
RecruitmentDemandStoreListDTO
>>
listStore
(
RecruitmentDemandStoreListRequest
request
)
{
// 1. 查询区域运营管辖的门店
// 1. 查询区域运营管辖的门店
...
@@ -284,22 +284,17 @@ public class RecruitmentDemandController {
...
@@ -284,22 +284,17 @@ public class RecruitmentDemandController {
.
collect
(
Collectors
.
collectingAndThen
(
.
collect
(
Collectors
.
collectingAndThen
(
Collectors
.
toMap
(
RecruitmentDemandStoreListDTO:
:
getMerchantId
,
o
->
o
,
(
o1
,
o2
)
->
o1
),
Collectors
.
toMap
(
RecruitmentDemandStoreListDTO:
:
getMerchantId
,
o
->
o
,
(
o1
,
o2
)
->
o1
),
m
->
new
ArrayList
<>(
m
.
values
())));
m
->
new
ArrayList
<>(
m
.
values
())));
if
(
CollectionUtils
.
isEmpty
(
storeList
))
{
return
RopResponse
.
success
(
storeList
);
return
RopResponse
.
success
(
storeList
);
}
}
// 2. 查询关联园区店
@ApiOperation
(
"新增试岗-小场景列表查询"
)
List
<
Integer
>
shopMerchantIds
=
storeList
.
stream
().
map
(
RecruitmentDemandStoreListDTO:
:
getMerchantId
).
distinct
().
collect
(
Collectors
.
toList
());
@ServiceMethod
(
method
=
"dj.staff.api.recruitment.demand.sub.scene.list"
,
needInSession
=
NeedInSessionType
.
YES
)
SceneMerchantRefDTO
refDTO
=
SceneMerchantRefDTO
.
builder
().
mainMerchantIdList
(
shopMerchantIds
).
subMerchantName
(
request
.
getMerchantName
()).
build
();
public
RopResponse
<
List
<
RecruitmentSubSceneDTO
>>
listSubScene
(
RecruitmentSubSceneListRequest
request
)
{
RpcResponse
<
List
<
MerchantListDTO
>>
yqResp
=
sceneMerchantRefRemote
.
queryYqShopBy4s
(
refDTO
);
RecruitmentSubSceneDTO
dto
=
RecruitmentSubSceneDTO
.
builder
()
if
(
yqResp
.
hasResult
()
&&
CollectionUtils
.
isNotEmpty
(
yqResp
.
getResult
()))
{
.
merchantId
(
request
.
getMerchantId
())
List
<
RecruitmentDemandStoreListDTO
>
yqList
=
yqResp
.
getResult
().
stream
()
.
businessType
(
request
.
getBusinessType
())
.
filter
(
o
->
o
!=
null
&&
o
.
getYqMerchantId
()
!=
null
)
.
build
();
.
map
(
o
->
RecruitmentDemandStoreListDTO
.
builder
()
RpcResponse
<
List
<
RecruitmentSubSceneDTO
>>
response
=
recruitmentDemandRemote
.
listSubScenes
(
dto
);
.
merchantId
(
o
.
getYqMerchantId
()).
merchantName
(
o
.
getYqMerchantName
()).
build
())
return
CommonUtil
.
convertRopResponse
(
response
);
.
collect
(
Collectors
.
toList
());
storeList
.
addAll
(
yqList
);
}
return
RopResponse
.
success
(
storeList
);
}
}
}
}
src/main/java/cn/com/glsx/dj/staff/request/recruitment/RecruitmentSubSceneListRequest.java
0 → 100644
View file @
0fd611c
package
cn
.
com
.
glsx
.
dj
.
staff
.
request
.
recruitment
;
import
com.rop.AbstractRopRequest
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
@Data
public
class
RecruitmentSubSceneListRequest
extends
AbstractRopRequest
{
@ApiModelProperty
(
notes
=
"门店商户号"
,
required
=
true
)
private
Integer
merchantId
;
@ApiModelProperty
(
notes
=
"招聘需求业务类型值"
,
required
=
true
)
private
Integer
businessType
;
}
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