Commit 67e908fb by huluobin

# update

parent 4f0aff7f
......@@ -123,13 +123,17 @@ public class AutoTurnoverJob extends PointJob {
.example());
this.autoTurnoverFromStock(queryTime, dcBaseStock);
} catch (Exception e) {
DcAutoException dcAutoException = new DcAutoException();
dcAutoException.setBailunSku(dcBaseStock.getBailunSku());
dcAutoException.setWarehouseCode(dcBaseStock.getWarehouseCode());
dcAutoException.setMessage(e.getMessage() + e.getStackTrace().toString());
DcAutoExceptionMapper dcAutoExceptionMapper = SessionUtil.getSession().getMapper(DcAutoExceptionMapper.class);
try {
DcAutoException dcAutoException = new DcAutoException();
dcAutoException.setBailunSku(dcBaseStock.getBailunSku());
dcAutoException.setWarehouseCode(dcBaseStock.getWarehouseCode());
dcAutoException.setMessage(e.getMessage() + e.getStackTrace().toString());
DcAutoExceptionMapper dcAutoExceptionMapper = SessionUtil.getSession().getMapper(DcAutoExceptionMapper.class);
dcAutoExceptionMapper.insert(dcAutoException);
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