|  |  | @ -151,16 +151,36 @@ public class ThrProductsAddDiService extends ServiceImpl<ThrProductsAddDiDao, Th | 
			
		
	
		
		
			
				
					
					|  |  |  |             thrProductsAddDiEntity.setUpdateTime(new Date()); |  |  |  |             thrProductsAddDiEntity.setUpdateTime(new Date()); | 
			
		
	
		
		
			
				
					
					|  |  |  |             thrProductsAddDiEntity.setStatus(1); //..
 |  |  |  |             thrProductsAddDiEntity.setStatus(1); //..
 | 
			
		
	
		
		
			
				
					
					|  |  |  |             thrProductsAddDiEntity.setSelectThridSysStr(JSONUtil.toJsonStr(thrDiProductsRequest.getSelectThirdSys())); |  |  |  |             thrProductsAddDiEntity.setSelectThridSysStr(JSONUtil.toJsonStr(thrDiProductsRequest.getSelectThirdSys())); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             if (thrDiProductsRequest.getProductsType() == null){ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 thrProductsAddDiEntity.setProductsType(2); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             }else { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 thrProductsAddDiEntity.setProductsType(thrDiProductsRequest.getProductsType()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |             //医保编码解析
 |  |  |  |             //医保编码解析
 | 
			
		
	
		
		
			
				
					
					|  |  |  |             String catalogcode = thrDiProductsRequest.getCatalogcode(); |  |  |  |             String catalogcode = thrDiProductsRequest.getCatalogcode(); | 
			
		
	
		
		
			
				
					
					|  |  |  |             if (StrUtil.isNotEmpty(catalogcode) && catalogcode.length() >= 7) { |  |  |  | 
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 Integer catalogcode1 = Integer.valueOf(catalogcode.substring(1, 3)); |  |  |  |             try { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 Integer catalogcode2 = Integer.valueOf(catalogcode1 + catalogcode.substring(3, 5)); |  |  |  |                 if (StrUtil.isNotEmpty(catalogcode) && catalogcode.length() >= 7) { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 Integer catalogcode3 = Integer.valueOf(catalogcode2 + catalogcode.substring(5, 7)); |  |  |  |                     Integer catalogcode1 = Integer.valueOf(catalogcode.substring(1, 3)); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 thrProductsAddDiEntity.setCatalogCode1(catalogcode1); |  |  |  |                     Integer catalogcode2 = Integer.valueOf(catalogcode1 + catalogcode.substring(3, 5)); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 thrProductsAddDiEntity.setCatalogCode2(catalogcode2); |  |  |  |                     Integer catalogcode3 = Integer.valueOf(catalogcode2 + catalogcode.substring(5, 7)); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 thrProductsAddDiEntity.setCatalogCode3(catalogcode3); |  |  |  |                     thrProductsAddDiEntity.setCatalogCode1(catalogcode1); | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     thrProductsAddDiEntity.setCatalogCode2(catalogcode2); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     thrProductsAddDiEntity.setCatalogCode3(catalogcode3); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             } catch (Exception e) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |             } |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | //            if (StrUtil.isNotEmpty(catalogcode) && catalogcode.length() >= 7) {
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | //                Integer catalogcode1 = Integer.valueOf(catalogcode.substring(1, 3));
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | //                Integer catalogcode2 = Integer.valueOf(catalogcode1 + catalogcode.substring(3, 5));
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | //                Integer catalogcode3 = Integer.valueOf(catalogcode2 + catalogcode.substring(5, 7));
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | //                thrProductsAddDiEntity.setCatalogCode1(catalogcode1);
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | //                thrProductsAddDiEntity.setCatalogCode2(catalogcode2);
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | //                thrProductsAddDiEntity.setCatalogCode3(catalogcode3);
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | //            }
 | 
			
		
	
		
		
			
				
					
					|  |  |  |             String internalMaterialCode = this.getInternalMaterialCode("10","66"); |  |  |  |             String internalMaterialCode = this.getInternalMaterialCode("10","66"); | 
			
		
	
		
		
			
				
					
					|  |  |  |             thrProductsAddDiEntity.setInternalMaterialCode(internalMaterialCode); |  |  |  |             thrProductsAddDiEntity.setInternalMaterialCode(internalMaterialCode); | 
			
		
	
		
		
			
				
					
					|  |  |  |             list.add(thrProductsAddDiEntity); |  |  |  |             list.add(thrProductsAddDiEntity); | 
			
		
	
	
		
		
			
				
					|  |  | 
 |