|
@@ -1,6 +1,9 @@
|
|
|
package com.example.xiaoshiweixinback;
|
|
|
|
|
|
import com.example.xiaoshiweixinback.business.utils.RegexUtil;
|
|
|
+import com.example.xiaoshiweixinback.domain.Product;
|
|
|
+import com.example.xiaoshiweixinback.mapper.ProductMapper;
|
|
|
+import com.example.xiaoshiweixinback.service.ProductCategoryService;
|
|
|
import com.example.xiaoshiweixinback.service.importPatent.EsDenseVectorService;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.junit.jupiter.api.Test;
|
|
@@ -27,6 +30,12 @@ class XiaoshiWeixinbackApplicationTests {
|
|
|
@Lazy
|
|
|
private EsDenseVectorService denseVectorService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private ProductCategoryService productCategoryService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private ProductMapper productMapper;
|
|
|
+
|
|
|
@Test
|
|
|
void contextLoads() {
|
|
|
}
|
|
@@ -141,4 +150,11 @@ class XiaoshiWeixinbackApplicationTests {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @Test
|
|
|
+ public void test5() {
|
|
|
+ Product product = productMapper.selectById(35);
|
|
|
+ String locNum = product.getLocNum();
|
|
|
+ List<String> delimiters = RegexUtil.splitByDelimiters(locNum);
|
|
|
+ delimiters.forEach(System.out::println);
|
|
|
+ }
|
|
|
}
|