Browse Source

增加调试时间

yujia 7 years ago
parent
commit
803db083cd

+ 1 - 1
src/main/java/com/uas/platform/b2c/prod/commodity/controller/ReleaseProductByBatchController.java

@@ -238,7 +238,7 @@ public class ReleaseProductByBatchController {
             long l = System.currentTimeMillis();
             map = releaseProductByBatchService.releaseByWorkbook(workbook, selfSale, currency, isPerson, repeatImport, false);
             long l1 = System.currentTimeMillis();
-            logger.log("批量上架模块", "l1 ------------l" + (l1 - 1));
+           System.err.println("批量上架总时间 ------------" + (l1 - l));
         } catch (IOException e) {
             e.printStackTrace();
         }

+ 3 - 1
src/main/java/com/uas/platform/b2c/prod/commodity/service/impl/ReleaseProductByBatchServiceImpl.java

@@ -179,6 +179,7 @@ public class ReleaseProductByBatchServiceImpl implements ReleaseProductByBatchSe
 	 */
 	@Override
 	public ModelMap releaseByWorkbook(Workbook workbook, Boolean selfSale, String currency, Integer isPerson, Integer repeatImport, boolean isPcb) {
+		long l = System.currentTimeMillis();
 		// 是否上传个人物料
 		boolean isAPerson = false;
 		boolean isImport = false;
@@ -210,7 +211,6 @@ public class ReleaseProductByBatchServiceImpl implements ReleaseProductByBatchSe
 		Row headerRow = sheet.getRow(0);
 		int total = 0;
 		int blankNum = 0;
-		long l = System.currentTimeMillis();
 		if (headerRow != null) {
 			// 验证模板是否为商城模板
 			validateTemplate(headerRow, colNum, currency, isAPerson, isPcb);
@@ -348,6 +348,8 @@ public class ReleaseProductByBatchServiceImpl implements ReleaseProductByBatchSe
 		modelMap.put("failure", failure);
 		modelMap.put("filter", filter);
 		modelMap.put("batch", batch);
+		long l6 = System.currentTimeMillis();
+		System.err.println("l6--------------l6 testyuj" + (l6 - l5));
 		return modelMap;
 	}