| | |
| | | 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; |
| | |
| | | { 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) { } |
| | | |
| | |
| | | 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; } |