From 8eb280f2b95bfadc5618af90a8a64db4d26cefce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=A6=E9=B8=BF=E5=B1=95?= <18031053041@163.com> Date: Mon, 10 Aug 2026 19:58:05 +0800 Subject: [PATCH] =?UTF-8?q?BI=E6=9C=88=E5=8F=B0=E5=8A=A8=E6=80=81=E7=9C=9F?= =?UTF-8?q?=E5=AE=9E=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/BiPlatformRealDataService.java | 8 +++ .../BiPlatformRealDataMapper.xml | 67 +++++++++---------- 2 files changed, 39 insertions(+), 36 deletions(-) diff --git a/mhd-bi/src/main/java/com/mhd/bi/domain/biPlatformRealData/service/BiPlatformRealDataService.java b/mhd-bi/src/main/java/com/mhd/bi/domain/biPlatformRealData/service/BiPlatformRealDataService.java index da9fba312..6ac8d082a 100644 --- a/mhd-bi/src/main/java/com/mhd/bi/domain/biPlatformRealData/service/BiPlatformRealDataService.java +++ b/mhd-bi/src/main/java/com/mhd/bi/domain/biPlatformRealData/service/BiPlatformRealDataService.java @@ -9,6 +9,7 @@ import com.mhd.bi.domain.biSnapshotSync.support.BiSnapshotWeeklyRandomDataBuilde import com.mhd.bi.interfaces.facadeApi.biReport.vo.platform.PlatformSurveillanceVO; import com.mhd.bi.interfaces.facadeApi.biReport.vo.platform.PlatformVehicleItemVO; import com.mhd.bi.interfaces.facadeApi.biReport.vo.platform.TaskLoadItemVO; +import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; import javax.annotation.Resource; @@ -22,6 +23,7 @@ import java.util.Random; * 月台监测-真实数据业务层(封装 YMS 跨库查询) * 注:列名大小写、字段类型需以实际库为准;若 YMS 库无数据/无权限,相关方法应返回空/0,不影响写死字段写入快照 */ +@Slf4j @Service public class BiPlatformRealDataService { @@ -32,6 +34,7 @@ public class BiPlatformRealDataService { try { return biPlatformRealDataMapper.queryVehicles(); } catch (Exception e) { + log.error("【YMS】查询作业车辆列表失败: {}", e.getMessage(), e); return java.util.Collections.emptyList(); } } @@ -46,6 +49,7 @@ public class BiPlatformRealDataService { if (po.getOperatingPlatforms() == null) po.setOperatingPlatforms(0L); return po; } catch (Exception e) { + log.error("【YMS】查询月台概览失败: {}", e.getMessage(), e); RealPlatformOverviewPO po = new RealPlatformOverviewPO(); po.setTotalPlatforms(0L); po.setOperatingPlatforms(0L); @@ -58,6 +62,7 @@ public class BiPlatformRealDataService { Long n = biPlatformRealDataMapper.countTodayTasks(); return n == null ? 0L : n; } catch (Exception e) { + log.error("【YMS】统计今日作业任务失败: {}", e.getMessage(), e); return 0L; } } @@ -72,6 +77,7 @@ public class BiPlatformRealDataService { if (po.getCompletedVehicles() == null) po.setCompletedVehicles(0L); return po; } catch (Exception e) { + log.error("【YMS】统计车辆状态失败: {}", e.getMessage(), e); RealVehicleStatusPO po = new RealVehicleStatusPO(); po.setTodayReservedVehicles(0L); po.setNotCheckedIn(0L); @@ -86,6 +92,7 @@ public class BiPlatformRealDataService { Long n = biPlatformRealDataMapper.countMonthTasks(); return n == null ? 0L : n; } catch (Exception e) { + log.error("【YMS】统计本月任务量失败: {}", e.getMessage(), e); return 0L; } } @@ -94,6 +101,7 @@ public class BiPlatformRealDataService { try { return biPlatformRealDataMapper.queryTaskLoadToday(); } catch (Exception e) { + log.error("【YMS】统计任务负荷失败: {}", e.getMessage(), e); return java.util.Collections.emptyList(); } } diff --git a/mhd-bi/src/main/resources/mapper/biPlatformRealData/BiPlatformRealDataMapper.xml b/mhd-bi/src/main/resources/mapper/biPlatformRealData/BiPlatformRealDataMapper.xml index e4dbeba6a..d89473102 100644 --- a/mhd-bi/src/main/resources/mapper/biPlatformRealData/BiPlatformRealDataMapper.xml +++ b/mhd-bi/src/main/resources/mapper/biPlatformRealData/BiPlatformRealDataMapper.xml @@ -5,30 +5,29 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + plateNumber <- qms_main_business.CAR_NO + status <- qms_main_business.FLOW_STATUS + platformId <- qms_main_business.WINDOW_NAME(叫号月台,主业务表直接有) + platformDuration <- qms_main_business.EXIT_TIME - ENTRY_TIME(分钟) + appointmentTime <- qms_main_business.CREATE_TIME + workFloor <- qms_window_info.PLATFORM_FLOOR(按 WINDOW_NAME 关联) + --> @@ -37,49 +36,45 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - + - + \ No newline at end of file