|
@@ -461,6 +461,13 @@ public class BusinessServiceImpl implements IBusinessService {
|
|
assayDetailRes.setHighCodDeviationRate(NumberUtils.getDoublePercentAndNLength(INT_4, val, INT_2));
|
|
assayDetailRes.setHighCodDeviationRate(NumberUtils.getDoublePercentAndNLength(INT_4, val, INT_2));
|
|
assayDetailRes.setHighCodDeviationRateNumber(NumberUtils.getDoubleNLength(INT_2, val));
|
|
assayDetailRes.setHighCodDeviationRateNumber(NumberUtils.getDoubleNLength(INT_2, val));
|
|
}
|
|
}
|
|
|
|
+ //2025年04月09日16:31:56 额外处理,该指标是否需要标红
|
|
|
|
+ Double highValue = zQualityValue.getHighValue();
|
|
|
|
+ if(!Objects.isNull(highValue) && resultConcentration > highValue)
|
|
|
|
+ assayDetailRes.setHighCodRed(true);
|
|
|
|
+ Double lowValue = zQualityValue.getLowValue();
|
|
|
|
+ if(!Objects.isNull(lowValue) && resultConcentration < lowValue)
|
|
|
|
+ assayDetailRes.setHighCodRed(true);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -492,6 +499,13 @@ public class BusinessServiceImpl implements IBusinessService {
|
|
assayDetailRes.setLowCodDeviationRate(NumberUtils.getDoublePercentAndNLength(INT_4, val, INT_2));
|
|
assayDetailRes.setLowCodDeviationRate(NumberUtils.getDoublePercentAndNLength(INT_4, val, INT_2));
|
|
assayDetailRes.setLowCodDeviationRateNumber(NumberUtils.getDoubleNLength(INT_2, val));
|
|
assayDetailRes.setLowCodDeviationRateNumber(NumberUtils.getDoubleNLength(INT_2, val));
|
|
}
|
|
}
|
|
|
|
+ //2025年04月09日16:31:56 额外处理,该指标是否需要标红
|
|
|
|
+ Double highValue = zQualityValue.getHighValue();
|
|
|
|
+ if(!Objects.isNull(highValue) && resultConcentration > highValue)
|
|
|
|
+ assayDetailRes.setLowCodRed(true);
|
|
|
|
+ Double lowValue = zQualityValue.getLowValue();
|
|
|
|
+ if(!Objects.isNull(lowValue) && resultConcentration < lowValue)
|
|
|
|
+ assayDetailRes.setLowCodRed(true);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -524,6 +538,13 @@ public class BusinessServiceImpl implements IBusinessService {
|
|
assayDetailRes.setAnDanDeviationRate(NumberUtils.getDoublePercentAndNLength(INT_4, val, INT_2));
|
|
assayDetailRes.setAnDanDeviationRate(NumberUtils.getDoublePercentAndNLength(INT_4, val, INT_2));
|
|
assayDetailRes.setAnDanDeviationRateNumber(NumberUtils.getDoubleNLength(INT_2, val));
|
|
assayDetailRes.setAnDanDeviationRateNumber(NumberUtils.getDoubleNLength(INT_2, val));
|
|
}
|
|
}
|
|
|
|
+ //2025年04月09日16:31:56 额外处理,该指标是否需要标红
|
|
|
|
+ Double highValue = zQualityValue.getHighValue();
|
|
|
|
+ if(!Objects.isNull(highValue) && resultConcentration > highValue)
|
|
|
|
+ assayDetailRes.setAnDanRed(true);
|
|
|
|
+ Double lowValue = zQualityValue.getLowValue();
|
|
|
|
+ if(!Objects.isNull(lowValue) && resultConcentration < lowValue)
|
|
|
|
+ assayDetailRes.setAnDanRed(true);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -555,6 +576,13 @@ public class BusinessServiceImpl implements IBusinessService {
|
|
assayDetailRes.setTnDeviationRate(NumberUtils.getDoublePercentAndNLength(INT_4, val, INT_2));
|
|
assayDetailRes.setTnDeviationRate(NumberUtils.getDoublePercentAndNLength(INT_4, val, INT_2));
|
|
assayDetailRes.setTnDeviationRateNumber(NumberUtils.getDoubleNLength(INT_2, val));
|
|
assayDetailRes.setTnDeviationRateNumber(NumberUtils.getDoubleNLength(INT_2, val));
|
|
}
|
|
}
|
|
|
|
+ //2025年04月09日16:31:56 额外处理,该指标是否需要标红
|
|
|
|
+ Double highValue = zQualityValue.getHighValue();
|
|
|
|
+ if(!Objects.isNull(highValue) && resultConcentration > highValue)
|
|
|
|
+ assayDetailRes.setTnRed(true);
|
|
|
|
+ Double lowValue = zQualityValue.getLowValue();
|
|
|
|
+ if(!Objects.isNull(lowValue) && resultConcentration < lowValue)
|
|
|
|
+ assayDetailRes.setTnRed(true);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -586,6 +614,13 @@ public class BusinessServiceImpl implements IBusinessService {
|
|
assayDetailRes.setTpDeviationRate(NumberUtils.getDoublePercentAndNLength(INT_4, val, INT_2));
|
|
assayDetailRes.setTpDeviationRate(NumberUtils.getDoublePercentAndNLength(INT_4, val, INT_2));
|
|
assayDetailRes.setTpDeviationRateNumber(NumberUtils.getDoubleNLength(INT_2, val));
|
|
assayDetailRes.setTpDeviationRateNumber(NumberUtils.getDoubleNLength(INT_2, val));
|
|
}
|
|
}
|
|
|
|
+ //2025年04月09日16:31:56 额外处理,该指标是否需要标红
|
|
|
|
+ Double highValue = zQualityValue.getHighValue();
|
|
|
|
+ if(!Objects.isNull(highValue) && resultConcentration > highValue)
|
|
|
|
+ assayDetailRes.setTpRed(true);
|
|
|
|
+ Double lowValue = zQualityValue.getLowValue();
|
|
|
|
+ if(!Objects.isNull(lowValue) && resultConcentration < lowValue)
|
|
|
|
+ assayDetailRes.setTpRed(true);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -617,6 +652,13 @@ public class BusinessServiceImpl implements IBusinessService {
|
|
assayDetailRes.setZlsyDeviationRate(NumberUtils.getDoublePercentAndNLength(INT_4, val, INT_2));
|
|
assayDetailRes.setZlsyDeviationRate(NumberUtils.getDoublePercentAndNLength(INT_4, val, INT_2));
|
|
assayDetailRes.setZlsyDeviationRateNumber(NumberUtils.getDoubleNLength(INT_2, val));
|
|
assayDetailRes.setZlsyDeviationRateNumber(NumberUtils.getDoubleNLength(INT_2, val));
|
|
}
|
|
}
|
|
|
|
+ //2025年04月09日16:31:56 额外处理,该指标是否需要标红
|
|
|
|
+ Double highValue = zQualityValue.getHighValue();
|
|
|
|
+ if(!Objects.isNull(highValue) && resultConcentration > highValue)
|
|
|
|
+ assayDetailRes.setZlsyRed(true);
|
|
|
|
+ Double lowValue = zQualityValue.getLowValue();
|
|
|
|
+ if(!Objects.isNull(lowValue) && resultConcentration < lowValue)
|
|
|
|
+ assayDetailRes.setZlsyRed(true);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -648,6 +690,13 @@ public class BusinessServiceImpl implements IBusinessService {
|
|
assayDetailRes.setYxsyDeviationRate(NumberUtils.getDoublePercentAndNLength(INT_4, val, INT_2));
|
|
assayDetailRes.setYxsyDeviationRate(NumberUtils.getDoublePercentAndNLength(INT_4, val, INT_2));
|
|
assayDetailRes.setYxsyDeviationRateNumber(NumberUtils.getDoubleNLength(INT_2, val));
|
|
assayDetailRes.setYxsyDeviationRateNumber(NumberUtils.getDoubleNLength(INT_2, val));
|
|
}
|
|
}
|
|
|
|
+ //2025年04月09日16:31:56 额外处理,该指标是否需要标红
|
|
|
|
+ Double highValue = zQualityValue.getHighValue();
|
|
|
|
+ if(!Objects.isNull(highValue) && resultConcentration > highValue)
|
|
|
|
+ assayDetailRes.setYxsyRed(true);
|
|
|
|
+ Double lowValue = zQualityValue.getLowValue();
|
|
|
|
+ if(!Objects.isNull(lowValue) && resultConcentration < lowValue)
|
|
|
|
+ assayDetailRes.setYxsyRed(true);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -679,6 +728,13 @@ public class BusinessServiceImpl implements IBusinessService {
|
|
assayDetailRes.setXsydDeviationRate(NumberUtils.getDoublePercentAndNLength(INT_4, val, INT_2));
|
|
assayDetailRes.setXsydDeviationRate(NumberUtils.getDoublePercentAndNLength(INT_4, val, INT_2));
|
|
assayDetailRes.setXsydDeviationRateNumber(NumberUtils.getDoubleNLength(INT_2, val));
|
|
assayDetailRes.setXsydDeviationRateNumber(NumberUtils.getDoubleNLength(INT_2, val));
|
|
}
|
|
}
|
|
|
|
+ //2025年04月09日16:31:56 额外处理,该指标是否需要标红
|
|
|
|
+ Double highValue = zQualityValue.getHighValue();
|
|
|
|
+ if(!Objects.isNull(highValue) && resultConcentration > highValue)
|
|
|
|
+ assayDetailRes.setXsydRed(true);
|
|
|
|
+ Double lowValue = zQualityValue.getLowValue();
|
|
|
|
+ if(!Objects.isNull(lowValue) && resultConcentration < lowValue)
|
|
|
|
+ assayDetailRes.setXsydRed(true);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|