| | |
| | | List<FieldValueDto> fields, |
| | | String remark, |
| | | Long templateId, |
| | | List<FieldValueDto> templateFieldRelations) { |
| | | List<FieldValueDto> templateFieldRelations, |
| | | String z, String h, String f, String a, String b) { |
| | | public BatteryGroupDto(Long groupId, String groupName, String model, String purpose, String status, |
| | | List<String> batteryNos, List<FieldValueDto> fields) { |
| | | this(groupId, groupName, model, purpose, status, batteryNos, fields, null, null, null); |
| | | this(groupId, groupName, model, purpose, status, batteryNos, fields, null, null, null, null, null, null, null, null); |
| | | } |
| | | /** 电池组当前字段值;兼容只传模板字段关系 templateFieldRelations 的调用方。 */ |
| | | public List<FieldValueDto> currentFields() { return fields != null ? fields : templateFieldRelations; } |
| | | public record FieldValueDto(Long fieldId, String value, Long batteryGroupFieldId, String fieldValue) { |
| | | public FieldValueDto(Long fieldId, String value) { this(fieldId, value, null, null); } |