yeg
2026-09-08 5fb85805e6122744b0767eab82114272b9d5849c
battery-business/src/main/java/com/battery/business/report/CompareReportService.java
@@ -15,6 +15,7 @@
import com.battery.business.domain.TTest;
import com.battery.business.domain.TTestBattery;
import com.battery.business.domain.TTestLogicStepMapping;
import com.battery.business.domain.TTestConsoleDetail;
import com.battery.business.report.CompareReportRequest.Selection;
import com.battery.business.service.ITTestService;
import com.battery.business.service.ITestDataQueryService;
@@ -34,7 +35,8 @@
    { this.tests = tests; this.data = data; this.reports = reports; }
    public record Candidate(Selection selection, String name, String type, long groupId,
            String batteryGroup, String batteryNo, String process) { }
            String batteryGroup, String batteryNo, String process, String experimentName,
            TTestConsoleDetail consoleDetail) { }
    public record Item(Candidate source, Long zeroTime, List<Map<String, Object>> records,
            TTestLogicStepMapping logicalMapping, List<CurrentBatteryField> businessFields) { }
@@ -230,7 +232,8 @@
    private Candidate candidate(TTest test, TTestBattery battery, int cycle, Integer step, Integer logical, String process)
    {
        return new Candidate(new Selection(test.getTestId(), battery.getTestBatteryId(), cycle, step, logical),
                test.getTestName(), test.getTestTypeName(), battery.getGroupId(), battery.getGroupName(), battery.getBatteryNo(), process);
                test.getTestName(), test.getTestTypeName(), battery.getGroupId(), battery.getGroupName(), battery.getBatteryNo(), process,
                test.getConsoleDetail() == null ? null : test.getConsoleDetail().getExperimentName(), test.getConsoleDetail());
    }
    private int number(Map<String, Object> row, String key) { return row.get(key) instanceof Number value ? value.intValue() : 0; }