BI总体运营态势查询
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
package com.mhd.bi.domain.biOverallOperation.repository.mapper;
|
||||
|
||||
import com.mhd.bi.domain.biReport.support.BiReportSnapshotMapperSupport;
|
||||
import com.mhd.bi.interfaces.facadeApi.biReport.vo.overall.OverallOperationSituationVO;
|
||||
|
||||
/**
|
||||
* 总体运营态势:SQL 见 BiOverallOperationReportMapper.xml;取数与组装均在 Mapper 层完成。
|
||||
*/
|
||||
public interface BiOverallOperationReportMapper {
|
||||
|
||||
String selectLatestPayloadJson();
|
||||
|
||||
default OverallOperationSituationVO loadLatestOverallOperation() {
|
||||
return BiReportSnapshotMapperSupport.parsePayload(
|
||||
selectLatestPayloadJson(),
|
||||
OverallOperationSituationVO.class,
|
||||
BiReportSnapshotMapperSupport::emptyOverallOperationSituation,
|
||||
"总体运营态势");
|
||||
}
|
||||
}
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
package com.mhd.bi.domain.biOverallOperation.service;
|
||||
|
||||
import com.mhd.bi.domain.biOverallOperation.repository.mapper.BiOverallOperationReportMapper;
|
||||
import com.mhd.bi.interfaces.facadeApi.biReport.vo.overall.OverallOperationSituationVO;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* 南光物流业务经营分析 · 总体运营态势(大图1)
|
||||
*/
|
||||
@Service
|
||||
public class BiOverallOperationReportService {
|
||||
|
||||
@Resource
|
||||
private BiOverallOperationReportMapper biOverallOperationReportMapper;
|
||||
|
||||
public OverallOperationSituationVO loadLatestOverallOperation() {
|
||||
return biOverallOperationReportMapper.loadLatestOverallOperation();
|
||||
}
|
||||
}
|
||||
+2
-1
@@ -242,6 +242,7 @@ public final class BiSnapshotWeeklyRandomDataBuilder {
|
||||
|
||||
/**
|
||||
* 与产品约定返回值示例一致,供快照同步与联调。
|
||||
* {@code warehouse.capabilityRanking}、{@code transport.enterpriseRanking} 的 {@code name} 为固定展示名,不参与随机抖动。
|
||||
*/
|
||||
public static OverallOperationSituationVO overallReferenceDashboard() {
|
||||
return OverallOperationSituationVO.builder()
|
||||
@@ -285,7 +286,7 @@ public final class BiSnapshotWeeklyRandomDataBuilder {
|
||||
.build())
|
||||
.capabilityRanking(Arrays.asList(
|
||||
OverallWarehouseCapabilityRankVO.builder().rank(1).name("君华仓").processedVolume("2,400单").throughput("5.2万吨").utilizationRate("85%").build(),
|
||||
OverallWarehouseCapabilityRankVO.builder().rank(2).name("遂宁仓").processedVolume("1,800单").throughput("4.1万吨").utilizationRate("78%").build(),
|
||||
OverallWarehouseCapabilityRankVO.builder().rank(2).name("通宇仓").processedVolume("1,800单").throughput("4.1万吨").utilizationRate("78%").build(),
|
||||
OverallWarehouseCapabilityRankVO.builder().rank(3).name("横琴仓").processedVolume("1,200单").throughput("3.5万吨").utilizationRate("92%").build(),
|
||||
OverallWarehouseCapabilityRankVO.builder().rank(4).name("新南仓").processedVolume("800单").throughput("2.2万吨").utilizationRate("65%").build(),
|
||||
OverallWarehouseCapabilityRankVO.builder().rank(5).name("谷丰仓").processedVolume("567单").throughput("1.8万吨").utilizationRate("45%").build()
|
||||
|
||||
Reference in New Issue
Block a user