Commit d91e8af6 by 谢海旭

202601月底版本 策略中心:兜底目标、策略列表

1 parent 65a86bf3
package cn.com.glsx.dj.strategy.config.dubbo;
import cn.com.glsx.dj.mindworkplate.remote.EarlyWarningMsgRemote;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class MindworkplateDubboConfig extends DubboConfig {
@Bean
public EarlyWarningMsgRemote recruitmentDemandRemote() {
return factory.builder(EarlyWarningMsgRemote.class).check(check)/*.url("dubbo://localhost:20885")*/.timeout(timeout).build();
}
}
......@@ -4,6 +4,7 @@ import cn.com.glsx.dj.mindworkplate.dto.monitoring.MonitorFilterRequest;
import cn.com.glsx.dj.mindworkplate.dto.monitoring.StoreItemResponse;
import cn.com.glsx.dj.mindworkplate.dto.warning.EarlyWarningThresholdConfigHistoryDTO;
import cn.com.glsx.dj.mindworkplate.model.MonitorTypeDict;
import cn.com.glsx.dj.mindworkplate.remote.EarlyWarningMsgRemote;
import cn.com.glsx.dj.mindworkplate.remote.MonitoringRemote;
import cn.com.glsx.dj.peanalysis.dto.req.output.SceneBaseReq;
import cn.com.glsx.dj.peanalysis.dto.res.output.EmployeeDetailSummaryResponse;
......@@ -27,6 +28,7 @@ import cn.com.glsx.framework.core.exception.RpcServiceException;
import cn.com.glsx.framework.core.util.RpcAssert;
import cn.com.glsx.framework.rop.response.RopResponse;
import cn.com.glsx.merchants.model.response.merchant.MerchantBasicInfoListResponse;
import com.rop.annotation.IgnoreSignType;
import com.rop.annotation.NeedInSessionType;
import com.rop.annotation.ServiceMethod;
import com.rop.annotation.ServiceMethodBean;
......@@ -59,6 +61,9 @@ public class MerchantAnalysisController {
private LoginService loginService;
@Autowired
private EarlyWarningMsgRemote earlyWarningMsgRemote;
@Autowired
private Environment environment;
......@@ -209,9 +214,22 @@ public class MerchantAnalysisController {
}
@ApiOperation("策略中心-门店分析-历史兜底指标")
@ServiceMethod(method = "dj.api.strategy.merchant.analysis.index.history", needInSession = NeedInSessionType.YES)
// @ServiceMethod(method = "dj.api.strategy.merchant.analysis.index.history", needInSession = NeedInSessionType.YES)
@ServiceMethod(method = "dj.api.strategy.merchant.analysis.index.history", needInSession = NeedInSessionType.NO, ignoreSign = IgnoreSignType.YES)
public RopResponse<List<EarlyWarningThresholdConfigHistoryDTO>> merchantAnalysisIndexHistory(MerchantStaffHistoryRecordRequest request) {
return null;
try {
RpcResponse<List<EarlyWarningThresholdConfigHistoryDTO>> response = earlyWarningMsgRemote.listMerchantAnalysisIndexHistory(request.getMerchantId().toString());
if (response.isSuccess()) {
return RopResponse.success(response.getResult());
}
return RopResponse.error(response.getMessage());
} catch (RpcServiceException e) {
log.error("=====dj.api.strategy.merchant.analysis.index.history rpcServiceException:{}", e.getMessage());
return RopResponse.error(e);
} catch (Exception e) {
log.error("=====dj.api.strategy.merchant.analysis.index.history exception:{}", e.getMessage(), e);
return RopResponse.error(e.getMessage());
}
}
@ApiOperation("延保/权益/轻改-查询门店是否鸿蒙")
......
......@@ -17,6 +17,7 @@ import cn.com.glsx.framework.core.beans.rpc.RpcPagination;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
import cn.com.glsx.framework.core.exception.RpcServiceException;
import cn.com.glsx.framework.rop.response.RopResponse;
import com.rop.annotation.IgnoreSignType;
import com.rop.annotation.NeedInSessionType;
import com.rop.annotation.ServiceMethod;
import com.rop.annotation.ServiceMethodBean;
......@@ -41,9 +42,20 @@ public class StrategyInfoController {
@ApiOperation("策略分页列表")
@ServiceMethod(method = "dj.api.strategy.info.page")
@ServiceMethod(method = "dj.api.strategy.info.page", needInSession = NeedInSessionType.NO, ignoreSign = IgnoreSignType.YES)
public RopResponse<RpcPagination<StrategyInfo>> strategyInfoPage(StaffInfoPageRequest request) {
return null;
try {
RpcPagination<StrategyInfo> pagination = CommonUtil.getRpcPagination(StrategyInfo.class);
RpcResponse<RpcPagination<StrategyInfo>> response = strategyInfoRemote.selectStrategyInfoPage(pagination);
if (response.hasError()) {
log.error(response.getMessage());
return RopResponse.error(response.getError(), response.getMessage());
}
return RopResponse.success(response.getResult());
} catch (Exception e) {
log.error("=====dj.api.strategy.info.page exception:{}", e.getMessage(), e);
return RopResponse.error(e.getMessage());
}
}
@ApiOperation("创建策略")
......
......@@ -10,7 +10,7 @@ public class MerchantStaffHistoryRecordRequest extends AbstractRopRequest {
@ApiModelProperty(notes = "业务类型(1.延保 2.轻改 3.权益)")
private Integer bizs;
@ApiModelProperty(notes = "门店号列表")
@ApiModelProperty(notes = "门店号")
private Integer merchantId;
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!