Commit 1708def1 by 谢海旭

Merge branch 'v5.7.1' into 'v5.7.4'

V5.7.1

See merge request !14
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. 循环内调用远程服务与数据库查询(性能与稳定性风险)

    • 问题描述:
      • 在 RecruitmentDemandService.recruitmentDemandBatchChange 方法中,在 for 循环内多次调用 recruitmentDemandMapper.selectByPrimaryKey 和 updateByPrimaryKeySelective。
      • 在 recruitmentDemandExportData 方法中,对 systemMerchantIdIntegers 列表使用了 parallelStream() 并在其中循环调用 getSalesVolume(该方法内含 RPC 远程调用)。
    • 影响分析:
      • 批量变更:如果 ids 较多,会导致大量数据库 IO,增加事务耗时,容易在高并发下引起数据库连接池耗尽或行锁竞争。
      • 导出功能:虽然使用了并行流,但在并行线程中发起 RPC 调用会快速消耗 Dubbo/Feign 的线程池资源。如果下游服务响应慢,会阻塞整个导出任务,甚至拖垮当前服务的线程池。
    • 优化建议:
      • 批量变更:应改为根据 ID 列表一次性查询(selectByIdIn),并在内存中处理后,使用 MyBatis 的 foreach 标签或批量更新语法进行一次性更新。
      • 导出功能:应将 RPC 调用改为批量查询接口(如 getSalesVolumeBatch(List<Integer> ids)),在循环外一次性获取数据并存入 Map,避免在循环或并行流中发起网络请求。

    2. 离职人数统计逻辑的准确性与性能风险(功能正确性与性能)

    • 问题描述:
      • 在 listResignedStaffPhonesFromBeisen 中,pageSize 被硬编码为 10000,且直接通过 RPC 获取全量北森离职人员。
      • 在 statMerchantResignedStaffCount 中,先获取所有手机号,再通过 listStaffUuidByPhoneList 查询 UUID,最后在 statMerchantResignedStaffCountByBusinessType 中使用 IN 子句查询订单表。
    • 影响分析:
      • OOM 风险:随着北森系统离职人员增多,一次性加载 1w+ 数据到内存并作为 SQL IN 条件,极易触发 StackOverflowError 或 SQL 语句过长异常(超过 max_allowed_packet)。
      • 逻辑准确性:通过手机号匹配 UUID 可能存在历史复用或数据不一致问题。且该统计依赖于订单表的 seller_user_id,若员工离职后 UUID 被物理删除或变更,统计结果将不准。
    • 优化建议:
      • 建议增加时间维度限制(如:仅统计近一年的离职人员)。
      • 采用分页处理逻辑,或将“离职员工统计”逻辑异步化/缓存化,避免在查询概况接口中实时执行如此沉重的多表、跨系统关联操作。

    3. 潜在的越权风险与数据一致性校验不足(安全性与健壮性)

    • 问题描述:
      • 在 trialOnboardingEdit 和 trialOnboardingDelete 中,校验逻辑为 !dto.getCreatedPhone().equals(existing.getCreatedPhone())。
      • 这里的 dto.getCreatedPhone() 来自于前端传参,而非服务端 Session 或安全上下文中的用户信息。
    • 影响分析:
      • 越权风险:恶意用户可以通过抓包修改 createdPhone 参数,从而编辑或删除不属于自己的试岗人员记录(水平越权)。
      • 数据一致性:RecruitmentDemandService_recruitmentDemandProcess_ 分布式锁仅锁定了 demandId,但在批量变更接口 recruitmentDemandBatchChange 中,并未对所操作的 ids 属于同一个商户或权限范围进行前置校验。
    • 优化建议:
      • 严禁信任前端传入的用户标识(如手机号、ID)。应从服务端获取当前登录人的 Identity 信息进行校验。
      • 在批量操作前,应增加权限范围检查,确保操作者对所有 ids 拥有合法的管理权限。

    二、评分明细

    评分维度 分数 理由
    功能正确性与健壮性 32/40 实现了核心业务逻辑,但离职统计逻辑过于依赖内存过滤和长 SQL IN 条件,存在失效和异常风险。
    安全性与潜在风险 22/30 存在明显的水平越权风险,编辑/删除操作的权限校验依赖于前端传入的手机号字段。
    最佳实践与可维护性 16/20 结构清晰,使用了 DTO 隔离。但部分配置代码(如 MerchantDubboConfig)存在大量注释代码未清理。
    性能与资源利用 3/5 循环内存在数据库操作和 RPC 调用,导出功能的并行流 RPC 调用存在资源竞争隐患。
    提交信息质量 4/5 Commit 信息较为频繁,但部分信息过于简单(如多次“招聘管理”),建议更具描述性。

    审查结论:

    代码完成了业务功能的迭代,但在高性能处理(批量操作)和基础安全(越权校验)方面存在典型工程问题。建议在上线前优化批量处理逻辑并加固权限校验。

    总分:77分

Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!