Commit b4234bb6 by 杨卫

feat(strategy): 新增督导带教功能并优化预警汇总查询

- 新增督导带教人员下拉列表查询接口及实现
- 添加学习记录请求参数支持模糊搜索字段
- 优化预警汇总查询逻辑,切换门店数据源为商户关系表
- 新增商户关系表查询服务及相应映射器
- 添加策略检查响应DTO的最大订单数阈值字段
- 更新RPC依赖版本至5.8.5-SNAPSHOT
- 重构策略分发处理器减少不必要的导入
- 修复商户过滤工具中的渠道类型设置问题
1 parent b067354c
......@@ -37,7 +37,7 @@
<dependency>
<groupId>cn.com.glsx</groupId>
<artifactId>rpc-dj-mindworkplate-api</artifactId>
<version>5.8.2-SNAPSHOT</version>
<version>5.8.5-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>cn.com.glsx.merchants</groupId>
......
......@@ -14,6 +14,8 @@ import cn.com.glsx.dj.strategy.dto.ShopMerchantOperatorReqDTO;
import cn.com.glsx.dj.strategy.dto.ShopMerchantOperatorRespDTO;
import cn.com.glsx.dj.strategy.dto.StrategyDetailReqDTO;
import cn.com.glsx.dj.strategy.dto.StrategyDetailRespDTO;
import cn.com.glsx.dj.strategy.dto.SupervisorOperatorReqDTO;
import cn.com.glsx.dj.strategy.dto.SupervisorOperatorRespDTO;
import cn.com.glsx.dj.strategy.model.StrategyInfo;
import cn.com.glsx.dj.strategy.enums.StrategyDataSourceEnum;
import cn.com.glsx.dj.strategy.remote.StrategyInfoRemote;
......@@ -319,4 +321,27 @@ public class StrategyInfoController {
return RopResponse.error(e.getMessage());
}
}
@ApiOperation("查询督导带教人员下拉列表(区域运营+飞行督导)")
@ServiceMethod(method = "dj.api.strategy.supervisor.operator.list", needInSession = NeedInSessionType.NO, ignoreSign = IgnoreSignType.YES)
public RopResponse<List<SupervisorOperatorRespDTO>> listSupervisorsAndOperators(SupervisorOperatorRequest request) {
try {
SupervisorOperatorReqDTO reqDTO = new SupervisorOperatorReqDTO();
if (request != null) {
reqDTO.setKeyword(request.getKeyword());
}
RpcResponse<List<SupervisorOperatorRespDTO>> response = strategyInfoRemote.listSupervisorsAndOperators(reqDTO);
if (response.isFailed()) {
log.error("查询督导带教人员下拉列表失败: {}", response.getMessage());
return RopResponse.error(response.getError(), response.getMessage());
}
return RopResponse.success(response.getResult());
} catch (RpcServiceException e) {
log.error("=====dj.api.strategy.supervisor.operator.list rpcServiceException:{}", e.getMessage());
return RopResponse.error(e);
} catch (Exception e) {
log.error("=====dj.api.strategy.supervisor.operator.list exception:{}", e.getMessage(), e);
return RopResponse.error(e.getMessage());
}
}
}
......@@ -133,7 +133,7 @@ public class WarningController {
req.setTimeDimension(resolved[0]);
req.setStartDate(resolved[1]);
req.setEndDate(resolved[2]);
RpcResponse<List<StoreWarningSummaryDTO>> response = warningEngineRemote.findWarningSummary(req);
RpcResponse<List<StoreWarningSummaryDTO>> response = warningEngineRemote.findWarningSummaryFromRelation(req);
if (response.hasError()) {
log.error(response.getMessage());
return RopResponse.error(response.getError(), response.getMessage());
......
......@@ -52,4 +52,13 @@ public class LearningRecordRopRequest extends AbstractRopRequest implements Seri
@NotNull
private Integer pageSize = 10;
@ApiModelProperty(value = "客户名称(模糊搜索)")
private String customerName;
@ApiModelProperty(value = "车型(模糊搜索)")
private String carModel;
@ApiModelProperty(value = "产品名称(模糊搜索)")
private String productName;
}
\ No newline at end of file
package cn.com.glsx.dj.strategy.request;
import com.rop.AbstractRopRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* 督导带教人员下拉列表请求
*
* @author yangwei_by_claude
* @version 1.0
* @since 2026/08/10
*/
@Data
public class SupervisorOperatorRequest extends AbstractRopRequest {
@ApiModelProperty(notes = "关键字(模糊匹配姓名/手机号)")
private String keyword;
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!