新启线程
new Thread(new Runnable() {public void run() {try {deleteDAS(theKnotHead.getDate(),theKnotHead.getStructure().getId());ExportDiffManager manager = (ExportDiffManager) applicationContext.getBean("exportDiffManager");manager.storeOperatingDaily(theKnotHead.getStructure().getId(),theKnotHead.getDate());if(!TheKnotHead.ACTIVE.equals(theKnotHead.getStatus())){SystemOperationLogManager systemOperationLogManager = (SystemOperationLogManager) applicationContext.getBean("wmsOperationLogManager");systemOperationLogManager.updateOrganization("noClose", "DefaultTheKnotManager", "检测日结未关闭", "DAS号","", null, null, null, null);}} catch (Exception e) {e.printStackTrace();}finally{theKnotHead.setStatus(TheKnotHead.ACTIVE);commonDao.store(theKnotHead);}}}).start();
?