Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rop-dj-staff-miniprogram
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 0ff6b7d9
authored
Jul 03, 2026
by
叶立庆
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v5.8.3' into 'master'
上线合并 See merge request
!12
2 parents
a69a246a
ab2d6226
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
250 additions
and
22 deletions
pom.xml
src/main/java/cn/com/glsx/dj/staff/miniprogram/controller/recruitment/RecruitmentDemandController.java
src/main/java/cn/com/glsx/dj/staff/miniprogram/controller/recruitment/RecruitmentTrialOnboardingController.java
src/main/java/cn/com/glsx/dj/staff/miniprogram/request/recruitment/RecruitmentDemandAddRequest.java
src/main/java/cn/com/glsx/dj/staff/miniprogram/request/recruitment/RecruitmentSubSceneListRequest.java
src/main/java/cn/com/glsx/dj/staff/miniprogram/request/recruitment/RecruitmentTrialOnboardingAddRequest.java
src/main/java/cn/com/glsx/dj/staff/miniprogram/response/recruitment/RecruitmentResponse.java
src/main/java/cn/com/glsx/dj/staff/miniprogram/response/recruitment/RecruitmentTrialOnboardingResponse.java
src/main/java/cn/com/glsx/dj/staff/miniprogram/response/recruitment/RecruitmentTrialStoreListResponse.java
src/main/java/cn/com/glsx/dj/staff/miniprogram/service/recruitment/RecruitmentDemandService.java
pom.xml
View file @
0ff6b7d
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
</parent>
</parent>
<groupId>
cn.com.glsx.dj
</groupId>
<groupId>
cn.com.glsx.dj
</groupId>
<artifactId>
rop-dj-staff-miniprogram
</artifactId>
<artifactId>
rop-dj-staff-miniprogram
</artifactId>
<version>
5.
7.4
-SNAPSHOT
</version>
<version>
5.
8.3
-SNAPSHOT
</version>
<name>
rop-dj-staff-miniprogram
</name>
<name>
rop-dj-staff-miniprogram
</name>
<packaging>
war
</packaging>
<packaging>
war
</packaging>
<dependencies>
<dependencies>
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
<dependency>
<dependency>
<groupId>
cn.com.glsx.dj
</groupId>
<groupId>
cn.com.glsx.dj
</groupId>
<artifactId>
rpc-dj-staff-api
</artifactId>
<artifactId>
rpc-dj-staff-api
</artifactId>
<version>
5.8.
2
-SNAPSHOT
</version>
<version>
5.8.
3
-SNAPSHOT
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
cn.com.glsx.dj
</groupId>
<groupId>
cn.com.glsx.dj
</groupId>
...
...
src/main/java/cn/com/glsx/dj/staff/miniprogram/controller/recruitment/RecruitmentDemandController.java
View file @
0ff6b7d
...
@@ -20,17 +20,23 @@ import com.rop.annotation.ServiceMethod;
...
@@ -20,17 +20,23 @@ import com.rop.annotation.ServiceMethod;
import
com.rop.annotation.ServiceMethodBean
;
import
com.rop.annotation.ServiceMethodBean
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.RequiredArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
import
java.util.List
;
@Slf4j
@Slf4j
@ServiceMethodBean
(
version
=
"1.0.0"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethodBean
(
version
=
"1.0.0"
,
needInSession
=
NeedInSessionType
.
NO
)
@Api
(
"招聘需求"
)
@Api
(
"招聘需求"
)
@RestController
@RequiredArgsConstructor
public
class
RecruitmentDemandController
{
public
class
RecruitmentDemandController
{
@Autowired
private
RecruitmentDemandService
recruitmentDemandService
;
private
final
RecruitmentDemandService
recruitmentDemandService
;
@ApiOperation
(
"招聘需求统计"
)
@ApiOperation
(
"招聘需求统计"
)
@ServiceMethod
(
method
=
"dj.api.staff.miniprogram.recruitment.demand.stat"
,
needInSession
=
NeedInSessionType
.
YES
)
@ServiceMethod
(
method
=
"dj.api.staff.miniprogram.recruitment.demand.stat"
,
needInSession
=
NeedInSessionType
.
YES
)
...
@@ -55,18 +61,21 @@ public class RecruitmentDemandController {
...
@@ -55,18 +61,21 @@ public class RecruitmentDemandController {
@ApiOperation
(
"招聘需求详情"
)
@ApiOperation
(
"招聘需求详情"
)
@ServiceMethod
(
method
=
"dj.api.staff.miniprogram.recruitment.demand.detail"
,
needInSession
=
NeedInSessionType
.
YES
)
@ServiceMethod
(
method
=
"dj.api.staff.miniprogram.recruitment.demand.detail"
,
needInSession
=
NeedInSessionType
.
YES
)
@PostMapping
(
"/dj.api.staff.miniprogram.recruitment.demand.detail/1.0.0"
)
public
RopResponse
<
RecruitmentDemandDetailResponse
>
getRecruitmentDemandDetail
(
CommonIdRequest
request
){
public
RopResponse
<
RecruitmentDemandDetailResponse
>
getRecruitmentDemandDetail
(
CommonIdRequest
request
){
return
recruitmentDemandService
.
getRecruitmentDemandDetail
(
request
);
return
recruitmentDemandService
.
getRecruitmentDemandDetail
(
request
);
}
}
@ApiOperation
(
"添加招聘需求-门店列表"
)
@ApiOperation
(
"添加招聘需求-门店列表"
)
@ServiceMethod
(
method
=
"dj.api.staff.miniprogram.recruitment.demand.store.list"
,
needInSession
=
NeedInSessionType
.
YES
)
@ServiceMethod
(
method
=
"dj.api.staff.miniprogram.recruitment.demand.store.list"
,
needInSession
=
NeedInSessionType
.
YES
)
@PostMapping
(
"/dj.api.staff.miniprogram.recruitment.demand.store.list/1.0.0"
)
public
RopResponse
<
List
<
RecruitmentDemandStoreListResponse
>>
listStore
(
RecruitmentDemandStoreListRequest
request
){
public
RopResponse
<
List
<
RecruitmentDemandStoreListResponse
>>
listStore
(
RecruitmentDemandStoreListRequest
request
){
return
recruitmentDemandService
.
listStore
(
request
);
return
recruitmentDemandService
.
listStore
(
request
);
}
}
@ApiOperation
(
"添加招聘需求"
)
@ApiOperation
(
"添加招聘需求"
)
@ServiceMethod
(
method
=
"dj.api.staff.miniprogram.recruitment.demand.add"
,
needInSession
=
NeedInSessionType
.
YES
)
@ServiceMethod
(
method
=
"dj.api.staff.miniprogram.recruitment.demand.add"
,
needInSession
=
NeedInSessionType
.
YES
)
@PostMapping
(
"/dj.api.staff.miniprogram.recruitment.demand.add/1.0.0"
)
public
RopResponse
<
Boolean
>
add
(
RecruitmentDemandAddRequest
request
){
public
RopResponse
<
Boolean
>
add
(
RecruitmentDemandAddRequest
request
){
RecruitmentDemandDTO
dto
=
CommonUtil
.
convertRequest
(
RecruitmentDemandDTO
.
class
);
RecruitmentDemandDTO
dto
=
CommonUtil
.
convertRequest
(
RecruitmentDemandDTO
.
class
);
return
recruitmentDemandService
.
addRecruitmentDemand
(
dto
);
return
recruitmentDemandService
.
addRecruitmentDemand
(
dto
);
...
...
src/main/java/cn/com/glsx/dj/staff/miniprogram/controller/recruitment/RecruitmentTrialOnboardingController.java
View file @
0ff6b7d
package
cn
.
com
.
glsx
.
dj
.
staff
.
miniprogram
.
controller
.
recruitment
;
package
cn
.
com
.
glsx
.
dj
.
staff
.
miniprogram
.
controller
.
recruitment
;
import
cn.com.glsx.dj.staff.dto.recruitment.RecruitmentSubSceneDTO
;
import
cn.com.glsx.dj.staff.dto.recruitment.RecruitmentTrialOnboardingDTO
;
import
cn.com.glsx.dj.staff.dto.recruitment.RecruitmentTrialOnboardingDTO
;
import
cn.com.glsx.dj.staff.miniprogram.request.recruitment.RecruitmentTrialOnboardingAddRequest
;
import
cn.com.glsx.dj.staff.miniprogram.request.recruitment.*
;
import
cn.com.glsx.dj.staff.miniprogram.request.recruitment.RecruitmentTrialOnboardingDeleteRequest
;
import
cn.com.glsx.dj.staff.miniprogram.request.common.CommonIdRequest
;
import
cn.com.glsx.dj.staff.miniprogram.request.recruitment.RecruitmentTrialOnboardingProcessRequest
;
import
cn.com.glsx.dj.staff.miniprogram.response.recruitment.RecruitmentTrialOnboardingResponse
;
import
cn.com.glsx.dj.staff.miniprogram.response.recruitment.RecruitmentTrialStoreListResponse
;
import
cn.com.glsx.dj.staff.miniprogram.service.recruitment.RecruitmentDemandService
;
import
cn.com.glsx.dj.staff.miniprogram.service.recruitment.RecruitmentDemandService
;
import
cn.com.glsx.dj.staff.miniprogram.util.CommonUtil
;
import
cn.com.glsx.dj.staff.miniprogram.util.CommonUtil
;
import
cn.com.glsx.dj.staff.remote.RecruitmentDemandRemote
;
import
cn.com.glsx.framework.core.beans.rpc.RpcResponse
;
import
cn.com.glsx.framework.rop.response.RopResponse
;
import
cn.com.glsx.framework.rop.response.RopResponse
;
import
com.rop.annotation.NeedInSessionType
;
import
com.rop.annotation.NeedInSessionType
;
import
com.rop.annotation.ServiceMethod
;
import
com.rop.annotation.ServiceMethod
;
import
com.rop.annotation.ServiceMethodBean
;
import
com.rop.annotation.ServiceMethodBean
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.RequiredArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
@Slf4j
@Slf4j
@ServiceMethodBean
(
version
=
"1.0.0"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethodBean
(
version
=
"1.0.0"
,
needInSession
=
NeedInSessionType
.
NO
)
@Api
(
"招聘试岗(试岗计划)"
)
@Api
(
"招聘试岗(试岗计划)"
)
@RestController
@RequiredArgsConstructor
public
class
RecruitmentTrialOnboardingController
{
public
class
RecruitmentTrialOnboardingController
{
@Autowired
private
final
RecruitmentDemandService
recruitmentDemandService
;
private
RecruitmentDemandService
recruitmentDemandService
;
private
final
RecruitmentDemandRemote
recruitmentDemandRemote
;
/**
/**
* 新增试岗人员
* 新增试岗人员
*/
*/
@ApiOperation
(
"新增试岗人员"
)
@ApiOperation
(
"新增试岗人员"
)
@ServiceMethod
(
method
=
"dj.api.staff.miniprogram.recruitment.trial.onboarding.add"
,
needInSession
=
NeedInSessionType
.
YES
)
@ServiceMethod
(
method
=
"dj.api.staff.miniprogram.recruitment.trial.onboarding.add"
,
needInSession
=
NeedInSessionType
.
YES
)
@PostMapping
(
"/dj.api.staff.miniprogram.recruitment.trial.onboarding.add/1.0.0"
)
public
RopResponse
<
Boolean
>
trialOnboardingAdd
(
RecruitmentTrialOnboardingAddRequest
request
)
{
public
RopResponse
<
Boolean
>
trialOnboardingAdd
(
RecruitmentTrialOnboardingAddRequest
request
)
{
RecruitmentTrialOnboardingDTO
dto
=
CommonUtil
.
convertRequest
(
RecruitmentTrialOnboardingDTO
.
class
);
RecruitmentTrialOnboardingDTO
dto
=
CommonUtil
.
convertRequest
(
RecruitmentTrialOnboardingDTO
.
class
);
...
@@ -74,4 +86,36 @@ public class RecruitmentTrialOnboardingController {
...
@@ -74,4 +86,36 @@ public class RecruitmentTrialOnboardingController {
dto
.
setProcessTime
(
new
Date
());
dto
.
setProcessTime
(
new
Date
());
return
recruitmentDemandService
.
trialOnboardingProcess
(
dto
);
return
recruitmentDemandService
.
trialOnboardingProcess
(
dto
);
}
}
/**
* 试岗门店(4S店)下拉列表:区域运营名下关联的全部4S店
*/
@ApiOperation
(
"试岗门店(4S店)下拉列表"
)
@ServiceMethod
(
method
=
"dj.api.staff.miniprogram.recruitment.trial.onboarding.store.list"
,
needInSession
=
NeedInSessionType
.
YES
)
@PostMapping
(
"/dj.api.staff.miniprogram.recruitment.trial.onboarding.store.list/1.0.0"
)
public
RopResponse
<
List
<
RecruitmentTrialStoreListResponse
>>
trialStoreList
(
RecruitmentDemandStoreListRequest
request
)
{
return
recruitmentDemandService
.
listTrialStore
(
request
.
getMerchantName
());
}
/**
* 试岗人员详情:基础信息(人员姓名、手机号、招聘渠道、试岗时间、试岗门店、业务场景、驻店类型)+ 审批信息(结果、驳回原因)
*/
@ApiOperation
(
"试岗人员详情"
)
@ServiceMethod
(
method
=
"dj.api.staff.miniprogram.recruitment.trial.onboarding.detail"
,
needInSession
=
NeedInSessionType
.
YES
)
@PostMapping
(
"/dj.api.staff.miniprogram.recruitment.trial.onboarding.detail/1.0.0"
)
public
RopResponse
<
RecruitmentTrialOnboardingResponse
>
trialOnboardingDetail
(
CommonIdRequest
request
)
{
return
recruitmentDemandService
.
getTrialOnboardingDetail
(
request
);
}
@ApiOperation
(
"新增试岗-小场景列表查询"
)
@ServiceMethod
(
method
=
"dj.staff.api.recruitment.demand.sub.scene.list"
,
needInSession
=
NeedInSessionType
.
YES
)
@PostMapping
(
"/dj.staff.api.recruitment.demand.sub.scene.list/1.0.0"
)
public
RopResponse
<
List
<
RecruitmentSubSceneDTO
>>
listSubScene
(
RecruitmentSubSceneListRequest
request
)
{
RecruitmentSubSceneDTO
dto
=
RecruitmentSubSceneDTO
.
builder
()
.
merchantId
(
request
.
getMerchantId
())
.
businessType
(
request
.
getBusinessType
())
.
build
();
RpcResponse
<
List
<
RecruitmentSubSceneDTO
>>
response
=
recruitmentDemandRemote
.
listSubScenes
(
dto
);
return
CommonUtil
.
convertRopResponse
(
response
);
}
}
}
src/main/java/cn/com/glsx/dj/staff/miniprogram/request/recruitment/RecruitmentDemandAddRequest.java
View file @
0ff6b7d
...
@@ -6,6 +6,8 @@ import lombok.Data;
...
@@ -6,6 +6,8 @@ import lombok.Data;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.Pattern
;
import
javax.validation.constraints.Size
;
@Data
@Data
public
class
RecruitmentDemandAddRequest
extends
AbstractRopRequest
{
public
class
RecruitmentDemandAddRequest
extends
AbstractRopRequest
{
...
@@ -56,6 +58,12 @@ public class RecruitmentDemandAddRequest extends AbstractRopRequest {
...
@@ -56,6 +58,12 @@ public class RecruitmentDemandAddRequest extends AbstractRopRequest {
@ApiModelProperty
(
notes
=
"门店地址,省市联动(未创建系统门店时必填)"
)
@ApiModelProperty
(
notes
=
"门店地址,省市联动(未创建系统门店时必填)"
)
private
String
merchantAddress
;
private
String
merchantAddress
;
/**
* 门店地址详情,最大不超过60个字符
*/
@Size
(
max
=
60
,
message
=
"门店地址详情最大不超过60个字符"
)
private
String
merchantAddressDetail
;
@ApiModelProperty
(
notes
=
"省市区编码,格式:省编码/市编码(未创建系统门店时必填)"
)
@ApiModelProperty
(
notes
=
"省市区编码,格式:省编码/市编码(未创建系统门店时必填)"
)
private
String
provinceCityCode
;
private
String
provinceCityCode
;
...
...
src/main/java/cn/com/glsx/dj/staff/miniprogram/request/recruitment/RecruitmentSubSceneListRequest.java
0 → 100644
View file @
0ff6b7d
package
cn
.
com
.
glsx
.
dj
.
staff
.
miniprogram
.
request
.
recruitment
;
import
com.rop.AbstractRopRequest
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
/**
* @Author huangwei
* @Description
* @Date 2026/6/22 17:16
*/
@Data
public
class
RecruitmentSubSceneListRequest
extends
AbstractRopRequest
{
@ApiModelProperty
(
notes
=
"门店商户号"
,
required
=
true
)
private
Integer
merchantId
;
@ApiModelProperty
(
notes
=
"招聘需求业务类型值"
,
required
=
true
)
private
Integer
businessType
;
}
src/main/java/cn/com/glsx/dj/staff/miniprogram/request/recruitment/RecruitmentTrialOnboardingAddRequest.java
View file @
0ff6b7d
...
@@ -45,4 +45,39 @@ public class RecruitmentTrialOnboardingAddRequest extends AbstractRopRequest {
...
@@ -45,4 +45,39 @@ public class RecruitmentTrialOnboardingAddRequest extends AbstractRopRequest {
@NotBlank
(
message
=
"招聘渠道类型名不能为空"
)
@NotBlank
(
message
=
"招聘渠道类型名不能为空"
)
@ApiModelProperty
(
notes
=
"招聘渠道类型名"
,
required
=
true
)
@ApiModelProperty
(
notes
=
"招聘渠道类型名"
,
required
=
true
)
private
String
channelName
;
private
String
channelName
;
/**
* 试岗门店商户号(4s店或园区店)
*/
@NotBlank
(
message
=
"试岗门店商户号不能为空"
)
@ApiModelProperty
(
notes
=
"试岗门店商户号(4s店或园区店)"
,
required
=
true
)
private
String
storeNo
;
/**
* 试岗门店名称
*/
@NotBlank
(
message
=
"试岗门店名称不能为空"
)
@ApiModelProperty
(
notes
=
"试岗门店名称"
,
required
=
true
)
private
String
storeName
;
/**
* 业务场景信息,JSON数组格式
*/
@NotBlank
(
message
=
"业务场景信息不能为空"
)
@ApiModelProperty
(
notes
=
"业务场景信息,JSON数组格式"
,
required
=
true
)
private
String
bizSceneInfo
;
/**
* 驻店类型字典值
*/
@NotBlank
(
message
=
"驻店类型字典值不能为空"
)
@ApiModelProperty
(
notes
=
"驻店类型字典值"
,
required
=
true
)
private
String
residentType
;
/**
* 驻店类型字典名
*/
@NotBlank
(
message
=
"驻店类型字典名不能为空"
)
@ApiModelProperty
(
notes
=
"驻店类型字典名"
,
required
=
true
)
private
String
residentTypeName
;
}
}
src/main/java/cn/com/glsx/dj/staff/miniprogram/response/recruitment/RecruitmentResponse.java
View file @
0ff6b7d
...
@@ -64,4 +64,7 @@ public class RecruitmentResponse implements Serializable {
...
@@ -64,4 +64,7 @@ public class RecruitmentResponse implements Serializable {
@ApiModelProperty
(
notes
=
"门店地址"
)
@ApiModelProperty
(
notes
=
"门店地址"
)
private
String
merchantAddress
;
private
String
merchantAddress
;
@ApiModelProperty
(
notes
=
"门店地址详情"
)
private
String
merchantAddressDetail
;
}
}
src/main/java/cn/com/glsx/dj/staff/miniprogram/response/recruitment/RecruitmentTrialOnboardingResponse.java
View file @
0ff6b7d
...
@@ -45,4 +45,25 @@ public class RecruitmentTrialOnboardingResponse implements Serializable {
...
@@ -45,4 +45,25 @@ public class RecruitmentTrialOnboardingResponse implements Serializable {
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm"
,
timezone
=
"GMT+8"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm"
,
timezone
=
"GMT+8"
)
private
Date
processTime
;
private
Date
processTime
;
@ApiModelProperty
(
notes
=
"试岗门店商户号(4s店或园区店)"
)
private
String
storeNo
;
@ApiModelProperty
(
notes
=
"试岗门店名称"
)
private
String
storeName
;
@ApiModelProperty
(
notes
=
"业务场景信息,JSON数组格式"
)
private
String
bizSceneInfo
;
@ApiModelProperty
(
notes
=
"驻店类型字典值"
)
private
String
residentType
;
@ApiModelProperty
(
notes
=
"驻店类型字典名"
)
private
String
residentTypeName
;
@ApiModelProperty
(
notes
=
"审批结果,null-审批中 0-驳回 1-通过"
)
private
Integer
approvalResult
;
@ApiModelProperty
(
notes
=
"审批备注/驳回原因"
)
private
String
approvalRemark
;
}
}
src/main/java/cn/com/glsx/dj/staff/miniprogram/response/recruitment/RecruitmentTrialStoreListResponse.java
0 → 100644
View file @
0ff6b7d
package
cn
.
com
.
glsx
.
dj
.
staff
.
miniprogram
.
response
.
recruitment
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
lombok.experimental.SuperBuilder
;
import
java.io.Serializable
;
/**
* 试岗门店(4S店)下拉项
*/
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@Data
public
class
RecruitmentTrialStoreListResponse
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 试岗门店商户号
*/
@ApiModelProperty
(
notes
=
"试岗门店商户号"
)
private
String
storeNo
;
/**
* 试岗门店名称
*/
@ApiModelProperty
(
notes
=
"试岗门店名称"
)
private
String
storeName
;
}
src/main/java/cn/com/glsx/dj/staff/miniprogram/service/recruitment/RecruitmentDemandService.java
View file @
0ff6b7d
...
@@ -12,6 +12,7 @@ import cn.com.glsx.dj.staff.dto.recruitment.RecruitmentDemandDetailDTO;
...
@@ -12,6 +12,7 @@ import cn.com.glsx.dj.staff.dto.recruitment.RecruitmentDemandDetailDTO;
import
cn.com.glsx.dj.staff.dto.recruitment.RecruitmentTrialOnboardingDTO
;
import
cn.com.glsx.dj.staff.dto.recruitment.RecruitmentTrialOnboardingDTO
;
import
cn.com.glsx.dj.staff.enums.recruitment.RecruitmentDemandBusinessTypeEnum
;
import
cn.com.glsx.dj.staff.enums.recruitment.RecruitmentDemandBusinessTypeEnum
;
import
cn.com.glsx.dj.staff.miniprogram.convert.RecruitmentDemandDTOConvert
;
import
cn.com.glsx.dj.staff.miniprogram.convert.RecruitmentDemandDTOConvert
;
import
cn.com.glsx.dj.staff.miniprogram.convert.RecruitmentTrialOnboardingDTOConvert
;
import
cn.com.glsx.dj.staff.miniprogram.enums.RopErrorEnum
;
import
cn.com.glsx.dj.staff.miniprogram.enums.RopErrorEnum
;
import
cn.com.glsx.dj.staff.miniprogram.request.common.CommonIdRequest
;
import
cn.com.glsx.dj.staff.miniprogram.request.common.CommonIdRequest
;
import
cn.com.glsx.dj.staff.miniprogram.request.recruitment.RecruitmentDemandStoreListRequest
;
import
cn.com.glsx.dj.staff.miniprogram.request.recruitment.RecruitmentDemandStoreListRequest
;
...
@@ -19,6 +20,8 @@ import cn.com.glsx.dj.staff.miniprogram.response.recruitment.RecruitmentDemandDe
...
@@ -19,6 +20,8 @@ import cn.com.glsx.dj.staff.miniprogram.response.recruitment.RecruitmentDemandDe
import
cn.com.glsx.dj.staff.miniprogram.response.recruitment.RecruitmentDemandStatResponse
;
import
cn.com.glsx.dj.staff.miniprogram.response.recruitment.RecruitmentDemandStatResponse
;
import
cn.com.glsx.dj.staff.miniprogram.response.recruitment.RecruitmentDemandStoreListResponse
;
import
cn.com.glsx.dj.staff.miniprogram.response.recruitment.RecruitmentDemandStoreListResponse
;
import
cn.com.glsx.dj.staff.miniprogram.response.recruitment.RecruitmentDemandTSStatResponse
;
import
cn.com.glsx.dj.staff.miniprogram.response.recruitment.RecruitmentDemandTSStatResponse
;
import
cn.com.glsx.dj.staff.miniprogram.response.recruitment.RecruitmentTrialOnboardingResponse
;
import
cn.com.glsx.dj.staff.miniprogram.response.recruitment.RecruitmentTrialStoreListResponse
;
import
cn.com.glsx.dj.staff.miniprogram.util.CommonUtil
;
import
cn.com.glsx.dj.staff.miniprogram.util.CommonUtil
;
import
cn.com.glsx.dj.staff.remote.RecruitmentDemandRemote
;
import
cn.com.glsx.dj.staff.remote.RecruitmentDemandRemote
;
import
cn.com.glsx.framework.core.beans.rpc.RpcPagination
;
import
cn.com.glsx.framework.core.beans.rpc.RpcPagination
;
...
@@ -57,25 +60,17 @@ public class RecruitmentDemandService {
...
@@ -57,25 +60,17 @@ public class RecruitmentDemandService {
* @date 2025年10月20日 15:19:14
* @date 2025年10月20日 15:19:14
*/
*/
public
RopResponse
<
List
<
RecruitmentDemandStoreListResponse
>>
listStore
(
RecruitmentDemandStoreListRequest
request
)
{
public
RopResponse
<
List
<
RecruitmentDemandStoreListResponse
>>
listStore
(
RecruitmentDemandStoreListRequest
request
)
{
log
.
info
(
"list store, 1.查找当前登录人作为区域运营的门店列表"
);
// 1.查找当前登录人作为区域运营的4S店列表
ShopMerchantDirectorConfigDTO
dto
=
ShopMerchantDirectorConfigDTO
.
builder
()
List
<
RecruitmentDemandStoreListResponse
>
shopStoreList
=
queryShopStoreList
(
request
.
getMerchantName
());
.
directorTypes
(
Arrays
.
asList
(
DirectorTypeEnum
.
AREA_SUPERVISION_1_1
.
getValue
(),
DirectorTypeEnum
.
AREA_SUPERVISION_2_1
.
getValue
()))
if
(
shopStoreList
==
null
)
{
.
directorUserId
(
CommonUtil
.
getLoginUserInfo
().
getUuid
())
.
merchantName
(
request
.
getMerchantName
()).
build
();
RpcResponse
<
List
<
ShopMerchantDirectorConfigDTO
>>
shopDirectorConfigResp
=
shopMerchantDirectorConfigRemote
.
list
(
dto
);
if
(!
shopDirectorConfigResp
.
hasResult
())
{
log
.
error
(
"list store, 1.查找当前登录人作为区域运营的门店列表失败, msg:{}"
,
shopDirectorConfigResp
.
getMessage
());
return
RopResponse
.
error
(
RopErrorEnum
.
RECRUITMENT_DEMAND_GET_STORE_LIST_ERROR
);
return
RopResponse
.
error
(
RopErrorEnum
.
RECRUITMENT_DEMAND_GET_STORE_LIST_ERROR
);
}
}
List
<
RecruitmentDemandStoreListResponse
>
shopStoreList
=
new
ArrayList
<>(
shopDirectorConfigResp
.
getResult
().
stream
()
.
filter
(
o
->
o
!=
null
&&
o
.
getMerchantId
()
!=
null
).
map
(
o
->
RecruitmentDemandStoreListResponse
.
builder
()
.
merchantId
(
o
.
getMerchantId
()).
merchantName
(
o
.
getMerchantName
()).
build
()).
collect
(
Collectors
.
toMap
(
RecruitmentDemandStoreListResponse:
:
getMerchantId
,
o
->
o
,
(
o1
,
o2
)
->
o1
)).
values
());
log
.
info
(
"list store, 1.查找当前登录人作为区域运营的门店列表成功, size:{}"
,
shopStoreList
.
size
());
List
<
RecruitmentDemandStoreListResponse
>
storeList
=
new
ArrayList
<>();
List
<
RecruitmentDemandStoreListResponse
>
storeList
=
new
ArrayList
<>();
if
(
CollectionUtils
.
isEmpty
(
shopStoreList
))
{
if
(
CollectionUtils
.
isEmpty
(
shopStoreList
))
{
return
RopResponse
.
success
(
storeList
);
return
RopResponse
.
success
(
storeList
);
}
}
storeList
.
addAll
(
shopStoreList
);
storeList
.
addAll
(
shopStoreList
);
// 2.查找门店关联园区店列表
log
.
info
(
"list store, 2.查找门店关联园区店列表"
);
log
.
info
(
"list store, 2.查找门店关联园区店列表"
);
List
<
Integer
>
shopMerchantIds
=
shopStoreList
.
stream
().
map
(
RecruitmentDemandStoreListResponse:
:
getMerchantId
).
distinct
().
collect
(
Collectors
.
toList
());
List
<
Integer
>
shopMerchantIds
=
shopStoreList
.
stream
().
map
(
RecruitmentDemandStoreListResponse:
:
getMerchantId
).
distinct
().
collect
(
Collectors
.
toList
());
SceneMerchantRefDTO
sceneMerchantRefDTO
=
SceneMerchantRefDTO
.
builder
().
mainMerchantIdList
(
shopMerchantIds
).
subMerchantName
(
request
.
getMerchantName
()).
build
();
SceneMerchantRefDTO
sceneMerchantRefDTO
=
SceneMerchantRefDTO
.
builder
().
mainMerchantIdList
(
shopMerchantIds
).
subMerchantName
(
request
.
getMerchantName
()).
build
();
...
@@ -94,6 +89,51 @@ public class RecruitmentDemandService {
...
@@ -94,6 +89,51 @@ public class RecruitmentDemandService {
return
RopResponse
.
success
(
storeList
);
return
RopResponse
.
success
(
storeList
);
}
}
/**
* 查询当前登录人(区域运营)名下关联的全部4S店列表(公共方法,供门店列表与试岗门店下拉复用)。
*
* @param merchantName 门店名称模糊搜索关键字,可为空
* @return 4S店列表(按merchantId去重);查询失败返回null
*/
private
List
<
RecruitmentDemandStoreListResponse
>
queryShopStoreList
(
String
merchantName
)
{
log
.
info
(
"list shop store, 查找当前登录人作为区域运营的4S店列表"
);
ShopMerchantDirectorConfigDTO
dto
=
ShopMerchantDirectorConfigDTO
.
builder
()
.
directorTypes
(
Arrays
.
asList
(
DirectorTypeEnum
.
AREA_SUPERVISION_1_1
.
getValue
(),
DirectorTypeEnum
.
AREA_SUPERVISION_2_1
.
getValue
()))
.
directorUserId
(
CommonUtil
.
getLoginUserInfo
().
getUuid
())
.
merchantName
(
merchantName
).
build
();
RpcResponse
<
List
<
ShopMerchantDirectorConfigDTO
>>
shopDirectorConfigResp
=
shopMerchantDirectorConfigRemote
.
list
(
dto
);
if
(!
shopDirectorConfigResp
.
hasResult
())
{
log
.
error
(
"list shop store, 查找当前登录人作为区域运营的4S店列表失败, msg:{}"
,
shopDirectorConfigResp
.
getMessage
());
return
null
;
}
List
<
RecruitmentDemandStoreListResponse
>
shopStoreList
=
new
ArrayList
<>(
shopDirectorConfigResp
.
getResult
().
stream
()
.
filter
(
o
->
o
!=
null
&&
o
.
getMerchantId
()
!=
null
).
map
(
o
->
RecruitmentDemandStoreListResponse
.
builder
()
.
merchantId
(
o
.
getMerchantId
()).
merchantName
(
o
.
getMerchantName
()).
build
()).
collect
(
Collectors
.
toMap
(
RecruitmentDemandStoreListResponse:
:
getMerchantId
,
o
->
o
,
(
o1
,
o2
)
->
o1
)).
values
());
log
.
info
(
"list shop store, 查找当前登录人作为区域运营的4S店列表成功, size:{}"
,
shopStoreList
.
size
());
return
shopStoreList
;
}
/**
* 试岗门店(4S店)下拉列表:区域运营名下关联的全部4S店,转换为试岗门店storeNo/storeName。
* 用于新增/编辑试岗人员时选择试岗门店。
*
* @param storeName 门店名称模糊搜索关键字,可为空
* @return 试岗门店列表
*/
public
RopResponse
<
List
<
RecruitmentTrialStoreListResponse
>>
listTrialStore
(
String
storeName
)
{
List
<
RecruitmentDemandStoreListResponse
>
shopStoreList
=
queryShopStoreList
(
storeName
);
if
(
shopStoreList
==
null
)
{
return
RopResponse
.
error
(
RopErrorEnum
.
RECRUITMENT_DEMAND_GET_STORE_LIST_ERROR
);
}
List
<
RecruitmentTrialStoreListResponse
>
storeList
=
shopStoreList
.
stream
()
.
filter
(
o
->
o
!=
null
&&
o
.
getMerchantId
()
!=
null
)
.
map
(
o
->
RecruitmentTrialStoreListResponse
.
builder
()
.
storeNo
(
String
.
valueOf
(
o
.
getMerchantId
()))
.
storeName
(
o
.
getMerchantName
()).
build
())
.
collect
(
Collectors
.
toList
());
return
RopResponse
.
success
(
storeList
);
}
/**
/**
* 统计区域运营的招聘需求数量
* 统计区域运营的招聘需求数量
...
@@ -268,4 +308,17 @@ public class RecruitmentDemandService {
...
@@ -268,4 +308,17 @@ public class RecruitmentDemandService {
public
RopResponse
<
Boolean
>
trialOnboardingProcess
(
RecruitmentTrialOnboardingDTO
dto
)
{
public
RopResponse
<
Boolean
>
trialOnboardingProcess
(
RecruitmentTrialOnboardingDTO
dto
)
{
return
CommonUtil
.
convertRopResponse
(
recruitmentDemandRemote
.
trialOnboardingProcess
(
dto
),
r
->
Boolean
.
TRUE
);
return
CommonUtil
.
convertRopResponse
(
recruitmentDemandRemote
.
trialOnboardingProcess
(
dto
),
r
->
Boolean
.
TRUE
);
}
}
/**
* 移动端-试岗人员详情
* 基础信息(人员姓名、手机号、招聘渠道、试岗时间、试岗门店、业务场景、驻店类型)+ 审批信息(结果、驳回原因)
*
* @param request id为试岗记录ID
* @return 试岗人员详情
*/
public
RopResponse
<
RecruitmentTrialOnboardingResponse
>
getTrialOnboardingDetail
(
CommonIdRequest
request
)
{
RecruitmentTrialOnboardingDTO
dto
=
RecruitmentTrialOnboardingDTO
.
builder
().
id
(
request
.
getId
()).
build
();
return
CommonUtil
.
convertRopResponse
(
recruitmentDemandRemote
.
getTrialOnboardingDetail
(
dto
),
RecruitmentTrialOnboardingDTOConvert
.
INSTANCE
::
toRecruitmentTrialOnboardingResponse
);
}
}
}
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