|
|
|
@ -255,7 +255,7 @@ public class PurchaseCatalogueServiceImpl extends ServiceImpl<PurchaseCatalogueM |
|
|
|
|
.eq(StrUtil.isNotBlank(catalogueDetails.getCasNumber()), "cas_number", catalogueDetails.getCasNumber()) |
|
|
|
|
.eq(StrUtil.isNotBlank(catalogueDetails.getSpecies()), "species", catalogueDetails.getSpecies()) |
|
|
|
|
.eq(StrUtil.isNotBlank(catalogueDetails.getEnglishName()), "english_name", catalogueDetails.getEnglishName()) |
|
|
|
|
.eq(StrUtil.isNotBlank(catalogueDetails.getPackagedCopies()), "packaged_copies", catalogueDetails.getPackagedCopies()) |
|
|
|
|
.eq(catalogueDetails.getPackagedCopies() != null, "packaged_copies", catalogueDetails.getPackagedCopies()) |
|
|
|
|
.eq(StrUtil.isNotBlank(catalogueDetails.getAlias()), "alias", catalogueDetails.getAlias()) |
|
|
|
|
.eq(StrUtil.isNotBlank(catalogueDetails.getPurityGrade()), "purity_grade", catalogueDetails.getPurityGrade()) |
|
|
|
|
.eq(StrUtil.isNotBlank(catalogueDetails.getDeviationOrUncertainty()), "deviation_or_uncertainty", catalogueDetails.getDeviationOrUncertainty()) |
|
|
|
@ -279,6 +279,7 @@ public class PurchaseCatalogueServiceImpl extends ServiceImpl<PurchaseCatalogueM |
|
|
|
|
return purchaseCatalogue; |
|
|
|
|
} else return null; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public PurchaseCatalogue releaseCatalogue(String purchaseCatalogueId) { |
|
|
|
|
|
|
|
|
@ -334,6 +335,7 @@ public class PurchaseCatalogueServiceImpl extends ServiceImpl<PurchaseCatalogueM |
|
|
|
|
}); |
|
|
|
|
return catalogueDetailsList; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
//导入方法,验证填写内容是否有误
|
|
|
|
|
public PurchaseCatalogueVO getImport(List<PurchaseCatalogueDTO> purchaseCatalogueDTOList) { |
|
|
|
@ -346,7 +348,7 @@ public class PurchaseCatalogueServiceImpl extends ServiceImpl<PurchaseCatalogueM |
|
|
|
|
|
|
|
|
|
if (StrUtil.isNotBlank(purchaseCatalogueDTO.getBrand()) & |
|
|
|
|
StrUtil.isNotBlank(purchaseCatalogueDTO.getCategory()) & |
|
|
|
|
StrUtil.isNotBlank(purchaseCatalogueDTO.getPackagedCopies()) & |
|
|
|
|
(purchaseCatalogueDTO.getPackagedCopies()) != null & |
|
|
|
|
StrUtil.isNotBlank(purchaseCatalogueDTO.getReagentConsumableName()) & |
|
|
|
|
StrUtil.isNotBlank(purchaseCatalogueDTO.getSpecies()) & |
|
|
|
|
StrUtil.isNotBlank(purchaseCatalogueDTO.getSpecificationAndModel()) & |
|
|
|
|