添加了一些统计的功能,例如检出率
This commit is contained in:
@@ -23,6 +23,7 @@ import digital.laboratory.platform.entrustment.service.EntrustmentIdentification
|
||||
import digital.laboratory.platform.entrustment.service.EntrustmentService;
|
||||
import digital.laboratory.platform.entrustment.vo.DetectionRateVO;
|
||||
import digital.laboratory.platform.entrustment.vo.EntrustMaterialCheckoutResultVO;
|
||||
import digital.laboratory.platform.entrustment.vo.EntrustmentIdentificationMaterialVO;
|
||||
import digital.laboratory.platform.sys.entity.Area;
|
||||
import digital.laboratory.platform.sys.entity.DrugLite;
|
||||
import org.apache.poi.ss.usermodel.*;
|
||||
@@ -462,7 +463,7 @@ public class EntrustMaterialCheckoutResultServiceImpl extends ServiceImpl<Entrus
|
||||
BigDecimal d1 = new BigDecimal(molecule);
|
||||
BigDecimal d2 = new BigDecimal(denominator); // 分母
|
||||
// 计算百分比(保留2位小数,四舍五入)
|
||||
double percentage = d1.divide(d2, 2, BigDecimal.ROUND_HALF_UP)
|
||||
double percentage = d1.divide(d2, 4, BigDecimal.ROUND_HALF_UP)
|
||||
.multiply(new BigDecimal(100))
|
||||
.doubleValue();
|
||||
nameList.add(drugName);
|
||||
@@ -475,7 +476,7 @@ public class EntrustMaterialCheckoutResultServiceImpl extends ServiceImpl<Entrus
|
||||
return vo ;
|
||||
}
|
||||
|
||||
|
||||
// public IPage<EntrustmentIdentificationMaterialVO> getMaterialBy
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -8,4 +8,5 @@ public class EntrustmentIdentificationMaterialVO extends EntrustmentIdentificati
|
||||
String formName; // 检材性状
|
||||
String sample1Type; // 样本1的类型:A/B, 根据盒子的 sampleType 而得
|
||||
String sample2Type; // 样本2的类型:A/B, 根据盒子的 sampleType 而得
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user