| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -1607,6 +1607,7 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        //推送端记录唯一标识
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        sendDto.setUID(UUID.randomUUID().toString().trim().replaceAll("-", "")); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        //事件领域
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        Integer lingYu = Integer.valueOf(itemEntity.getFirstCategoryCode()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        if(lingYu < 10){ | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -1617,17 +1618,7 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        log.info("处理项目-事件大类"); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        //事件大类
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        String secondCate = baseDao.selectSecondCateByItemId(itemEntity.getId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        if(StringUtils.isNotBlank(secondCate)){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            if(secondCate.length()==3){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                sendDto.setSJDL("0"+secondCate); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            }else{ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                sendDto.setSJDL(secondCate); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        //事件小类
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        sendDto.setSJXL(""); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        //事件细类
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        sendDto.setSJXIL(""); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        lbHandle(sendDto,secondCate); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        //诉求联系人及联系方式
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        Result<UserDTO> userResult =  userInfoFeignClient.getUserInfoById(itemEntity.getUserId()); | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -2639,5 +2630,47 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        return new Result().ok("操作成功"); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    /** | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     * 领域类别处理 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     * | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     * @param | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     * @return void | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     * @author zhy | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     * @date 2022/9/6 21:14 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     */ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    private void lbHandle(SendEventFormDto dto,String secondCategory){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        if(StringUtils.isNotBlank(secondCategory)){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            int length =secondCategory.length(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            if(length % 2 == 0){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                // 偶数
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            }else { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                // 奇数
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                secondCategory = "0"+secondCategory; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            if(length>2){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                // 每隔2位加一个逗号
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                secondCategory= secondCategory.replaceAll("(.{2})", "$1,"); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                String[] categoryList = secondCategory.split(","); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                if(categoryList.length==NumConstant.TWO){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    // 事件大类
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    dto.setSJDL(categoryList[1]); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                }else if(categoryList.length==NumConstant.THREE){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    // 事件大类
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    dto.setSJDL(categoryList[1]); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    //事件小类
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    dto.setSJXL(categoryList[2]); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                }else if(categoryList.length==NumConstant.FOUR){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    // 事件大类
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    dto.setSJDL(categoryList[1]); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    //事件小类
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    dto.setSJXL(categoryList[2]); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    //事件细类
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    dto.setSJXIL(categoryList[3]); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					} | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
					 | 
				
				 | 
				
					
  |