MgrProductServiceHelper { public List<ProductDTO> checkDumpHqProduct(List<HqProductCheckDO> list) { List<TblHqProduct> tblHqProducts = tblHqProductMapper.checkDumpHqProduct(list); if (CollectionUtils.isNotEmpty(tblHqProducts)) { return tblHqProducts.stream().map(this::buildProductDTO).collect(Collectors.toList()); } return Lists.newArrayList(); }  boolean addProduct(AddProductRequest addProductRequest); void incrUpdateProductClassify(Integer productId, Integer newCategoryId, Integer oldCategoryId); void updateProductClassify(Integer oldSencondClassifyId); List<TblHqProduct> getProductList(GetProductListRequest getProductListRequest); ProductDTO buildProductDTO(TblHqProduct p); boolean getPointProduct(Integer productId); void updateProduct(ModifyProductRequest modifyProductRequest); ProductDTO getProduct(Integer productId); List<ProductDTO> getProduct(List<Integer> productId); void appendProductExtra(List<ProductDTO> dtos); void modifyProductStatus(ModifyProductStatusRequest modifyProductStatusRequest); void modifyProductName(ModifyProductNameRequest modifyProductNameRequest); void delete(List<Integer> includeProductIds); boolean existedProduct(ExistedProductRequest existedProductRequest); List<CategoryDTO> getCategoryByIds(List<Integer> catIds); Map<Integer, List<HqProductExtraAttrDTO>> getProductExtraAttrs(List<Integer> hqProductIds); Map<Integer, T> getProductExtraAttrs(List<Integer> cityProductIds, Class<T> clazz); Map<Integer, HqProductTax> getProductTaxesMapByCodeList(List<Integer> productTaxIdList); HqProductVo addHqProduct(HqProductVo hqProductVo); PddProductAttr addPddProductAttr(PddProductAttr pddProductAttr); List<PddProductAttr> getPddProductAttrByPddGoodIds(List<String> goodIds); List<FrozenProductDO> getFrozenProduct(GetFrozenProductRequest request); List<ProductDTO> getHqProductByProductNoList(List<String> productNoList); ICResponse<List<ProductDTO>> selectHqProductByKeyWord(PagingHqProductSearchQueryRequest request); void localizeProduct(LocalizeProductRequest localizeRequest); ProductDTO loadProductsByItemId(Long itemId, String productNo); List<ProductDTO> checkDumpHqProduct(List<HqProductCheckDO> list);  }
@Test public void checkDumpHqProduct() { List<HqProductCheckDO> list = new ArrayList<>(); HqProductCheckDO hqProductCheckDO = new HqProductCheckDO(); hqProductCheckDO.setBarCode("8888"); hqProductCheckDO.setSkuCode("11111"); hqProductCheckDO.setSkuName("测试"); list.add(hqProductCheckDO); HqProductCheckDO hqProductCheckDO1 = new HqProductCheckDO(); hqProductCheckDO1.setBarCode("88889"); hqProductCheckDO1.setSkuCode("111119"); hqProductCheckDO1.setSkuName("测试1"); list.add(hqProductCheckDO1); HqProductCheckDO hqProductCheckDO2 = new HqProductCheckDO(); hqProductCheckDO2.setBarCode("88889"); hqProductCheckDO2.setSkuCode("111119"); hqProductCheckDO2.setSkuName("测试1"); list.add(hqProductCheckDO2); mgrProductServiceHelper.checkDumpHqProduct(list); }