Browse Source

删除时间打印的代码

yujia 7 years ago
parent
commit
cf7b903630

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

@@ -235,10 +235,7 @@ public class ReleaseProductByBatchController {
             } else {
             } else {
                 throw new IllegalOperatorException("文件格式不正确!请上传.xls或.xlsx格式的文件");
                 throw new IllegalOperatorException("文件格式不正确!请上传.xls或.xlsx格式的文件");
             }
             }
-            long l = System.currentTimeMillis();
             map = releaseProductByBatchService.releaseByWorkbook(workbook, selfSale, currency, isPerson, repeatImport, false);
             map = releaseProductByBatchService.releaseByWorkbook(workbook, selfSale, currency, isPerson, repeatImport, false);
-            long l1 = System.currentTimeMillis();
-           System.err.println("批量上架总时间 ------------" + (l1 - l));
         } catch (IOException e) {
         } catch (IOException e) {
             e.printStackTrace();
             e.printStackTrace();
         }
         }

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

@@ -253,9 +253,6 @@ public class ReleaseProductByBatchServiceImpl implements ReleaseProductByBatchSe
 				}
 				}
 			}
 			}
 		}
 		}
-		System.out.println("获取订单信息缺失");
-		long l1 = System.currentTimeMillis();
-		System.err.println("l1--------------l testyuj" + (l1 - l));
 		Long enUU = SystemSession.getUser().getEnterprise().getUu();
 		Long enUU = SystemSession.getUser().getEnterprise().getUu();
 		if (!isAPerson) {
 		if (!isAPerson) {
 			//1:比较品牌、型号、自定义标签是否重复,2:比较六要素是否重复
 			//1:比较品牌、型号、自定义标签是否重复,2:比较六要素是否重复
@@ -280,14 +277,8 @@ public class ReleaseProductByBatchServiceImpl implements ReleaseProductByBatchSe
 				}
 				}
 			}
 			}
 		}
 		}
-        long l2 = System.currentTimeMillis();
-        System.err.println("l2--------------l1 testyuj" + (l2 - l1));
 		commonDao.save(releaseProductByBatchs, ReleaseProductByBatch.class);
 		commonDao.save(releaseProductByBatchs, ReleaseProductByBatch.class);
-		long l3 = System.currentTimeMillis();
-        System.err.println("l3--------------l2 testyuj" + (l3 - l2));
         releaseProductByBatchDao.callReleaseExistValidProcedure(batch, isAPerson, enUU);
         releaseProductByBatchDao.callReleaseExistValidProcedure(batch, isAPerson, enUU);
-		long l4 = System.currentTimeMillis();
-		System.err.println("l4--------------l3 testyuj" + (l4 - l3));
 		if (isAPerson) {
 		if (isAPerson) {
 			for (ReleaseProductByBatch releaseProductByBatch : releaseProductByBatchs) {
 			for (ReleaseProductByBatch releaseProductByBatch : releaseProductByBatchs) {
                 Long productid = releaseProductByBatch.getProductid();
                 Long productid = releaseProductByBatch.getProductid();
@@ -302,7 +293,6 @@ public class ReleaseProductByBatchServiceImpl implements ReleaseProductByBatchSe
                 }
                 }
 			}
 			}
 		}
 		}
-		Long l5 = 0l;
 		String strCount = "0";
 		String strCount = "0";
 		if (isPcb) {
 		if (isPcb) {
 			 releaseProductByBatchDao.callValidProcedurePcb(enUU, batch);
 			 releaseProductByBatchDao.callValidProcedurePcb(enUU, batch);
@@ -318,14 +308,11 @@ public class ReleaseProductByBatchServiceImpl implements ReleaseProductByBatchSe
 					ResultSet rs = stmt.getResultSet();
 					ResultSet rs = stmt.getResultSet();
 					if (null != rs) {
 					if (null != rs) {
 						rs.next();
 						rs.next();
-                        System.err.println("测试结果---------" + rs.getString(1));
 						return rs.getString(1);
 						return rs.getString(1);
 					}
 					}
 					return "0";
 					return "0";
 				}
 				}
 			});
 			});
-			l5 = System.currentTimeMillis();
-			System.err.println("l5--------------l4 testyuj" + (l5 - l4));
 		}
 		}
 		Integer filter = 0, failure = 0, success = 0;
 		Integer filter = 0, failure = 0, success = 0;
 		if (!StringUtilB2C.isEmpty(strCount)) {
 		if (!StringUtilB2C.isEmpty(strCount)) {
@@ -348,8 +335,6 @@ public class ReleaseProductByBatchServiceImpl implements ReleaseProductByBatchSe
 		modelMap.put("failure", failure);
 		modelMap.put("failure", failure);
 		modelMap.put("filter", filter);
 		modelMap.put("filter", filter);
 		modelMap.put("batch", batch);
 		modelMap.put("batch", batch);
-		long l6 = System.currentTimeMillis();
-		System.err.println("l6--------------l6 testyuj" + (l6 - l5));
 		return modelMap;
 		return modelMap;
 	}
 	}
 
 

BIN
src/main/resources/jxls-tpl/trade/releaseByBatch-rmb.xls