|
|
|
@ -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
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|