Commit 18a60f748acad0f4d567fc01ea8e295bcaceb067
1 parent
8515ce3a
Exists in
master
optimized
Showing
2 changed files
with
3 additions
and
3 deletions
Show diff stats
src/main/java/com/taover/bazhuayun/analysis/script/goodscollect/GoodsInfoExcelDataHeader.java
... | ... | @@ -14,11 +14,11 @@ public class GoodsInfoExcelDataHeader { |
14 | 14 | if(item == null) { |
15 | 15 | continue; |
16 | 16 | } |
17 | - if(StringTool.getStartWithStringIndex(item.toString(), goodsNamePattern) != -1) { | |
17 | + if(this.goodsNameIndex == null && StringTool.getStartWithStringIndex(item.toString(), goodsNamePattern) != -1) { | |
18 | 18 | this.goodsNameIndex = i; |
19 | 19 | continue; |
20 | 20 | } |
21 | - if(StringTool.getStartWithStringIndex(item.toString(), goodsSkuNamePattern) != -1) { | |
21 | + if(this.goodsSkuNameIndex == null && StringTool.getStartWithStringIndex(item.toString(), goodsSkuNamePattern) != -1) { | |
22 | 22 | this.goodsSkuNameIndex = i; |
23 | 23 | continue; |
24 | 24 | } | ... | ... |
src/main/java/com/taover/bazhuayun/analysis/script/goodscollect/Main.java
... | ... | @@ -19,7 +19,7 @@ public class Main { |
19 | 19 | } |
20 | 20 | |
21 | 21 | public static void analysisGoodsName() throws Exception { |
22 | - String[] goodsNamePatternArr = new String[]{"商品名称","商品标题","货品名称","商品名称","商品信息","品名","商品型号","商品名","商品简称","产品名称"}; | |
22 | + String[] goodsNamePatternArr = new String[]{"商品名称","商品标题","货品名称","商品名称","商品信息","品名","商品名","商品简称","产品名称","物品名称","货品摘要","发货信息"}; | |
23 | 23 | String[] goodsSkuNameParrternArr = new String[]{"商品规格名","规格","商品规格","规格名称","商品型号"}; |
24 | 24 | String dataDirPath = "C:\\Users\\Administrator\\Desktop\\悟空家21-25"; |
25 | 25 | String groupInfoFilePath = dataDirPath + File.separator + "悟空家-仓库群文件-21-25.xlsx"; | ... | ... |