Commit 67e908fb by huluobin

# update

parent 4f0aff7f
......@@ -123,6 +123,7 @@ public class AutoTurnoverJob extends PointJob {
.example());
this.autoTurnoverFromStock(queryTime, dcBaseStock);
} catch (Exception e) {
try {
DcAutoException dcAutoException = new DcAutoException();
dcAutoException.setBailunSku(dcBaseStock.getBailunSku());
dcAutoException.setWarehouseCode(dcBaseStock.getWarehouseCode());
......@@ -130,6 +131,9 @@ public class AutoTurnoverJob extends PointJob {
DcAutoExceptionMapper dcAutoExceptionMapper = SessionUtil.getSession().getMapper(DcAutoExceptionMapper.class);
dcAutoExceptionMapper.insert(dcAutoException);
} catch (Exception ex) {
}
} finally {
SessionUtil.closeSession();
......
......@@ -158,7 +158,7 @@ public class AutoTurnoverJobTest {
jobPointLog.setPageSize(1000);
AutoTurnoverJob autoTurnoverJob = new AutoTurnoverJob();
autoTurnoverJob.executeJob(new ShardingContext(new ShardingContexts("x", null, 1, "NORMAL", new HashMap<>()), 0),
autoTurnoverJob.executeJob(new ShardingContext(new ShardingContexts("x", null, 1, "INCREMENT", new HashMap<>()), 0),
jobPointLog);
}
......
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