Commit 4e1784b08107562a0c910ab8fa914f06b40cc34a

Authored by xianpengcheng
1 parent d8ddee37

来源与报表统一为 60

fw-valhalla-domain/src/main/java/cn/fw/valhalla/domain/enums/ValhallaReportDimension.java
... ... @@ -24,7 +24,7 @@ public enum ValhallaReportDimension {
24 24 /**
25 25 * 来源
26 26 */
27   - D99("99"),
  27 + D60("60"),
28 28 ;
29 29  
30 30 /**
... ...
fw-valhalla-service/src/main/java/cn/fw/valhalla/service/report/PublicReportBizService.java
... ... @@ -165,7 +165,7 @@ public class PublicReportBizService {
165 165 }else {
166 166 //不是1号的数据直接从上次抽取的数据中查询月初一的数据
167 167 List<PublicReportData> reportDataList = publicReportDataService.list(Wrappers.<PublicReportData>lambdaQuery()
168   - .eq(PublicReportData::getReportDimension, ValhallaReportDimension.D99.getValue())
  168 + .eq(PublicReportData::getReportDimension, ValhallaReportDimension.D60.getValue())
169 169 .eq(PublicReportData::getDataDate, startMonDate)
170 170 );
171 171 if (!CollectionUtils.isEmpty(reportDataList)){
... ... @@ -557,13 +557,13 @@ public class PublicReportBizService {
557 557  
558 558 private PublicReportData getPublicReportDataD99Increase(List<PublicReportData> publicReportData20List,PublicPoolReportDTO publicPoolReportDTO,Long groupId){
559 559 if (CollectionUtils.isEmpty(publicReportData20List)){
560   - return new PublicReportData(ValhallaReportDimension.D99.getValue(),groupId);
  560 + return new PublicReportData(ValhallaReportDimension.D60.getValue(),groupId);
561 561 }
562 562 Optional<PublicReportData> dataOptional = publicReportData20List.stream().filter(e -> publicPoolReportDTO.getType().equals(e.getType()) && publicPoolReportDTO.getShopId().equals(e.getShopId())).findFirst();
563 563 if (dataOptional.isPresent()){
564 564 return dataOptional.get();
565 565 }
566   - return new PublicReportData(ValhallaReportDimension.D99.getValue(),groupId);
  566 + return new PublicReportData(ValhallaReportDimension.D60.getValue(),groupId);
567 567 }
568 568  
569 569 private PublicReportData getPublicReportDataD10(List<PublicReportData> publicReportData20List,Long shopId,Long groupId){
... ...