From 41cfe20aeb9835315c54b3d6873d4e07ff238cfa Mon Sep 17 00:00:00 2001
From: yeg <1347747024@qq.com>
Date: 星期六, 29 八月 2026 18:15:46 +0800
Subject: [PATCH] 实现测试必填设备绑定
---
ruoyi-system/src/main/java/com/ruoyi/system/mapper/TTestMapper.java | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/TTestMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/TTestMapper.java
index f5ba595..420424c 100644
--- a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/TTestMapper.java
+++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/TTestMapper.java
@@ -6,6 +6,8 @@
import com.ruoyi.system.domain.TTestBattery;
import com.ruoyi.system.domain.TTestBatteryField;
import com.ruoyi.system.domain.TTestChannelBinding;
+import com.ruoyi.system.domain.TTestCollectorChannel;
+import com.ruoyi.system.domain.TTestFieldSnapshot;
import com.ruoyi.system.domain.TTestPlanStep;
import com.ruoyi.system.domain.TTestResult;
import com.ruoyi.system.domain.TTestWarningThreshold;
@@ -26,6 +28,8 @@
int updateTest(TTest test);
int deleteTestById(@Param("testId") Long testId, @Param("updateBy") String updateBy);
int deleteTestBindingsByTestId(Long testId);
+ int deleteTestCollectorChannelsByTestId(Long testId);
+ int deleteTestFieldSnapshotsByTestId(Long testId);
int deleteTestPlanStepsByTestId(Long testId);
int deleteTestBatteriesByTestId(Long testId);
int deleteTestFieldsByTestId(Long testId);
@@ -34,11 +38,15 @@
int insertTestBattery(TTestBattery battery);
int insertTestBatteryField(TTestBatteryField field);
int insertTestChannelBinding(TTestChannelBinding binding);
+ int insertTestCollectorChannel(TTestCollectorChannel mapping);
+ int insertTestFieldSnapshot(TTestFieldSnapshot snapshot);
int insertTestThreshold(TTestWarningThreshold threshold);
List<TTestPlanStep> selectTestPlanSteps(Long testId);
List<TTestBattery> selectTestBatteries(Long testId);
List<TTestBatteryField> selectTestBatteryFields(Long testId);
List<TTestChannelBinding> selectTestChannelBindings(Long testId);
+ List<TTestCollectorChannel> selectTestCollectorChannels(Long testId);
+ List<TTestFieldSnapshot> selectTestFieldSnapshots(Long testId);
List<TTestWarningThreshold> selectTestThresholds(Long testId);
List<TTestResult> selectTestResults(TTestResult result);
int countTestTypeEnabled(Long testTypeId);
@@ -46,6 +54,7 @@
int countBatteryInEnabledGroup(@Param("groupId") Long groupId, @Param("batteryNo") String batteryNo);
int countRegisteredChannel(Long channelId);
int countCollectorEnabled(Long collectorId);
+ Integer selectCollectorChannelCount(Long collectorId);
List<TestUserOptionVo> selectEnabledUserOptions();
List<TestTypeOptionVo> selectEnabledTestTypeOptions();
List<TestBatteryOptionVo> selectEnabledBatteryOptions();
--
Gitblit v1.7.1