Commit 91e13cac by yong

测试

parent ef874868
......@@ -42,6 +42,7 @@ public class AutoTurnoverJob extends PointJob {
@Override
public void executeJob(ShardingContext shardingContext, JobPointLog jobPointLog) {
Long st = System.currentTimeMillis();
long count = getTotalCount(shardingContext.getJobParameter());
int totalPage = getTotalPage(count, jobPointLog.getPageSize());
/*
......@@ -88,6 +89,10 @@ public class AutoTurnoverJob extends PointJob {
} finally {
SessionUtil.closeSession();
}
Long st2 = System.currentTimeMillis();
if(st2-st > 1000) {
System.out.println(" t0:" + String.valueOf(st2-st));
}
if (dcBaseStockList != null && dcBaseStockList.size() > 0) {
for (DcBaseStock dcBaseStock : dcBaseStockList) {
try {
......@@ -200,8 +205,8 @@ public class AutoTurnoverJob extends PointJob {
Long st1 = System.currentTimeMillis();
autoTurnoverUseDcAutoSales(bailunSku, warehouseCode, dcAutoSales, dcBaseStock, dcBaseWarehouse, dcAutoWarehouseweekSales);
Long st2 = System.currentTimeMillis();
if(st2-st > 6000) {
System.out.println("sku:"+ bailunSku + "warehouse:"+ warehouseCode + String.valueOf(st1 - st) + String.valueOf(st2-st));
if(st2-st > 2000) {
System.out.println("sku:"+ bailunSku + " warehouse:"+ warehouseCode + "st1:" + String.valueOf(st1 - st) + " t2:" + String.valueOf(st2-st));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment