`

新启线程

    博客分类:
  • Java
 
阅读更多
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();

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics