|
|
@ -517,6 +517,11 @@ public class EntrustmentIdentificationMaterialServiceImpl extends ServiceImpl<En |
|
|
|
throw new RuntimeException(String.format("没有找到 id 为 %s 的委托", im.getEntrustmentId())); |
|
|
|
throw new RuntimeException(String.format("没有找到 id 为 %s 的委托", im.getEntrustmentId())); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 对已经审核过的委托进行处理
|
|
|
|
|
|
|
|
if (entrustment.getStatus().compareTo(EntrustmentStatusConstants.ENTRUSTMENT_STATUS_WAITING_CONFIRM.getStatus()) >= 0) { |
|
|
|
|
|
|
|
return null; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (entrustment.getStatus() != EntrustmentStatusConstants.ENTRUSTMENT_STATUS_WAITING_CHECK.getStatus()) { |
|
|
|
if (entrustment.getStatus() != EntrustmentStatusConstants.ENTRUSTMENT_STATUS_WAITING_CHECK.getStatus()) { |
|
|
|
throw new RuntimeException("委托不在待审核状态"); |
|
|
|
throw new RuntimeException("委托不在待审核状态"); |
|
|
|
} |
|
|
|
} |
|
|
@ -780,10 +785,11 @@ public class EntrustmentIdentificationMaterialServiceImpl extends ServiceImpl<En |
|
|
|
im.setSample2Quantity(identificationMaterial.getSample2Quantity()); |
|
|
|
im.setSample2Quantity(identificationMaterial.getSample2Quantity()); |
|
|
|
im.setSample2BoxId(identificationMaterial.getSample2BoxId()); |
|
|
|
im.setSample2BoxId(identificationMaterial.getSample2BoxId()); |
|
|
|
|
|
|
|
|
|
|
|
if ((identificationMaterial.getSample1Quantity() == null) || |
|
|
|
// 20250218 陈科长提出的不要复称
|
|
|
|
(identificationMaterial.getSample1Quantity().equals(BigDecimal.ZERO))) { |
|
|
|
// if ((identificationMaterial.getSample1Quantity() == null) ||
|
|
|
|
throw new RuntimeException(String.format("样本1的数量不能为空, 也不能为 0")); |
|
|
|
// (identificationMaterial.getSample1Quantity().equals(BigDecimal.ZERO))) {
|
|
|
|
} |
|
|
|
// throw new RuntimeException(String.format("样本1的数量不能为空, 也不能为 0"));
|
|
|
|
|
|
|
|
// }
|
|
|
|
if (StrUtil.isBlank(identificationMaterial.getSample1No())) { |
|
|
|
if (StrUtil.isBlank(identificationMaterial.getSample1No())) { |
|
|
|
im.setSample1No(sampleService.getNewSampleNo(im.getImNo(), 1)); |
|
|
|
im.setSample1No(sampleService.getNewSampleNo(im.getImNo(), 1)); |
|
|
|
} |
|
|
|
} |
|
|
|