Commit fe8fb74f by 叶立庆

Merge branch 'v5.7.1' into 'master'

上线合并

See merge request !15
2 parents 5bcc8e39 893fc3af
Showing 21 changed files with 393 additions and 39 deletions
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
</parent> </parent>
<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.7.0-SNAPSHOT</version> <version>5.7.1-SNAPSHOT</version>
<name>rpc-dj-staff-api</name> <name>rpc-dj-staff-api</name>
<properties> <properties>
<deploy.scanPackage>cn.com.glsx.dj.staff.remote</deploy.scanPackage> <deploy.scanPackage>cn.com.glsx.dj.staff.remote</deploy.scanPackage>
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,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.7.0-SNAPSHOT</version> <version>5.7.1-SNAPSHOT</version>
</dependency> </dependency>
</dependencies> </dependencies>
</plugin> </plugin>
......
...@@ -60,4 +60,22 @@ public class RecruitmentDemandDTO extends RecruitmentDemand { ...@@ -60,4 +60,22 @@ public class RecruitmentDemandDTO extends RecruitmentDemand {
private List<RecruitmentOnboardingPlanDTO> onboardingPlans; private List<RecruitmentOnboardingPlanDTO> onboardingPlans;
private List<RecruitmentTrialOnboardingDTO> trialOnboardingPlans; private List<RecruitmentTrialOnboardingDTO> trialOnboardingPlans;
@ApiModelProperty(notes = "批量操作的招聘需求id列表")
private List<Integer> ids;
@ApiModelProperty(notes = "变更类型:1-区域运营 2-技师督导 3-招聘负责人 4-创建人")
private Integer changeType;
@ApiModelProperty(notes = "接收人姓名")
private String receiverName;
@ApiModelProperty(notes = "接收人账号(uuid)")
private String receiverUuid;
@ApiModelProperty(notes = "接收人手机号")
private String receiverPhone;
@ApiModelProperty(notes = "省份名称(未创建系统门店时,用于查询技术督导)")
private String province;
} }
...@@ -21,15 +21,6 @@ import java.util.List; ...@@ -21,15 +21,6 @@ import java.util.List;
@Data @Data
public class RecruitmentDemandDetailDTO extends RecruitmentDemand { public class RecruitmentDemandDetailDTO extends RecruitmentDemand {
@ApiModelProperty(notes = "近一个月销售量")
private Integer salesVolume;
@ApiModelProperty(notes = "门店地址")
private String merchantAddress;
@ApiModelProperty(notes = "品牌")
private String brand;
@ApiModelProperty(notes = "招聘信息") @ApiModelProperty(notes = "招聘信息")
private List<RecruitmentResume> resumes; private List<RecruitmentResume> resumes;
......
package cn.com.glsx.dj.staff.dto.recruitment; package cn.com.glsx.dj.staff.dto.recruitment;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import java.io.Serializable; import java.io.Serializable;
...@@ -18,13 +17,10 @@ public class RecruitmentDemandExportDTO implements Serializable { ...@@ -18,13 +17,10 @@ public class RecruitmentDemandExportDTO implements Serializable {
private int index; private int index;
/** /**
* 省份 * 所属省市
*/ */
private String province; private String provinceCity;
/**
* 城市
*/
private String city;
/** /**
* 区域运营名称 * 区域运营名称
*/ */
...@@ -69,6 +65,12 @@ public class RecruitmentDemandExportDTO implements Serializable { ...@@ -69,6 +65,12 @@ public class RecruitmentDemandExportDTO implements Serializable {
* 招聘状态,0-待人事确认 1-招聘中 2-已完成 3-已驳回 * 招聘状态,0-待人事确认 1-招聘中 2-已完成 3-已驳回
*/ */
private String recruitmentStatus; private String recruitmentStatus;
/**
* 关联状态,1-已关联 0-未关联
*/
private String connectionFlag;
/** /**
* 招聘负责人名称|对接人力 * 招聘负责人名称|对接人力
*/ */
......
package cn.com.glsx.dj.staff.dto.recruitment;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
@Data
public class RecruitmentDemandMerchantOverviewDTO implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(notes = "需求总数(招聘数量累计)")
private Integer allOfDemand;
@ApiModelProperty(notes = "在招数量(需求总数 - 入职人数)")
private Integer recruitingCount;
@ApiModelProperty(notes = "入职人数")
private Integer allOfOnboarding;
@ApiModelProperty(notes = "离职人数")
private Integer resignedCount;
}
package cn.com.glsx.dj.staff.dto.recruitment;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
@Data
public class RecruitmentDemandMerchantOverviewQueryDTO implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(notes = "门店商户号", required = true)
private Integer merchantId;
@ApiModelProperty(notes = "业务类型:1.延保 2.轻改 3.权益")
private Integer biz;
}
...@@ -48,6 +48,10 @@ public enum RecruitmentDemandBusinessTypeEnum { ...@@ -48,6 +48,10 @@ public enum RecruitmentDemandBusinessTypeEnum {
* 9-二手车验车专员 * 9-二手车验车专员
*/ */
USED_CAR_INSPECTOR("9", "二手车验车专员"), USED_CAR_INSPECTOR("9", "二手车验车专员"),
/**
* 10-洗车工
*/
CAR_WASH_WORKER("10", "洗车工"),
; ;
private String value; private String value;
...@@ -93,7 +97,7 @@ public enum RecruitmentDemandBusinessTypeEnum { ...@@ -93,7 +97,7 @@ public enum RecruitmentDemandBusinessTypeEnum {
/** /**
* 判断是否需要推送新增招聘需求消息 * 判断是否需要推送新增招聘需求消息
* 延保、权益、轻改、权益+延保、二手车验车专员需要推送消息 * 延保、权益、轻改、权益+延保、二手车验车专员、洗车工 需要推送消息
*/ */
public static boolean needsNewDemandMessage(String businessType) { public static boolean needsNewDemandMessage(String businessType) {
if (businessType == null) { if (businessType == null) {
...@@ -103,12 +107,13 @@ public enum RecruitmentDemandBusinessTypeEnum { ...@@ -103,12 +107,13 @@ public enum RecruitmentDemandBusinessTypeEnum {
|| RIGHTS.getValue().equals(businessType) || RIGHTS.getValue().equals(businessType)
|| LIGHT_MODIFICATION.getValue().equals(businessType) || LIGHT_MODIFICATION.getValue().equals(businessType)
|| RIGHTS_EXTENDED_WARRANTY.getValue().equals(businessType) || RIGHTS_EXTENDED_WARRANTY.getValue().equals(businessType)
|| USED_CAR_INSPECTOR.getValue().equals(businessType); || USED_CAR_INSPECTOR.getValue().equals(businessType)
|| CAR_WASH_WORKER.getValue().equals(businessType);
} }
/** /**
* 判断是否需要推送给区域运营的消息 * 判断是否需要推送给区域运营的消息
* 延保、权益、轻改、权益+延保业务类型需要推送给区域运营 * 延保、权益、轻改、权益+延保、洗车工 业务类型需要推送给区域运营
*/ */
public static boolean needsRegionOperationMessage(String businessType) { public static boolean needsRegionOperationMessage(String businessType) {
if (businessType == null) { if (businessType == null) {
...@@ -117,7 +122,8 @@ public enum RecruitmentDemandBusinessTypeEnum { ...@@ -117,7 +122,8 @@ public enum RecruitmentDemandBusinessTypeEnum {
return EXTENDED_WARRANTY.getValue().equals(businessType) return EXTENDED_WARRANTY.getValue().equals(businessType)
|| RIGHTS.getValue().equals(businessType) || RIGHTS.getValue().equals(businessType)
|| LIGHT_MODIFICATION.getValue().equals(businessType) || LIGHT_MODIFICATION.getValue().equals(businessType)
|| RIGHTS_EXTENDED_WARRANTY.getValue().equals(businessType); || RIGHTS_EXTENDED_WARRANTY.getValue().equals(businessType)
|| CAR_WASH_WORKER.getValue().equals(businessType);
} }
/** /**
......
...@@ -37,12 +37,54 @@ public class RecruitmentDemand implements Serializable { ...@@ -37,12 +37,54 @@ public class RecruitmentDemand implements Serializable {
private String merchantName; private String merchantName;
/** /**
* 门店id(门店和园区店商户) * 门店 id(门店和园区店商户)
*/ */
@Column(name = "merchant_id") @Column(name = "merchant_id")
private String merchantId; private String merchantId;
/** /**
* 主营品牌,多个以/分隔
*/
@ApiModelProperty(notes = "主营品牌,多个以/分隔")
@Column(name = "brand")
private String brand;
/**
* 是否已关联系统门店,0 未关联 1 已关联,默认 1
*/
@ApiModelProperty(notes = "是否已关联系统门店,0 未关联 1 已关联,默认 1")
@Column(name = "connection_flag")
private Boolean connectionFlag;
/**
* 是否通过系统门店创建,0 否 1 是,默认 1
*/
@ApiModelProperty(notes = "是否通过系统门店创建,0 否 1 是,默认 1")
@Column(name = "by_system_merchant")
private Boolean bySystemMerchant;
/**
* 近一个月新车销量
*/
@ApiModelProperty(notes = "近一个月新车销量")
@Column(name = "sales_volume")
private Integer salesVolume;
/**
* 门店地址
*/
@ApiModelProperty(notes = "门店地址")
@Column(name = "merchant_address")
private String merchantAddress;
/**
* 省市区编码,格式:省编码/市编码
*/
@ApiModelProperty(notes = "省市区编码,格式:省编码/市编码")
@Column(name = "province_city_code")
private String provinceCityCode;
/**
* 区域运营id/uuid * 区域运营id/uuid
*/ */
@Column(name = "region_operation_id") @Column(name = "region_operation_id")
......
...@@ -114,4 +114,8 @@ public class RecruitmentTrialOnboarding implements Serializable { ...@@ -114,4 +114,8 @@ public class RecruitmentTrialOnboarding implements Serializable {
*/ */
@Column(name = "deleted_flag") @Column(name = "deleted_flag")
private String deletedFlag; private String deletedFlag;
@ApiModelProperty(notes = "创建者手机号")
@Column(name = "created_phone")
private String createdPhone;
} }
...@@ -54,6 +54,11 @@ public interface RecruitmentDemandRemote { ...@@ -54,6 +54,11 @@ public interface RecruitmentDemandRemote {
@ApiResponse("导出数据列表") @ApiResponse("导出数据列表")
RpcResponse<List<RecruitmentDemandExportDTO>> recruitmentDemandExportData(RpcPagination<RecruitmentDemandPageRecordDTO> pagination); RpcResponse<List<RecruitmentDemandExportDTO>> recruitmentDemandExportData(RpcPagination<RecruitmentDemandPageRecordDTO> pagination);
@ApiMethod("门店招聘概况")
@ApiParam(name = "dto", notes = "查询参数", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)
@ApiResponse("门店招聘概况")
RpcResponse<RecruitmentDemandMerchantOverviewDTO> recruitmentDemandMerchantOverview(@NotNull RecruitmentDemandMerchantOverviewQueryDTO dto);
@interface UpdateConfirmFlagToConfirmed{} @interface UpdateConfirmFlagToConfirmed{}
@ApiMethod("标记招聘需求已确认") @ApiMethod("标记招聘需求已确认")
@ApiParam(name = "dto", notes = "记录id 更新人等信息", dataType = ApiParam.DataTypeEnum.OBJECT, required = true) @ApiParam(name = "dto", notes = "记录id 更新人等信息", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)
...@@ -69,4 +74,29 @@ public interface RecruitmentDemandRemote { ...@@ -69,4 +74,29 @@ public interface RecruitmentDemandRemote {
@ApiParam(name = "dto", notes = "新增招聘需求信息", dataType = ApiParam.DataTypeEnum.OBJECT, required = true) @ApiParam(name = "dto", notes = "新增招聘需求信息", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)
@ApiResponse("招聘需求详情") @ApiResponse("招聘需求详情")
RpcResponse<RecruitmentDemandDTO> recruitmentDemandAdd(@NotNull RecruitmentDemandDTO dto); RpcResponse<RecruitmentDemandDTO> recruitmentDemandAdd(@NotNull RecruitmentDemandDTO dto);
@ApiMethod("招聘需求关联系统门店")
@ApiParam(name = "dto", notes = "招聘需求id、系统门店名称和商户号", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)
@ApiResponse("关联结果")
RpcResponse<String> recruitmentDemandLinkMerchant(@NotNull RecruitmentDemandDTO dto);
@ApiMethod("招聘需求批量变更")
@ApiParam(name = "dto", notes = "招聘需求id列表、变更类型、接收人信息", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)
@ApiResponse("变更结果")
RpcResponse<String> recruitmentDemandBatchChange(@NotNull RecruitmentDemandDTO dto);
@ApiMethod("移动端-新增试岗人员")
@ApiParam(name = "dto", notes = "试岗人员信息,demandId/updatedBy必填", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)
@ApiResponse("新增结果")
RpcResponse<String> trialOnboardingAdd(@NotNull RecruitmentTrialOnboardingDTO dto);
@ApiMethod("移动端-编辑试岗人员")
@ApiParam(name = "dto", notes = "试岗人员信息,id/demandId/updatedBy必填", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)
@ApiResponse("编辑结果")
RpcResponse<String> trialOnboardingEdit(@NotNull RecruitmentTrialOnboardingDTO dto);
@ApiMethod("移动端-删除试岗人员")
@ApiParam(name = "dto", notes = "试岗人员信息,id/demandId/updatedBy必填", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)
@ApiResponse("删除结果")
RpcResponse<String> trialOnboardingDelete(@NotNull RecruitmentTrialOnboardingDTO dto);
} }
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,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.7.0-SNAPSHOT</version> <version>5.7.1-SNAPSHOT</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.oreframework.boot</groupId> <groupId>org.oreframework.boot</groupId>
...@@ -79,5 +79,10 @@ ...@@ -79,5 +79,10 @@
<artifactId>open-platform-sdk</artifactId> <artifactId>open-platform-sdk</artifactId>
<version>1.0.48</version> <version>1.0.48</version>
</dependency> </dependency>
<dependency>
<groupId>cn.com.glsx.merchants</groupId>
<artifactId>platform-merchants-api</artifactId>
<version>5.7.0-SNAPSHOT</version>
</dependency>
</dependencies> </dependencies>
</project> </project>
\ No newline at end of file \ No newline at end of file
package cn.com.glsx.dj.staff.config.dubbo;
import cn.com.glsx.dj.staff.config.DubboConfig;
import cn.com.glsx.merchants.remote.MerchantStaffRemote;
import lombok.RequiredArgsConstructor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* @author yangwei
* @version 1.0
* @since 2026/01/20 14:53
*/
@Configuration
@RequiredArgsConstructor
public class MerchantDubboConfig extends DubboConfig {
// @Bean
// public MerchantStaffRemote merchantStaffRemote() {
// return factory
// .builder(MerchantStaffRemote.class)
// .check(false)
// .timeout(30000)
// .build();
// }
@Bean
public MerchantStaffRemote merchantStaffRemote() {
return factory.builder(MerchantStaffRemote.class).version("2.0.0").check(check).timeout(timeout).build();
}
}
...@@ -5,9 +5,11 @@ import cn.com.glsx.dj.staff.dto.StaffPerformanceDailyReportQueryDTO; ...@@ -5,9 +5,11 @@ import cn.com.glsx.dj.staff.dto.StaffPerformanceDailyReportQueryDTO;
import cn.com.glsx.dj.staff.dto.StaffPerformanceOrderQueryDTO; import cn.com.glsx.dj.staff.dto.StaffPerformanceOrderQueryDTO;
import cn.com.glsx.dj.staff.dto.StaffPerformanceSubOrderDTO; import cn.com.glsx.dj.staff.dto.StaffPerformanceSubOrderDTO;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.oreframework.datasource.mybatis.mapper.OreMapper; import org.oreframework.datasource.mybatis.mapper.OreMapper;
import java.util.List; import java.util.List;
import java.util.Map;
/** /**
* 员工绩效计算Mapper * 员工绩效计算Mapper
...@@ -30,4 +32,10 @@ public interface StaffPerformanceCalMapper extends OreMapper<StaffProductPerform ...@@ -30,4 +32,10 @@ public interface StaffPerformanceCalMapper extends OreMapper<StaffProductPerform
* @return 日报数据列表 * @return 日报数据列表
*/ */
Integer statPreSalesTouchCount(StaffPerformanceDailyReportQueryDTO query); Integer statPreSalesTouchCount(StaffPerformanceDailyReportQueryDTO query);
List<String> listStaffUuidByPhoneList(@Param("phones") List<String> phones);
Integer statMerchantResignedStaffCountByBusinessType(@Param("merchantId") Integer merchantId,
@Param("businessTypeList") List<Integer> businessTypeList,
@Param("staffUuids") List<String> staffUuids);
} }
...@@ -189,6 +189,17 @@ public class RecruitmentDemandRemoteImpl implements RecruitmentDemandRemote{ ...@@ -189,6 +189,17 @@ public class RecruitmentDemandRemoteImpl implements RecruitmentDemandRemote{
} }
@Override @Override
public RpcResponse<RecruitmentDemandMerchantOverviewDTO> recruitmentDemandMerchantOverview(RecruitmentDemandMerchantOverviewQueryDTO dto) {
try {
RecruitmentDemandMerchantOverviewDTO overview = recruitmentDemandService.recruitmentDemandMerchantOverview(dto);
return RpcResponse.success(overview);
} catch (Exception e) {
log.error(e.getMessage(), e);
return RpcResponse.error(e);
}
}
@Override
public RpcResponse<Boolean> updateConfirmFlagToConfirmed(RecruitmentDemandDTO dto) { public RpcResponse<Boolean> updateConfirmFlagToConfirmed(RecruitmentDemandDTO dto) {
try{ try{
return RpcResponse.success(recruitmentDemandService.updateConfirmFlagToConfirmed(dto)); return RpcResponse.success(recruitmentDemandService.updateConfirmFlagToConfirmed(dto));
...@@ -214,7 +225,7 @@ public class RecruitmentDemandRemoteImpl implements RecruitmentDemandRemote{ ...@@ -214,7 +225,7 @@ public class RecruitmentDemandRemoteImpl implements RecruitmentDemandRemote{
try{ try{
RecruitmentDemandDTO result = recruitmentDemandService.recruitmentDemandAdd(dto); RecruitmentDemandDTO result = recruitmentDemandService.recruitmentDemandAdd(dto);
// 推送给招聘负责人(延保、权益、轻改、权益+延保、二手车验车专员) // 推送给招聘负责人(延保、权益、轻改、权益+延保、二手车验车专员、洗车工)
if (RecruitmentDemandBusinessTypeEnum.needsNewDemandMessage(result.getBusinessType())) { if (RecruitmentDemandBusinessTypeEnum.needsNewDemandMessage(result.getBusinessType())) {
recruitmentDemandService.sendRecruitmentQWTextMessage( recruitmentDemandService.sendRecruitmentQWTextMessage(
result.getRecruiterPhone(), result.getRecruiterPhone(),
...@@ -241,4 +252,74 @@ public class RecruitmentDemandRemoteImpl implements RecruitmentDemandRemote{ ...@@ -241,4 +252,74 @@ public class RecruitmentDemandRemoteImpl implements RecruitmentDemandRemote{
return RpcResponse.error(e); return RpcResponse.error(e);
} }
} }
@Override
public RpcResponse<String> recruitmentDemandLinkMerchant(RecruitmentDemandDTO dto) {
try {
recruitmentDemandService.recruitmentDemandLinkMerchant(dto);
return RpcResponse.success("success");
} catch (RpcServiceException e) {
log.error(e.getMessage(), e);
return RpcResponse.error(e);
} catch (Exception e) {
log.error(e.getMessage(), e);
return RpcResponse.error(e);
}
}
@Override
public RpcResponse<String> recruitmentDemandBatchChange(RecruitmentDemandDTO dto) {
try {
recruitmentDemandService.recruitmentDemandBatchChange(dto);
return RpcResponse.success("success");
} catch (RpcServiceException e) {
log.error(e.getMessage(), e);
return RpcResponse.error(e);
} catch (Exception e) {
log.error(e.getMessage(), e);
return RpcResponse.error(e);
}
}
@Override
public RpcResponse<String> trialOnboardingAdd(RecruitmentTrialOnboardingDTO dto) {
try {
recruitmentDemandService.trialOnboardingAdd(dto);
return RpcResponse.success("success");
} catch (RpcServiceException e) {
log.error(e.getMessage(), e);
return RpcResponse.error(e);
} catch (Exception e) {
log.error(e.getMessage(), e);
return RpcResponse.error(e);
}
}
@Override
public RpcResponse<String> trialOnboardingEdit(RecruitmentTrialOnboardingDTO dto) {
try {
recruitmentDemandService.trialOnboardingEdit(dto);
return RpcResponse.success("success");
} catch (RpcServiceException e) {
log.error(e.getMessage(), e);
return RpcResponse.error(e);
} catch (Exception e) {
log.error(e.getMessage(), e);
return RpcResponse.error(e);
}
}
@Override
public RpcResponse<String> trialOnboardingDelete(RecruitmentTrialOnboardingDTO dto) {
try {
recruitmentDemandService.trialOnboardingDelete(dto);
return RpcResponse.success("success");
} catch (RpcServiceException e) {
log.error(e.getMessage(), e);
return RpcResponse.error(e);
} catch (Exception e) {
log.error(e.getMessage(), e);
return RpcResponse.error(e);
}
}
} }
...@@ -2,6 +2,7 @@ package cn.com.glsx.dj.staff.service.recruitment; ...@@ -2,6 +2,7 @@ package cn.com.glsx.dj.staff.service.recruitment;
import cn.com.glsx.dj.staff.dto.recruitment.RecruitmentDemandDetailDTO; 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.RpcErrorEnum;
import cn.com.glsx.dj.staff.mapper.RecruitmentTrialOnboardingMapper; import cn.com.glsx.dj.staff.mapper.RecruitmentTrialOnboardingMapper;
import cn.com.glsx.dj.staff.model.RecruitmentTrialOnboarding; import cn.com.glsx.dj.staff.model.RecruitmentTrialOnboarding;
import cn.com.glsx.framework.core.beans.BaseModel; import cn.com.glsx.framework.core.beans.BaseModel;
...@@ -77,6 +78,18 @@ public class RecruitmentTrialOnboardingService { ...@@ -77,6 +78,18 @@ public class RecruitmentTrialOnboardingService {
} }
} }
if (CollectionUtils.isNotEmpty(trialsEdit)) { if (CollectionUtils.isNotEmpty(trialsEdit)) {
Example editCheckStatus = new Example(RecruitmentTrialOnboarding.class);
Example.Criteria criteriaEditCheckStatus = editCheckStatus.createCriteria();
criteriaEditCheckStatus.andEqualTo("demandId", demandId)
.andEqualTo("deletedFlag", BaseModel.DeletedFlagEnum.D.name())
.andIn("id", trialsEdit.stream().map(RecruitmentTrialOnboarding::getId).collect(Collectors.toList()));
List<RecruitmentTrialOnboarding> statusErrList = recruitmentTrialOnboardingMapper.selectByExample(editCheckStatus);
if (CollectionUtils.isNotEmpty(statusErrList)) {
log.info("数据异常,请刷新后重新操作");
throw new RpcServiceException(RpcErrorEnum.BUSINESS_ERROR, "数据异常,请刷新后重新操作");
}
for (RecruitmentTrialOnboarding trial : trialsEdit) { for (RecruitmentTrialOnboarding trial : trialsEdit) {
trial.setDemandId(null); trial.setDemandId(null);
trial.setCreatedBy(null); trial.setCreatedBy(null);
......
...@@ -8,6 +8,12 @@ ...@@ -8,6 +8,12 @@
<id column="id" property="id" jdbcType="INTEGER" /> <id column="id" property="id" jdbcType="INTEGER" />
<result column="merchant_name" property="merchantName" jdbcType="VARCHAR" /> <result column="merchant_name" property="merchantName" jdbcType="VARCHAR" />
<result column="merchant_id" property="merchantId" jdbcType="VARCHAR" /> <result column="merchant_id" property="merchantId" jdbcType="VARCHAR" />
<result column="brand" property="brand" jdbcType="VARCHAR" />
<result column="connection_flag" property="connectionFlag" jdbcType="BIT" />
<result column="by_system_merchant" property="bySystemMerchant" jdbcType="BIT" />
<result column="sales_volume" property="salesVolume" jdbcType="INTEGER" />
<result column="merchant_address" property="merchantAddress" jdbcType="VARCHAR" />
<result column="province_city_code" property="provinceCityCode" jdbcType="VARCHAR" />
<result column="region_operation_id" property="regionOperationId" jdbcType="VARCHAR" /> <result column="region_operation_id" property="regionOperationId" jdbcType="VARCHAR" />
<result column="region_operation_name" property="regionOperationName" jdbcType="VARCHAR" /> <result column="region_operation_name" property="regionOperationName" jdbcType="VARCHAR" />
<result column="business_type" property="businessType" jdbcType="VARCHAR" /> <result column="business_type" property="businessType" jdbcType="VARCHAR" />
...@@ -44,7 +50,8 @@ ...@@ -44,7 +50,8 @@
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
--> -->
id, merchant_name, merchant_id, region_operation_id, region_operation_name, business_type, id, merchant_name, merchant_id, brand, connection_flag, by_system_merchant,
sales_volume, merchant_address, province_city_code, region_operation_id, region_operation_name, business_type,
business_type_name, recruitment_quantity, recruitment_type, recruitment_type_name, business_type_name, recruitment_quantity, recruitment_type, recruitment_type_name,
requirement_description, recruiter_name, recruiter_phone, technical_supervisor_name, requirement_description, recruiter_name, recruiter_phone, technical_supervisor_name,
technical_supervisor_phone, recall_reason, province_city, status, urgent, start_time, technical_supervisor_phone, recall_reason, province_city, status, urgent, start_time,
...@@ -96,7 +103,8 @@ ...@@ -96,7 +103,8 @@
</select> </select>
<select id="listRecruitmentDemand" resultMap="DTOResultMap"> <select id="listRecruitmentDemand" resultMap="DTOResultMap">
select dclrd.id, dclrd.urgent, dclrd.merchant_name, dclrd.merchant_id, dclrd.region_operation_id, dclrd.region_operation_name, select dclrd.id, dclrd.urgent, dclrd.merchant_name, dclrd.merchant_id, dclrd.brand, dclrd.connection_flag,
dclrd.by_system_merchant, dclrd.sales_volume, dclrd.merchant_address, dclrd.region_operation_id, dclrd.region_operation_name,
dclrd.business_type, dclrd.business_type_name, dclrd.recruitment_quantity, dclrd.recruitment_type, dclrd.business_type, dclrd.business_type_name, dclrd.recruitment_quantity, dclrd.recruitment_type,
dclrd.recruitment_type_name, dclrd.requirement_description, dclrd.recruiter_name, dclrd.recruiter_phone, dclrd.recruitment_type_name, dclrd.requirement_description, dclrd.recruiter_name, dclrd.recruiter_phone,
dclrd.recall_reason, dclrd.status, dclrd.confirm_flag, dclrd.created_date, dclrd.technical_supervisor_name, dclrd.recall_reason, dclrd.status, dclrd.confirm_flag, dclrd.created_date, dclrd.technical_supervisor_name,
...@@ -220,12 +228,19 @@ ...@@ -220,12 +228,19 @@
<if test="technicalSupervisorName != null and technicalSupervisorName != ''"> <if test="technicalSupervisorName != null and technicalSupervisorName != ''">
and technical_supervisor_name like concat('%', #{technicalSupervisorName}, '%') and technical_supervisor_name like concat('%', #{technicalSupervisorName}, '%')
</if> </if>
<if test="brand != null and brand != ''">
and brand like concat('%', #{brand}, '%')
</if>
<if test="connectionFlag != null">
and connection_flag = #{connectionFlag}
</if>
order by FIELD(status, 0,4,1,2,3) asc, created_date desc order by FIELD(status, 0,4,1,2,3) asc, created_date desc
</select> </select>
<select id="find72HoursNoResumeDemands" resultMap="BaseResultMap"> <select id="find72HoursNoResumeDemands" resultMap="BaseResultMap">
SELECT SELECT
d.id, d.merchant_name, d.merchant_id, d.region_operation_id, d.region_operation_name, d.id, d.merchant_name, d.merchant_id, d.brand, d.connection_flag, d.by_system_merchant,
d.sales_volume, d.merchant_address, d.region_operation_id, d.region_operation_name,
d.business_type, d.business_type_name, d.recruitment_quantity, d.recruitment_type, d.business_type, d.business_type_name, d.recruitment_quantity, d.recruitment_type,
d.recruitment_type_name, d.requirement_description, d.recruiter_name, d.recruiter_phone, d.recruitment_type_name, d.requirement_description, d.recruiter_name, d.recruiter_phone,
d.technical_supervisor_name, d.technical_supervisor_phone, d.recall_reason, d.technical_supervisor_name, d.technical_supervisor_phone, d.recall_reason,
...@@ -247,7 +262,8 @@ ...@@ -247,7 +262,8 @@
<select id="find24HoursUnprocessedResumeDemands" resultMap="BaseResultMap"> <select id="find24HoursUnprocessedResumeDemands" resultMap="BaseResultMap">
SELECT SELECT
d.id, d.merchant_name, d.merchant_id, d.region_operation_id, d.region_operation_name, d.id, d.merchant_name, d.merchant_id, d.brand, d.connection_flag, d.by_system_merchant,
d.sales_volume, d.merchant_address, d.region_operation_id, d.region_operation_name,
d.business_type, d.business_type_name, d.recruitment_quantity, d.recruitment_type, d.business_type, d.business_type_name, d.recruitment_quantity, d.recruitment_type,
d.recruitment_type_name, d.requirement_description, d.recruiter_name, d.recruiter_phone, d.recruitment_type_name, d.requirement_description, d.recruiter_name, d.recruiter_phone,
d.technical_supervisor_name, d.technical_supervisor_phone, d.recall_reason, d.technical_supervisor_name, d.technical_supervisor_phone, d.recall_reason,
...@@ -256,7 +272,7 @@ ...@@ -256,7 +272,7 @@
FROM dj_car_life_recruitment_demand d FROM dj_car_life_recruitment_demand d
WHERE d.status = 1 WHERE d.status = 1
AND d.deleted_flag = 'N' AND d.deleted_flag = 'N'
AND d.business_type IN ('1', '2', '3', '5') AND d.business_type IN ('1', '2', '3', '5', '10')
AND EXISTS ( AND EXISTS (
SELECT 1 SELECT 1
FROM dj_car_life_recruitment_resume r FROM dj_car_life_recruitment_resume r
...@@ -270,7 +286,8 @@ ...@@ -270,7 +286,8 @@
<select id="find48HoursUnprocessedResumeDemands" resultMap="BaseResultMap"> <select id="find48HoursUnprocessedResumeDemands" resultMap="BaseResultMap">
SELECT SELECT
d.id, d.merchant_name, d.merchant_id, d.region_operation_id, d.region_operation_name, d.id, d.merchant_name, d.merchant_id, d.brand, d.connection_flag, d.by_system_merchant,
d.sales_volume, d.merchant_address, d.region_operation_id, d.region_operation_name,
d.business_type, d.business_type_name, d.recruitment_quantity, d.recruitment_type, d.business_type, d.business_type_name, d.recruitment_quantity, d.recruitment_type,
d.recruitment_type_name, d.requirement_description, d.recruiter_name, d.recruiter_phone, d.recruitment_type_name, d.requirement_description, d.recruiter_name, d.recruiter_phone,
d.technical_supervisor_name, d.technical_supervisor_phone, d.recall_reason, d.technical_supervisor_name, d.technical_supervisor_phone, d.recall_reason,
...@@ -279,7 +296,7 @@ ...@@ -279,7 +296,7 @@
FROM dj_car_life_recruitment_demand d FROM dj_car_life_recruitment_demand d
WHERE d.status = 1 WHERE d.status = 1
AND d.deleted_flag = 'N' AND d.deleted_flag = 'N'
AND d.business_type IN ('1', '2', '3', '5') AND d.business_type IN ('1', '2', '3', '5', '10')
AND EXISTS ( AND EXISTS (
SELECT 1 SELECT 1
FROM dj_car_life_recruitment_resume r FROM dj_car_life_recruitment_resume r
...@@ -293,7 +310,8 @@ ...@@ -293,7 +310,8 @@
<select id="find24HoursUnprocessedResumeDemandsForSupervisor" resultMap="BaseResultMap"> <select id="find24HoursUnprocessedResumeDemandsForSupervisor" resultMap="BaseResultMap">
SELECT SELECT
d.id, d.merchant_name, d.merchant_id, d.region_operation_id, d.region_operation_name, d.id, d.merchant_name, d.merchant_id, d.brand, d.connection_flag, d.by_system_merchant,
d.sales_volume, d.merchant_address, d.region_operation_id, d.region_operation_name,
d.business_type, d.business_type_name, d.recruitment_quantity, d.recruitment_type, d.business_type, d.business_type_name, d.recruitment_quantity, d.recruitment_type,
d.recruitment_type_name, d.requirement_description, d.recruiter_name, d.recruiter_phone, d.recruitment_type_name, d.requirement_description, d.recruiter_name, d.recruiter_phone,
d.technical_supervisor_name, d.technical_supervisor_phone, d.recall_reason, d.technical_supervisor_name, d.technical_supervisor_phone, d.recall_reason,
...@@ -316,7 +334,8 @@ ...@@ -316,7 +334,8 @@
<select id="find48HoursUnprocessedResumeDemandsForSupervisor" resultMap="BaseResultMap"> <select id="find48HoursUnprocessedResumeDemandsForSupervisor" resultMap="BaseResultMap">
SELECT SELECT
d.id, d.merchant_name, d.merchant_id, d.region_operation_id, d.region_operation_name, d.id, d.merchant_name, d.merchant_id, d.brand, d.connection_flag, d.by_system_merchant,
d.sales_volume, d.merchant_address, d.region_operation_id, d.region_operation_name,
d.business_type, d.business_type_name, d.recruitment_quantity, d.recruitment_type, d.business_type, d.business_type_name, d.recruitment_quantity, d.recruitment_type,
d.recruitment_type_name, d.requirement_description, d.recruiter_name, d.recruiter_phone, d.recruitment_type_name, d.requirement_description, d.recruiter_name, d.recruiter_phone,
d.technical_supervisor_name, d.technical_supervisor_phone, d.recall_reason, d.technical_supervisor_name, d.technical_supervisor_phone, d.recall_reason,
...@@ -339,7 +358,8 @@ ...@@ -339,7 +358,8 @@
<select id="find24HoursUnprocessedResumeDemandsForHeadquarters" resultMap="BaseResultMap"> <select id="find24HoursUnprocessedResumeDemandsForHeadquarters" resultMap="BaseResultMap">
SELECT SELECT
d.id, d.merchant_name, d.merchant_id, d.region_operation_id, d.region_operation_name, d.id, d.merchant_name, d.merchant_id, d.brand, d.connection_flag, d.by_system_merchant,
d.sales_volume, d.merchant_address, d.region_operation_id, d.region_operation_name,
d.business_type, d.business_type_name, d.recruitment_quantity, d.recruitment_type, d.business_type, d.business_type_name, d.recruitment_quantity, d.recruitment_type,
d.recruitment_type_name, d.requirement_description, d.recruiter_name, d.recruiter_phone, d.recruitment_type_name, d.requirement_description, d.recruiter_name, d.recruiter_phone,
d.technical_supervisor_name, d.technical_supervisor_phone, d.recall_reason, d.technical_supervisor_name, d.technical_supervisor_phone, d.recall_reason,
...@@ -362,7 +382,8 @@ ...@@ -362,7 +382,8 @@
<select id="find48HoursUnprocessedResumeDemandsForHeadquarters" resultMap="BaseResultMap"> <select id="find48HoursUnprocessedResumeDemandsForHeadquarters" resultMap="BaseResultMap">
SELECT SELECT
d.id, d.merchant_name, d.merchant_id, d.region_operation_id, d.region_operation_name, d.id, d.merchant_name, d.merchant_id, d.brand, d.connection_flag, d.by_system_merchant,
d.sales_volume, d.merchant_address, d.region_operation_id, d.region_operation_name,
d.business_type, d.business_type_name, d.recruitment_quantity, d.recruitment_type, d.business_type, d.business_type_name, d.recruitment_quantity, d.recruitment_type,
d.recruitment_type_name, d.requirement_description, d.recruiter_name, d.recruiter_phone, d.recruitment_type_name, d.requirement_description, d.recruiter_name, d.recruiter_phone,
d.technical_supervisor_name, d.technical_supervisor_phone, d.recall_reason, d.technical_supervisor_name, d.technical_supervisor_phone, d.recall_reason,
...@@ -393,7 +414,7 @@ ...@@ -393,7 +414,7 @@
INNER JOIN dj_car_life_recruitment_resume r ON d.id = r.demand_id INNER JOIN dj_car_life_recruitment_resume r ON d.id = r.demand_id
WHERE d.status = 1 WHERE d.status = 1
AND d.deleted_flag = 'N' AND d.deleted_flag = 'N'
AND d.business_type IN ('1', '2', '3', '5') AND d.business_type IN ('1', '2', '3', '5', '10')
AND d.region_operation_id IS NOT NULL AND d.region_operation_id IS NOT NULL
AND d.region_operation_name IS NOT NULL AND d.region_operation_name IS NOT NULL
AND r.deleted_flag = 'N' AND r.deleted_flag = 'N'
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
select select
dclrr.id, dclrr.demand_id, dclrr.person_name, dclrr.phone_number, dclrr.resume_url, dclrr.process_result, dclrr.id, dclrr.demand_id, dclrr.person_name, dclrr.phone_number, dclrr.resume_url, dclrr.process_result,
dclrr.interview_time, dclrr.interview_result, dclrr.description, dclrr.processor_name, dclrr.process_time, dclrr.recommended_reason, dclrr.interview_time, dclrr.interview_result, dclrr.description, dclrr.processor_name, dclrr.process_time, dclrr.recommended_reason,
dclrr.created_by, dclrr.created_date, dclrr.updated_by, dclrr.updated_date, dclrr.deleted_flag dclrr.channel_type, dclrr.channel_name, dclrr.created_by, dclrr.created_date, dclrr.updated_by, dclrr.updated_date, dclrr.deleted_flag
from dj_car_life_recruitment_resume dclrr from dj_car_life_recruitment_resume dclrr
<include refid="list_condition"/> <include refid="list_condition"/>
order by IF(dclrr.process_result is null, 0, 1),dclrr.id order by IF(dclrr.process_result is null, 0, 1),dclrr.id
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
<result column="updated_by" property="updatedBy" jdbcType="VARCHAR" /> <result column="updated_by" property="updatedBy" jdbcType="VARCHAR" />
<result column="updated_date" property="updatedDate" jdbcType="TIMESTAMP" /> <result column="updated_date" property="updatedDate" jdbcType="TIMESTAMP" />
<result column="deleted_flag" property="deletedFlag" jdbcType="CHAR" /> <result column="deleted_flag" property="deletedFlag" jdbcType="CHAR" />
<result column="created_phone" property="createdPhone" jdbcType="VARCHAR" />
</resultMap> </resultMap>
<resultMap id="DTOResultMap" type="cn.com.glsx.dj.staff.dto.recruitment.RecruitmentTrialOnboardingDTO" extends="BaseResultMap"> <resultMap id="DTOResultMap" type="cn.com.glsx.dj.staff.dto.recruitment.RecruitmentTrialOnboardingDTO" extends="BaseResultMap">
...@@ -27,7 +28,7 @@ ...@@ -27,7 +28,7 @@
WARNING - @mbg.generated WARNING - @mbg.generated
--> -->
id, demand_id, person_name, phone_number, trial_time, channel_type, channel_name, id, demand_id, person_name, phone_number, trial_time, channel_type, channel_name,
confirm_flag, created_by, created_date, updated_by, updated_date, deleted_flag confirm_flag, created_by, created_date, updated_by, updated_date, deleted_flag, created_phone
</sql> </sql>
<sql id="listCondition"> <sql id="listCondition">
where dclrto.deleted_flag = 'N' where dclrto.deleted_flag = 'N'
......
...@@ -97,4 +97,40 @@ ...@@ -97,4 +97,40 @@
</if> </if>
</where> </where>
</select> </select>
<select id="listStaffUuidByPhoneList" resultType="java.lang.String">
select distinct dclsi.staff_uuid
from dj_car_life_staff_info dclsi
<where>
dclsi.deleted_flag = 'N'
<if test="phones != null and phones.size > 0">
and dclsi.phone_number in
<foreach item="item" index="index" collection="phones" open="(" separator="," close=")">
#{item}
</foreach>
</if>
</where>
</select>
<select id="statMerchantResignedStaffCountByBusinessType" resultType="java.lang.Integer">
select
ifnull(count(distinct dclgo.seller_user_id), 0)
from dj_car_life_goods_order dclgo
<where>
dclgo.deleted_flag = 'N'
and dclgo.merchant_id = #{merchantId}
<if test="businessTypeList != null and businessTypeList.size > 0">
and dclgo.business_type in
<foreach item="item" index="index" collection="businessTypeList" open="(" separator="," close=")">
#{item}
</foreach>
</if>
<if test="staffUuids != null and staffUuids.size > 0">
and dclgo.seller_user_id in
<foreach item="item" index="index" collection="staffUuids" open="(" separator="," close=")">
#{item}
</foreach>
</if>
</where>
</select>
</mapper> </mapper>
...@@ -109,4 +109,24 @@ public class RecruitmentDemandServiceTest extends BaseServiceTest { ...@@ -109,4 +109,24 @@ public class RecruitmentDemandServiceTest extends BaseServiceTest {
dto.getRecruiterName() dto.getRecruiterName()
); );
} }
@Test
public void testRecruitmentDemandMerchantOverview() {
RecruitmentDemandMerchantOverviewQueryDTO dto = new RecruitmentDemandMerchantOverviewQueryDTO();
dto.setMerchantId(44211847);
dto.setBiz(1);
RecruitmentDemandMerchantOverviewDTO res = recruitmentDemandService.recruitmentDemandMerchantOverview(dto);
System.out.print(JSON.toJSON(res));
}
@Test
public void testCheckAndRemindUnprocessedResumeIn24Hours() {
recruitmentDemandService.checkAndRemindUnprocessedResumeIn24Hours();
}
@Test
public void testCheckAndRemindUnprocessedResumeIn48Hours() {
recruitmentDemandService.checkAndRemindUnprocessedResumeIn48Hours();
}
} }
\ No newline at end of file \ No newline at end of file
  • @wangxw1
    commented
    Master

    一、关键问题与优化建议,如果必要,给出代码示例(仅限 Top 3)

    1. 严重性能与稳定性风险:大批量数据导致 SQL IN 语句超长

    • 问题描述:在 RecruitmentDemandService 中,listResignedStaffPhonesFromBeisen 方法直接设置 pageSize=10000 调用外部接口拉取离职人员。随后将这最多 10000 个手机号传入 StaffPerformanceCalMapper.listStaffUuidByPhoneList 作为 SQL 的 IN 条件,又将返回的 staffUuids 传入 statMerchantResignedStaffCountByBusinessType 作为 IN 条件。
    • 影响分析:
      1. 外部接口一次性返回万条数据极易造成接口超时、OOM 或触发对方限流。
      2. MySQL 对 SQL 长度有限制(max_allowed_packet),IN 条件包含成千上万个元素时会导致 SQL 解析极慢,甚至直接抛出语法异常,导致该功能完全不可用。
    • 优化建议:
      1. 对北森接口的调用应采取真实的分页循环拉取(如每次拉取 500 条),直到拉完为止。
      2. 对数据库的 IN 查询,需要将大集合进行切片(如 Lists.partition(phones, 500)),分批查询数据库后在内存中合并结果。

    2. 最佳实践与性能问题:在 for 循环中进行数据库操作

    • 问题描述:在 RecruitmentDemandService.recruitmentDemandBatchChange 方法中,存在两个 for 循环。第一个循环通过 recruitmentDemandMapper.selectByPrimaryKey(id) 逐条查询数据库校验状态;第二个循环通过 recruitmentDemandMapper.updateByPrimaryKeySelective(update) 逐条更新数据库。
    • 影响分析:虽然前端批量操作的数量可能有限,但在循环中逐条发起数据库网络请求会导致不必要的网络 I/O 消耗,降低接口响应速度,且容易在数据量稍大时引发连接池瓶颈。
    • 优化建议: 使用批量查询和批量更新。 ```java // 批量查询 Example example = new Example(RecruitmentDemand.class); example.createCriteria().andIn("id", dto.getIds()); List demands = recruitmentDemandMapper.selectByExample(example); // 校验逻辑...

    // 批量更新或使用 MyBatis 的 foreach 标签编写批量 Update SQL

    
    **3. 并发安全风险:分布式锁与 `@Transactional` 事务的嵌套顺序问题**
    - **问题描述**:在 `trialOnboardingAdd`、`trialOnboardingEdit`、`trialOnboardingDelete` 等方法上,同时标注了 `@GlsxDistributeLockable` 和 `@Transactional`。
    - **影响分析**:Spring AOP 多个切面作用于同一个方法时,如果不显式指定 `@Order`,执行顺序是不确定的。如果事务切面在最外层,分布式锁在内层,当方法执行结束时,会先释放分布式锁,然后再提交事务。在这极短的时间差内,其他线程可能获取到锁并读取到尚未提交的脏数据,导致并发控制失效。
    - **优化建议**:确保分布式锁的切面优先级高于事务切面,或者将加锁操作上移到 Controller/Remote 层,确保“加锁 -> 开启事务 -> 提交事务 -> 释放锁”的严格执行顺序。
    
    
    #### 二、评分明细
    1. **功能实现的正确性与健壮性(32/40分)**:整体业务逻辑清晰,但存在超长 `IN` 集合查询导致 SQL 执行失败的严重隐患,健壮性欠佳。
    2. **安全性与潜在风险(28/30分)**:参数校验较为完备,无明显 SQL 注入或越权风险。但在捕获异常时(如 `trialOnboardingAdd`),抛出新的 `RpcServiceException` 时未保留原始异常堆栈,不利于线上排查。
    3. **最佳实践与可维护性(15/20分)**:代码结构较好,但存在循环查库/写库等反模式行为;部分方法过长(如 `recruitmentDemandExportData`),建议适当抽取私有方法以提高可读性。
    4. **性能与资源利用(3/5分)**:分页接口一次性拉取万级数据及循环数据库操作对性能和资源利用不友好。
    5. **提交信息质量(4/5分)**:Commit 信息包含了具体的业务动作(如新增接口、移动端详情调整等),能够较好地追溯变更目的。
    
    总分:82分
    
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!