| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -151,8 +151,16 @@ 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();
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            try {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                if (StrUtil.isNotEmpty(catalogcode) && catalogcode.length() >= 7) {
 | 
					 | 
					 | 
					 | 
					                if (StrUtil.isNotEmpty(catalogcode) && catalogcode.length() >= 7) {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                    Integer catalogcode1 = Integer.valueOf(catalogcode.substring(1, 3));
 | 
					 | 
					 | 
					 | 
					                    Integer catalogcode1 = Integer.valueOf(catalogcode.substring(1, 3));
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                    Integer catalogcode2 = Integer.valueOf(catalogcode1 + catalogcode.substring(3, 5));
 | 
					 | 
					 | 
					 | 
					                    Integer catalogcode2 = Integer.valueOf(catalogcode1 + catalogcode.substring(3, 5));
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -161,6 +169,18 @@ public class ThrProductsAddDiService extends ServiceImpl<ThrProductsAddDiDao, Th
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                    thrProductsAddDiEntity.setCatalogCode2(catalogcode2);
 | 
					 | 
					 | 
					 | 
					                    thrProductsAddDiEntity.setCatalogCode2(catalogcode2);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                    thrProductsAddDiEntity.setCatalogCode3(catalogcode3);
 | 
					 | 
					 | 
					 | 
					                    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);
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
 
 |