Commit 67e908fb by huluobin

# update

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