|
|
@@ -152,8 +152,12 @@ public class ReleaseProductByBatchController {
|
|
|
*/
|
|
|
@RequestMapping(value = "/batchRelease", method = RequestMethod.POST)
|
|
|
public String batchRelease(String batch) {
|
|
|
+ long l = System.currentTimeMillis();
|
|
|
logger.log("批量上架模块", "批量发布指定批次:" + batch + "的上架内容");
|
|
|
- return releaseProductByBatchService.publishByBatch(batch, false);
|
|
|
+ String byBatch = releaseProductByBatchService.publishByBatch(batch, false);
|
|
|
+ long l1 = System.currentTimeMillis();
|
|
|
+ logger.log("批量上架模块", "l1 ------------l" + (l1 - 1));
|
|
|
+ return byBatch;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -231,7 +235,10 @@ public class ReleaseProductByBatchController {
|
|
|
} else {
|
|
|
throw new IllegalOperatorException("文件格式不正确!请上传.xls或.xlsx格式的文件");
|
|
|
}
|
|
|
+ long l = System.currentTimeMillis();
|
|
|
map = releaseProductByBatchService.releaseByWorkbook(workbook, selfSale, currency, isPerson, repeatImport, false);
|
|
|
+ long l1 = System.currentTimeMillis();
|
|
|
+ logger.log("批量上架模块", "l1 ------------l" + (l1 - 1));
|
|
|
} catch (IOException e) {
|
|
|
e.printStackTrace();
|
|
|
}
|