|  |  | @ -83,15 +83,12 @@ public class UdiInfoImportDetailServiceImpl implements UdiInfoImportDetailServic | 
			
		
	
		
		
			
				
					
					|  |  |  |             //基础表导入
 |  |  |  |             //基础表导入
 | 
			
		
	
		
		
			
				
					
					|  |  |  |             SqlSession batchSession = sqlSessionFactory.openSession(ExecutorType.BATCH, TransactionIsolationLevel.READ_COMMITTED); |  |  |  |             SqlSession batchSession = sqlSessionFactory.openSession(ExecutorType.BATCH, TransactionIsolationLevel.READ_COMMITTED); | 
			
		
	
		
		
			
				
					
					|  |  |  |             if (CollUtil.isNotEmpty(udiRelevanceExportJsonResponse.getUdiInfoEntities())) { |  |  |  |             if (CollUtil.isNotEmpty(udiRelevanceExportJsonResponse.getUdiInfoEntities())) { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 try { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 List<UdiInfoEntity> corpList = udiRelevanceExportJsonResponse.getUdiInfoEntities(); |  |  |  |                 List<UdiInfoEntity> corpList = udiRelevanceExportJsonResponse.getUdiInfoEntities(); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 UdiInfoDao mapper = batchSession.getMapper(UdiInfoDao.class); |  |  |  |                 UdiInfoDao mapper = batchSession.getMapper(UdiInfoDao.class); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 for (UdiInfoEntity basicUnitMaintainEntity : corpList) { |  |  |  |                 for (UdiInfoEntity basicUnitMaintainEntity : corpList) { | 
			
		
	
		
		
			
				
					
					|  |  |  |                     mapper.insertUdiInfo(basicUnitMaintainEntity); |  |  |  |                     mapper.insertUdiInfo(basicUnitMaintainEntity); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 } |  |  |  |                 } | 
			
		
	
		
		
			
				
					
					|  |  |  |                 batchSession.commit(); |  |  |  |                 batchSession.commit(); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 } catch (Exception e) { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 } |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             } |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |             batchSession.close(); |  |  |  |             batchSession.close(); | 
			
		
	
		
		
			
				
					
					|  |  |  | //            udiInfoDao.importUdiInfo(udiRelevanceExportJsonResponse.getUdiInfoEntities());
 |  |  |  | //            udiInfoDao.importUdiInfo(udiRelevanceExportJsonResponse.getUdiInfoEntities());
 | 
			
		
	
	
		
		
			
				
					|  |  | @ -101,15 +98,12 @@ public class UdiInfoImportDetailServiceImpl implements UdiInfoImportDetailServic | 
			
		
	
		
		
			
				
					
					|  |  |  |         //关联表导入
 |  |  |  |         //关联表导入
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (CollUtil.isNotEmpty(udiRelevanceExportJsonResponse.getUdiRelevanceEntities())) { |  |  |  |         if (CollUtil.isNotEmpty(udiRelevanceExportJsonResponse.getUdiRelevanceEntities())) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             SqlSession batchSession = sqlSessionFactory.openSession(ExecutorType.BATCH, TransactionIsolationLevel.READ_COMMITTED); |  |  |  |             SqlSession batchSession = sqlSessionFactory.openSession(ExecutorType.BATCH, TransactionIsolationLevel.READ_COMMITTED); | 
			
		
	
		
		
			
				
					
					|  |  |  |             try { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             List<UdiRelevanceEntity> corpList = udiRelevanceExportJsonResponse.getUdiRelevanceEntities(); |  |  |  |             List<UdiRelevanceEntity> corpList = udiRelevanceExportJsonResponse.getUdiRelevanceEntities(); | 
			
		
	
		
		
			
				
					
					|  |  |  |             UdiRelevanceDao mapper = batchSession.getMapper(UdiRelevanceDao.class); |  |  |  |             UdiRelevanceDao mapper = batchSession.getMapper(UdiRelevanceDao.class); | 
			
		
	
		
		
			
				
					
					|  |  |  |             for (UdiRelevanceEntity basicUnitMaintainEntity : corpList) { |  |  |  |             for (UdiRelevanceEntity basicUnitMaintainEntity : corpList) { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 mapper.insertUdiRelevance(basicUnitMaintainEntity); |  |  |  |                 mapper.insertUdiRelevance(basicUnitMaintainEntity); | 
			
		
	
		
		
			
				
					
					|  |  |  |             } |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |             batchSession.commit(); |  |  |  |             batchSession.commit(); | 
			
		
	
		
		
			
				
					
					|  |  |  |             } catch (Exception e) { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             } |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             batchSession.close(); |  |  |  |             batchSession.close(); | 
			
		
	
		
		
			
				
					
					|  |  |  | //            udiRelevanceDao.importUdiRelevance(udiRelevanceExportJsonResponse.getUdiRelevanceEntities());
 |  |  |  | //            udiRelevanceDao.importUdiRelevance(udiRelevanceExportJsonResponse.getUdiRelevanceEntities());
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
	
		
		
			
				
					|  |  | @ -118,15 +112,12 @@ public class UdiInfoImportDetailServiceImpl implements UdiInfoImportDetailServic | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (CollUtil.isNotEmpty(udiRelevanceExportJsonResponse.getThrProductsEntities())) { |  |  |  |         if (CollUtil.isNotEmpty(udiRelevanceExportJsonResponse.getThrProductsEntities())) { | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |             SqlSession batchSession = sqlSessionFactory.openSession(ExecutorType.BATCH, TransactionIsolationLevel.READ_COMMITTED); |  |  |  |             SqlSession batchSession = sqlSessionFactory.openSession(ExecutorType.BATCH, TransactionIsolationLevel.READ_COMMITTED); | 
			
		
	
		
		
			
				
					
					|  |  |  |             try { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             List<ThrProductsEntity> corpList = udiRelevanceExportJsonResponse.getThrProductsEntities(); |  |  |  |             List<ThrProductsEntity> corpList = udiRelevanceExportJsonResponse.getThrProductsEntities(); | 
			
		
	
		
		
			
				
					
					|  |  |  |             ThrProductsDao mapper = batchSession.getMapper(ThrProductsDao.class); |  |  |  |             ThrProductsDao mapper = batchSession.getMapper(ThrProductsDao.class); | 
			
		
	
		
		
			
				
					
					|  |  |  |             for (ThrProductsEntity basicUnitMaintainEntity : corpList) { |  |  |  |             for (ThrProductsEntity basicUnitMaintainEntity : corpList) { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 mapper.insertThrProducts(basicUnitMaintainEntity); |  |  |  |                 mapper.insertThrProducts(basicUnitMaintainEntity); | 
			
		
	
		
		
			
				
					
					|  |  |  |             } |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |             batchSession.commit(); |  |  |  |             batchSession.commit(); | 
			
		
	
		
		
			
				
					
					|  |  |  |             } catch (Exception e) { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             } |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             batchSession.close(); |  |  |  |             batchSession.close(); | 
			
		
	
		
		
			
				
					
					|  |  |  | //            thrProductsDao.importThrProductss(udiRelevanceExportJsonResponse.getThrProductsEntities());
 |  |  |  | //            thrProductsDao.importThrProductss(udiRelevanceExportJsonResponse.getThrProductsEntities());
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
	
		
		
			
				
					|  |  | @ -135,15 +126,12 @@ public class UdiInfoImportDetailServiceImpl implements UdiInfoImportDetailServic | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (CollUtil.isNotEmpty(udiRelevanceExportJsonResponse.getCompanyProductRelevanceEntities())) { |  |  |  |         if (CollUtil.isNotEmpty(udiRelevanceExportJsonResponse.getCompanyProductRelevanceEntities())) { | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |             SqlSession batchSession = sqlSessionFactory.openSession(ExecutorType.BATCH, TransactionIsolationLevel.READ_COMMITTED); |  |  |  |             SqlSession batchSession = sqlSessionFactory.openSession(ExecutorType.BATCH, TransactionIsolationLevel.READ_COMMITTED); | 
			
		
	
		
		
			
				
					
					|  |  |  |             try { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             List<CompanyProductRelevanceEntity> companyProductRelevanceEntities = udiRelevanceExportJsonResponse.getCompanyProductRelevanceEntities(); |  |  |  |             List<CompanyProductRelevanceEntity> companyProductRelevanceEntities = udiRelevanceExportJsonResponse.getCompanyProductRelevanceEntities(); | 
			
		
	
		
		
			
				
					
					|  |  |  |             CompanyProductRelevanceDao mapper = batchSession.getMapper(CompanyProductRelevanceDao.class); |  |  |  |             CompanyProductRelevanceDao mapper = batchSession.getMapper(CompanyProductRelevanceDao.class); | 
			
		
	
		
		
			
				
					
					|  |  |  |             for (CompanyProductRelevanceEntity companyProductRelevanceEntity : companyProductRelevanceEntities) { |  |  |  |             for (CompanyProductRelevanceEntity companyProductRelevanceEntity : companyProductRelevanceEntities) { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 mapper.importCompanyProductRelevance(companyProductRelevanceEntity); |  |  |  |                 mapper.importCompanyProductRelevance(companyProductRelevanceEntity); | 
			
		
	
		
		
			
				
					
					|  |  |  |             } |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |             batchSession.commit(); |  |  |  |             batchSession.commit(); | 
			
		
	
		
		
			
				
					
					|  |  |  |             } catch (Exception e) { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             } |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             batchSession.close(); |  |  |  |             batchSession.close(); | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | 
 |