Commit db0abbbd by 范富荣

策略中心-修改门店时间线查询逻辑

1 parent 6e6e2783
package cn.com.glsx.dj.strategy.service;
import cn.com.glsx.dj.mindworkplate.enums.messagebox.BusinessTypeEnums;
import cn.com.glsx.dj.peanalysis.dto.req.output.SceneBaseReq;
import cn.com.glsx.dj.peanalysis.remote.BusinessSceneAnalysisRemote;
import cn.com.glsx.dj.riskmanage.dto.learningcenter.CourseSearchDTO;
......@@ -170,12 +171,14 @@ public class StrategyMerchantTimelineService {
if (CollectionUtils.isEmpty(dbLines)) {//数据库无数据,需要初始化
//1.查询业务场景+门店 :产品首次上架时间
handlerProductFirstShelveDate(request, now, nodes);
//3. 查询业务场景+门店 :安心包产品上架时间
handlerAnxiousPackageShelveDate(request, now, nodes);
//4. 查询业务场景+门店 :延保-轮胎上架时间
handlerDelayedTireShelveDate(request, now, nodes);
//5. 查询业务场景+门店 :延保-电池上架时间
handlerDelayedBatteryShelveDate(request, now, nodes);
if (BusinessTypeEnums.EXTENDED_WARRANTY.getCode().equals(request.getBizs())) {
//3. 查询业务场景+门店 :安心包产品上架时间
handlerAnxiousPackageShelveDate(request, now, nodes);
//4. 查询业务场景+门店 :延保-轮胎上架时间
handlerDelayedTireShelveDate(request, now, nodes);
//5. 查询业务场景+门店 :延保-电池上架时间
handlerDelayedBatteryShelveDate(request, now, nodes);
}
//2. 查询业务场景+门店 :正式开单时间/展业风险时间/停止展业时间/恢复展业时间
handlerOrderDay(null, nodes, request, now);
} else {//查缺补漏
......@@ -184,17 +187,19 @@ public class StrategyMerchantTimelineService {
//1.查询业务场景+门店 :产品首次上架时间
handlerProductFirstShelveDate(request, now, nodes);
}
if (!nodeTypeList.contains(MerchantNodeTypeEnum.ANXIOUS_PACKAGE_SHELVE.getValue())) {
//3. 查询业务场景+门店 :安心包产品上架时间
handlerAnxiousPackageShelveDate(request, now, nodes);
}
if (!nodeTypeList.contains(MerchantNodeTypeEnum.DELAYED_PROTECTION_TIRE_SHELVE.getValue())) {
//4. 查询业务场景+门店 :延保-轮胎上架时间
handlerDelayedTireShelveDate(request, now, nodes);
}
if (!nodeTypeList.contains(MerchantNodeTypeEnum.DELAYED_PROTECTION_BATTERY_SHELVE.getValue())) {
//5. 查询业务场景+门店 :延保-电池上架时间
handlerDelayedBatteryShelveDate(request, now, nodes);
if (BusinessTypeEnums.EXTENDED_WARRANTY.getCode().equals(request.getBizs())) {
if (!nodeTypeList.contains(MerchantNodeTypeEnum.ANXIOUS_PACKAGE_SHELVE.getValue())) {
//3. 查询业务场景+门店 :安心包产品上架时间
handlerAnxiousPackageShelveDate(request, now, nodes);
}
if (!nodeTypeList.contains(MerchantNodeTypeEnum.DELAYED_PROTECTION_TIRE_SHELVE.getValue())) {
//4. 查询业务场景+门店 :延保-轮胎上架时间
handlerDelayedTireShelveDate(request, now, nodes);
}
if (!nodeTypeList.contains(MerchantNodeTypeEnum.DELAYED_PROTECTION_BATTERY_SHELVE.getValue())) {
//5. 查询业务场景+门店 :延保-电池上架时间
handlerDelayedBatteryShelveDate(request, now, nodes);
}
}
//对dbLines 根据nodeDate 进行降序排序, 如果nodeDate一致,再根据nodeType 进行降序排序
Collections.sort(dbLines, (o1, o2) -> {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!