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 e7a021a0
authored
Jun 17, 2026
by
谢海旭
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
招聘管理:新增试岗-查询门店列表
1 parent
2b4d6be4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
64 additions
and
0 deletions
src/main/java/cn/com/glsx/dj/staff/controller/recruitment/RecruitmentDemandController.java
src/main/java/cn/com/glsx/dj/staff/request/recruitment/RecruitmentDemandStoreListRequest.java
src/main/java/cn/com/glsx/dj/staff/controller/recruitment/RecruitmentDemandController.java
View file @
e7a021a
package
cn
.
com
.
glsx
.
dj
.
staff
.
controller
.
recruitment
;
package
cn
.
com
.
glsx
.
dj
.
staff
.
controller
.
recruitment
;
import
cn.com.glsx.dj.smartcarlife.dto.LoginUserDTO
;
import
cn.com.glsx.dj.smartcarlife.dto.LoginUserDTO
;
import
cn.com.glsx.dj.smartcarlife.dto.MerchantListDTO
;
import
cn.com.glsx.dj.smartcarlife.dto.SceneMerchantRefDTO
;
import
cn.com.glsx.dj.smartcarlife.dto.ServiceMerchantDTO
;
import
cn.com.glsx.dj.smartcarlife.dto.ServiceMerchantDTO
;
import
cn.com.glsx.dj.smartcarlife.dto.ShopMerchantDirectorConfigDTO
;
import
cn.com.glsx.dj.smartcarlife.enums.DirectorTypeEnum
;
import
cn.com.glsx.dj.smartcarlife.remote.SceneMerchantRefRemote
;
import
cn.com.glsx.dj.smartcarlife.remote.ServiceMerchantRemote
;
import
cn.com.glsx.dj.smartcarlife.remote.ServiceMerchantRemote
;
import
cn.com.glsx.dj.smartcarlife.remote.ShopMerchantDirectorConfigRemote
;
import
cn.com.glsx.dj.staff.dto.recruitment.*
;
import
cn.com.glsx.dj.staff.dto.recruitment.*
;
import
cn.com.glsx.dj.staff.model.RecruitmentOnboardingPlan
;
import
cn.com.glsx.dj.staff.model.RecruitmentOnboardingPlan
;
import
cn.com.glsx.dj.staff.model.RecruitmentResume
;
import
cn.com.glsx.dj.staff.model.RecruitmentResume
;
...
@@ -31,6 +37,7 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -31,6 +37,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.core.env.Environment
;
import
org.springframework.core.env.Environment
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Objects
;
import
java.util.Objects
;
...
@@ -53,6 +60,10 @@ public class RecruitmentDemandController {
...
@@ -53,6 +60,10 @@ public class RecruitmentDemandController {
@Autowired
@Autowired
private
ServiceMerchantRemote
serviceMerchantRemote
;
private
ServiceMerchantRemote
serviceMerchantRemote
;
@Autowired
@Autowired
private
ShopMerchantDirectorConfigRemote
shopMerchantDirectorConfigRemote
;
@Autowired
private
SceneMerchantRefRemote
sceneMerchantRefRemote
;
@Autowired
private
ExcelAsyncImportService
excelAsyncImportService
;
private
ExcelAsyncImportService
excelAsyncImportService
;
@Autowired
@Autowired
private
Environment
env
;
private
Environment
env
;
...
@@ -253,4 +264,42 @@ public class RecruitmentDemandController {
...
@@ -253,4 +264,42 @@ public class RecruitmentDemandController {
RpcResponse
<
RecruitmentTrialOnboarding
>
response
=
recruitmentDemandRemote
.
trialOnboardingApproval
(
requestDTO
);
RpcResponse
<
RecruitmentTrialOnboarding
>
response
=
recruitmentDemandRemote
.
trialOnboardingApproval
(
requestDTO
);
return
CommonUtil
.
convertRopResponse
(
response
);
return
CommonUtil
.
convertRopResponse
(
response
);
}
}
@ApiOperation
(
"新增试岗-门店列表(根据区域运营uuid查询)"
)
@ServiceMethod
(
method
=
"dj.staff.api.recruitment.demand.store.list"
,
needInSession
=
NeedInSessionType
.
YES
)
public
RopResponse
<
List
<
RecruitmentDemandStoreListDTO
>>
listStore
(
RecruitmentDemandStoreListRequest
request
)
{
// 1. 查询区域运营管辖的门店
ShopMerchantDirectorConfigDTO
dto
=
ShopMerchantDirectorConfigDTO
.
builder
()
.
directorTypes
(
Arrays
.
asList
(
DirectorTypeEnum
.
AREA_SUPERVISION_1_1
.
getValue
(),
DirectorTypeEnum
.
AREA_SUPERVISION_2_1
.
getValue
()))
.
directorUserId
(
request
.
getRegionOperationId
())
.
merchantName
(
request
.
getMerchantName
()).
build
();
RpcResponse
<
List
<
ShopMerchantDirectorConfigDTO
>>
shopResp
=
shopMerchantDirectorConfigRemote
.
list
(
dto
);
if
(!
shopResp
.
hasResult
())
{
return
RopResponse
.
success
(
new
ArrayList
<>());
}
List
<
RecruitmentDemandStoreListDTO
>
storeList
=
shopResp
.
getResult
().
stream
()
.
filter
(
o
->
o
!=
null
&&
o
.
getMerchantId
()
!=
null
)
.
map
(
o
->
RecruitmentDemandStoreListDTO
.
builder
()
.
merchantId
(
o
.
getMerchantId
()).
merchantName
(
o
.
getMerchantName
()).
build
())
.
collect
(
Collectors
.
collectingAndThen
(
Collectors
.
toMap
(
RecruitmentDemandStoreListDTO:
:
getMerchantId
,
o
->
o
,
(
o1
,
o2
)
->
o1
),
m
->
new
ArrayList
<>(
m
.
values
())));
if
(
CollectionUtils
.
isEmpty
(
storeList
))
{
return
RopResponse
.
success
(
storeList
);
}
// 2. 查询关联园区店
List
<
Integer
>
shopMerchantIds
=
storeList
.
stream
().
map
(
RecruitmentDemandStoreListDTO:
:
getMerchantId
).
distinct
().
collect
(
Collectors
.
toList
());
SceneMerchantRefDTO
refDTO
=
SceneMerchantRefDTO
.
builder
().
mainMerchantIdList
(
shopMerchantIds
).
subMerchantName
(
request
.
getMerchantName
()).
build
();
RpcResponse
<
List
<
MerchantListDTO
>>
yqResp
=
sceneMerchantRefRemote
.
queryYqShopBy4s
(
refDTO
);
if
(
yqResp
.
hasResult
()
&&
CollectionUtils
.
isNotEmpty
(
yqResp
.
getResult
()))
{
List
<
RecruitmentDemandStoreListDTO
>
yqList
=
yqResp
.
getResult
().
stream
()
.
filter
(
o
->
o
!=
null
&&
o
.
getYqMerchantId
()
!=
null
)
.
map
(
o
->
RecruitmentDemandStoreListDTO
.
builder
()
.
merchantId
(
o
.
getYqMerchantId
()).
merchantName
(
o
.
getYqMerchantName
()).
build
())
.
collect
(
Collectors
.
toList
());
storeList
.
addAll
(
yqList
);
}
return
RopResponse
.
success
(
storeList
);
}
}
}
src/main/java/cn/com/glsx/dj/staff/request/recruitment/RecruitmentDemandStoreListRequest.java
0 → 100644
View file @
e7a021a
package
cn
.
com
.
glsx
.
dj
.
staff
.
request
.
recruitment
;
import
com.rop.AbstractRopRequest
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
@Data
public
class
RecruitmentDemandStoreListRequest
extends
AbstractRopRequest
{
@ApiModelProperty
(
notes
=
"区域运营uuid"
,
required
=
true
)
private
String
regionOperationId
;
@ApiModelProperty
(
notes
=
"商户名称-模糊搜索"
)
private
String
merchantName
;
}
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