|
|
@@ -538,8 +538,6 @@ public class ComponentSubmitServiceImpl implements ComponentSubmitService {
|
|
|
|
|
|
@Override
|
|
|
public ResultMap uploadComponentCrawl(FileUpload uploadItem) {
|
|
|
- long start = System.currentTimeMillis();
|
|
|
-
|
|
|
ResultMap resultMap = new ResultMap();
|
|
|
// 验证表格格式
|
|
|
Map<String, Object> map = validateExcel(uploadItem);
|
|
|
@@ -586,9 +584,6 @@ public class ComponentSubmitServiceImpl implements ComponentSubmitService {
|
|
|
components = writeComponentCrawls(rows, b2cBrand, b2cKind, kindName, task);
|
|
|
componentCrawlDao.save(components);
|
|
|
|
|
|
- long end = System.currentTimeMillis();
|
|
|
- System.err.println("第一次历时:" + (end - start));
|
|
|
-
|
|
|
resultMap.setCode(200);
|
|
|
resultMap.setData(components.size());
|
|
|
return resultMap;
|
|
|
@@ -833,8 +828,6 @@ public class ComponentSubmitServiceImpl implements ComponentSubmitService {
|
|
|
|
|
|
@Override
|
|
|
public ResultMap uploadComponentCrawlWithSame(FileUpload uploadItem, Long kindContrastId) {
|
|
|
- long start = System.currentTimeMillis();
|
|
|
-
|
|
|
ResultMap resultMap = new ResultMap();
|
|
|
// 验证表格格式
|
|
|
Map<String, Object> map = validateExcel(uploadItem);
|
|
|
@@ -889,9 +882,6 @@ public class ComponentSubmitServiceImpl implements ComponentSubmitService {
|
|
|
components = writeComponentCrawls(rows, brand, kind, kindCrawl.getKindName(), task);
|
|
|
componentCrawlDao.save(components);
|
|
|
|
|
|
- long end = System.currentTimeMillis();
|
|
|
- System.err.println("重复历时:" + (end - start));
|
|
|
-
|
|
|
resultMap.setCode(200);
|
|
|
resultMap.setData(components.size());
|
|
|
return resultMap;
|