Commit d8b01f4d by 叶立庆

Merge branch 'v5.8.3' into 'master'

上线合并

See merge request !12
2 parents 4649307b 684e7984
......@@ -7,7 +7,7 @@
</parent>
<groupId>cn.com.glsx.dj</groupId>
<artifactId>rop-dj-staff</artifactId>
<version>5.7.4-SNAPSHOT</version>
<version>5.8.3-SNAPSHOT</version>
<name>rop-dj-staff</name>
<packaging>war</packaging>
<dependencies>
......@@ -19,7 +19,7 @@
<dependency>
<groupId>cn.com.glsx.dj</groupId>
<artifactId>rpc-dj-staff-api</artifactId>
<version>5.8.2-SNAPSHOT</version>
<version>5.8.3-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>cn.com.glsx.dj</groupId>
......
......@@ -47,4 +47,9 @@ public class SmartCarLifeDubboConfig extends DubboConfig {
public ServiceMerchantRemote serviceMerchantRemote() {
return factory.builder(ServiceMerchantRemote.class).timeout(timeout)/*.url("dubbo://localhost:20883")*/.check(check).build();
}
@Bean
public ShopMerchantDirectorConfigRemote shopMerchantDirectorConfigRemote(){
return factory.builder(ShopMerchantDirectorConfigRemote.class).check(check).timeout(timeout).version("1.0.0").build();
}
}
package cn.com.glsx.dj.staff.controller.recruitment;
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.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.ShopMerchantDirectorConfigRemote;
import cn.com.glsx.dj.staff.dto.recruitment.*;
import cn.com.glsx.dj.staff.model.RecruitmentOnboardingPlan;
import cn.com.glsx.dj.staff.model.RecruitmentResume;
......@@ -31,6 +37,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
import java.util.Objects;
......@@ -53,6 +60,10 @@ public class RecruitmentDemandController {
@Autowired
private ServiceMerchantRemote serviceMerchantRemote;
@Autowired
private ShopMerchantDirectorConfigRemote shopMerchantDirectorConfigRemote;
@Autowired
private SceneMerchantRefRemote sceneMerchantRefRemote;
@Autowired
private ExcelAsyncImportService excelAsyncImportService;
@Autowired
private Environment env;
......@@ -242,4 +253,48 @@ public class RecruitmentDemandController {
RpcResponse<String> response = recruitmentDemandRemote.recruitmentDemandBatchChange(requestDTO);
return CommonUtil.convertRopResponse(response);
}
@ApiOperation("审批试岗计划(通过/驳回)")
@ServiceMethod(method = "dj.staff.api.recruitment.trial.onboarding.approval", needInSession = NeedInSessionType.YES)
public RopResponse<RecruitmentTrialOnboarding> trialOnboardingApproval(RecruitmentTrialOnboardingApprovalRequest request) {
String userName = CommonUtil.getLoginUser().getUserName();
RecruitmentTrialOnboardingDTO requestDTO = CommonUtil.convertRequest(RecruitmentTrialOnboardingDTO.class);
requestDTO.setUpdatedBy(userName);
RpcResponse<RecruitmentTrialOnboarding> response = recruitmentDemandRemote.trialOnboardingApproval(requestDTO);
return CommonUtil.convertRopResponse(response);
}
@ApiOperation("新增试岗-4s门店列表(根据区域运营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())));
return RopResponse.success(storeList);
}
@ApiOperation("新增试岗-小场景列表查询")
@ServiceMethod(method = "dj.staff.api.recruitment.demand.sub.scene.list", needInSession = NeedInSessionType.YES)
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);
}
}
......@@ -60,4 +60,8 @@ public class RecruitmentDemandAddRequest extends AbstractRopRequest {
@ApiModelProperty(notes = "省份名称(未创建系统门店时必填,用于查询技术督导)")
private String province;
@ApiModelProperty(notes = "详细地址")
private String merchantAddressDetail;
}
......@@ -54,4 +54,7 @@ public class RecruitmentDemandPageRequest extends CommonPageRequest {
@ApiModelProperty(notes = "试岗状态,1-试岗中 2-无试岗")
private Integer trialStatus;
@ApiModelProperty(notes = "审批状态,0-待审批 1-审批")
private Integer approvalStatus;
}
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;
}
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;
}
package cn.com.glsx.dj.staff.request.recruitment;
import com.rop.AbstractRopRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* 试岗计划审批请求参数
*/
@Data
public class RecruitmentTrialOnboardingApprovalRequest extends AbstractRopRequest {
@ApiModelProperty(notes = "试岗记录id")
private Integer id;
@ApiModelProperty(notes = "招聘需求id")
private Integer demandId;
@ApiModelProperty(notes = "审批结果,1-通过 0-驳回")
private Integer approvalResult;
@ApiModelProperty(notes = "审批备注,驳回时必填,最多200字")
private String approvalRemark;
}
......@@ -76,6 +76,36 @@ public class RecruitmentTrialOnboardingProcessRequest implements Serializable {
private String processRemark;
/**
* 试岗门店商户号(4s店或园区店)
*/
@ApiModelProperty(notes = "试岗门店商户号")
private String storeNo;
/**
* 试岗门店名称
*/
@ApiModelProperty(notes = "试岗门店名称")
private String storeName;
/**
* 业务场景信息,JSON数组格式
*/
@ApiModelProperty(notes = "业务场景信息,JSON数组格式:[{sceneCode:\"xxx\", sceneName:\"xxx\"}]")
private String bizSceneInfo;
/**
* 驻店类型字典值
*/
@ApiModelProperty(notes = "驻店类型字典值")
private String residentType;
/**
* 驻店类型字典名
*/
@ApiModelProperty(notes = "驻店类型字典名")
private String residentTypeName;
/**
* 修改时间
*/
@ApiModelProperty(notes = "修改时间,编辑、处理 时必传,格式:yyyy-MM-dd HH:mm:ss")
......
......@@ -23,104 +23,116 @@ public class RecruitmentDemandExportVO {
private String provinceCity;
/**
* 区域运营名称
* 详细地址
*/
@ExcelMergeRow(columIndex = 2)
private String merchantAddressDetail;
/**
* 区域运营名称
*/
@ExcelMergeRow(columIndex = 3)
private String regionOperationName;
/**
* 门店名称
*/
@ExcelMergeRow(columIndex = 3)
@ExcelMergeRow(columIndex = 4)
private String merchantName;
/**
* 门店地址
*/
@ExcelMergeRow(columIndex = 4)
@ExcelMergeRow(columIndex = 5)
private String merchantAddress;
/**
* 品牌
*/
@ExcelMergeRow(columIndex = 5)
@ExcelMergeRow(columIndex = 6)
private String brand;
/**
* 业务类型名称
*/
@ExcelMergeRow(columIndex = 6)
@ExcelMergeRow(columIndex = 7)
private String businessTypeName;
/**
* 新车销售
*/
@ExcelMergeRow(columIndex = 7)
@ExcelMergeRow(columIndex = 8)
private int newCarSales;
/**
* 招聘数量
*/
@ExcelMergeRow(columIndex = 8)
@ExcelMergeRow(columIndex = 9)
private int recruitmentQuantity;
/**
* 提需求时间
*/
@ExcelMergeRow(columIndex = 9)
@ExcelMergeRow(columIndex = 10)
private String demandApplyTime;
/**
* 人员到岗时间
*/
@ExcelMergeRow(columIndex = 10)
@ExcelMergeRow(columIndex = 11)
private String staffArrivalTime;
/**
* 招聘类型名称
*/
@ExcelMergeRow(columIndex = 11)
@ExcelMergeRow(columIndex = 12)
private String recruitmentTypeName;
/**
* 招聘状态,0-待人事确认 1-招聘中 2-已完成 3-已驳回
*/
@ExcelMergeRow(columIndex = 12)
@ExcelMergeRow(columIndex = 13)
private String recruitmentStatus;
/**
* 审批状态,0-待审批 1-审批
*/
@ExcelMergeRow(columIndex = 14)
private String approvalStatusName;
/**
* 试岗状态,1-试岗中 2-无试岗
*/
@ExcelMergeRow(columIndex = 13)
@ExcelMergeRow(columIndex = 15)
private String trialStatusName;
/**
* 关联状态,1-已关联 0-未关联
*/
@ExcelMergeRow(columIndex = 14)
@ExcelMergeRow(columIndex = 16)
private String connectionFlag;
/**
* 招聘负责人名称|对接人力
*/
@ExcelMergeRow(columIndex = 15)
@ExcelMergeRow(columIndex = 17)
private String recruiterName;
/**
* 需求描述
*/
@ExcelMergeRow(columIndex = 16)
@ExcelMergeRow(columIndex = 18)
private String requirementDescription;
/**
* 简历推送数量
*/
@ExcelMergeRow(columIndex = 17)
@ExcelMergeRow(columIndex = 19)
private int allOfResume;
/**
* 已处理简历数量
*/
@ExcelMergeRow(columIndex = 18)
@ExcelMergeRow(columIndex = 20)
private int processedOfResume;
/**
* 试岗人数
*/
@ExcelMergeRow(columIndex = 19)
@ExcelMergeRow(columIndex = 21)
private Integer allOfTrialOnboarding;
/**
* 待招人员 = 招聘数量 - 入职人数,负数取0
*/
@ExcelMergeRow(columIndex = 20)
@ExcelMergeRow(columIndex = 22)
private Integer pendingCount;
/**
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!