| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -89,6 +89,8 @@ public class GridOperatorDutyCategoryServiceImpl extends BaseServiceImpl<GridOpe | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    @Transactional(rollbackFor = Exception.class) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    public void save(GridOperatorDutyCategoryDTO dto) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        GridOperatorDutyCategoryEntity entity = ConvertUtils.sourceToTarget(dto, GridOperatorDutyCategoryEntity.class); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					       //判断权限编码是否重复dutyCategoryName权限编码
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        repetitionName(entity.getDutyCategoryName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        insert(entity); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -96,6 +98,8 @@ public class GridOperatorDutyCategoryServiceImpl extends BaseServiceImpl<GridOpe | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    @Transactional(rollbackFor = Exception.class) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    public void update(GridOperatorDutyCategoryDTO dto) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        GridOperatorDutyCategoryEntity entity = ConvertUtils.sourceToTarget(dto, GridOperatorDutyCategoryEntity.class); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        //判断权限编码是否重复dutyCategoryName权限编码
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        repetitionName(entity.getDutyCategoryName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        updateById(entity); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -109,5 +113,19 @@ public class GridOperatorDutyCategoryServiceImpl extends BaseServiceImpl<GridOpe | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        baseDao.deleteBatchIds(Arrays.asList(ids)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    /** | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    * @Description: 判断权限编码是否重复 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    * @Param: [dutyCategoryName] | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    * @return: void | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    * @Author: wk | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    * @Date: 2020/7/28 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    */ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    public void repetitionName(String dutyCategoryName){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        List<GridOperatorDutyCategoryEntity> list = baseDao.seleCategoryName(dutyCategoryName); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        if (null!=list && list.size()>0){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            throw new RenException("网格专员职责类别名称重复"); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					} |