package com.zt.plat.module.qms.business.bus.controller.vo;

import java.util.List;
import java.util.stream.Collectors;

import cn.hutool.core.collection.CollUtil;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
public class BatchAssessmentDataReportingReqVO {

	private List<BusinessSubSampleIdAndRetestCount> businessSubSampleIdAndRetestCounts;
	
	public List<Long> getBusinessSubSampleIds() {
		if (CollUtil.isEmpty(this.businessSubSampleIdAndRetestCounts)) {
			return null;
		}
		return this.businessSubSampleIdAndRetestCounts.stream().map(m -> m.getBusinessSubSampleId()).collect(Collectors.toList());
	}
	
	private Long configAssayMethodId;
	

	@Data
	@NoArgsConstructor
	@AllArgsConstructor
	public static class BusinessSubSampleIdAndRetestCount {
		
		private Long businessSubSampleId;
		
		private Integer retestCount;
	}
}
