Commit db0abbbd by 范富荣

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

1 parent 6e6e2783
package cn.com.glsx.dj.strategy.service; 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.dto.req.output.SceneBaseReq;
import cn.com.glsx.dj.peanalysis.remote.BusinessSceneAnalysisRemote; import cn.com.glsx.dj.peanalysis.remote.BusinessSceneAnalysisRemote;
import cn.com.glsx.dj.riskmanage.dto.learningcenter.CourseSearchDTO; import cn.com.glsx.dj.riskmanage.dto.learningcenter.CourseSearchDTO;
...@@ -170,12 +171,14 @@ public class StrategyMerchantTimelineService { ...@@ -170,12 +171,14 @@ public class StrategyMerchantTimelineService {
if (CollectionUtils.isEmpty(dbLines)) {//数据库无数据,需要初始化 if (CollectionUtils.isEmpty(dbLines)) {//数据库无数据,需要初始化
//1.查询业务场景+门店 :产品首次上架时间 //1.查询业务场景+门店 :产品首次上架时间
handlerProductFirstShelveDate(request, now, nodes); handlerProductFirstShelveDate(request, now, nodes);
if (BusinessTypeEnums.EXTENDED_WARRANTY.getCode().equals(request.getBizs())) {
//3. 查询业务场景+门店 :安心包产品上架时间 //3. 查询业务场景+门店 :安心包产品上架时间
handlerAnxiousPackageShelveDate(request, now, nodes); handlerAnxiousPackageShelveDate(request, now, nodes);
//4. 查询业务场景+门店 :延保-轮胎上架时间 //4. 查询业务场景+门店 :延保-轮胎上架时间
handlerDelayedTireShelveDate(request, now, nodes); handlerDelayedTireShelveDate(request, now, nodes);
//5. 查询业务场景+门店 :延保-电池上架时间 //5. 查询业务场景+门店 :延保-电池上架时间
handlerDelayedBatteryShelveDate(request, now, nodes); handlerDelayedBatteryShelveDate(request, now, nodes);
}
//2. 查询业务场景+门店 :正式开单时间/展业风险时间/停止展业时间/恢复展业时间 //2. 查询业务场景+门店 :正式开单时间/展业风险时间/停止展业时间/恢复展业时间
handlerOrderDay(null, nodes, request, now); handlerOrderDay(null, nodes, request, now);
} else {//查缺补漏 } else {//查缺补漏
...@@ -184,6 +187,7 @@ public class StrategyMerchantTimelineService { ...@@ -184,6 +187,7 @@ public class StrategyMerchantTimelineService {
//1.查询业务场景+门店 :产品首次上架时间 //1.查询业务场景+门店 :产品首次上架时间
handlerProductFirstShelveDate(request, now, nodes); handlerProductFirstShelveDate(request, now, nodes);
} }
if (BusinessTypeEnums.EXTENDED_WARRANTY.getCode().equals(request.getBizs())) {
if (!nodeTypeList.contains(MerchantNodeTypeEnum.ANXIOUS_PACKAGE_SHELVE.getValue())) { if (!nodeTypeList.contains(MerchantNodeTypeEnum.ANXIOUS_PACKAGE_SHELVE.getValue())) {
//3. 查询业务场景+门店 :安心包产品上架时间 //3. 查询业务场景+门店 :安心包产品上架时间
handlerAnxiousPackageShelveDate(request, now, nodes); handlerAnxiousPackageShelveDate(request, now, nodes);
...@@ -196,6 +200,7 @@ public class StrategyMerchantTimelineService { ...@@ -196,6 +200,7 @@ public class StrategyMerchantTimelineService {
//5. 查询业务场景+门店 :延保-电池上架时间 //5. 查询业务场景+门店 :延保-电池上架时间
handlerDelayedBatteryShelveDate(request, now, nodes); handlerDelayedBatteryShelveDate(request, now, nodes);
} }
}
//对dbLines 根据nodeDate 进行降序排序, 如果nodeDate一致,再根据nodeType 进行降序排序 //对dbLines 根据nodeDate 进行降序排序, 如果nodeDate一致,再根据nodeType 进行降序排序
Collections.sort(dbLines, (o1, o2) -> { 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!