|  | @ -7,6 +7,7 @@ import com.yihu.jw.entity.base.role.RoleMenuDO;
 | 
												
													
														
															|  | import com.yihu.jw.restmodel.web.Envelop;
 |  | import com.yihu.jw.restmodel.web.Envelop;
 | 
												
													
														
															|  | import com.yihu.jw.rm.base.BaseRequestMapping;
 |  | import com.yihu.jw.rm.base.BaseRequestMapping;
 | 
												
													
														
															|  | import com.yihu.mysql.query.BaseJpaService;
 |  | import com.yihu.mysql.query.BaseJpaService;
 | 
												
													
														
															|  | 
 |  | import org.apache.commons.lang3.StringUtils;
 | 
												
													
														
															|  | import org.springframework.beans.factory.annotation.Autowired;
 |  | import org.springframework.beans.factory.annotation.Autowired;
 | 
												
													
														
															|  | import org.springframework.stereotype.Service;
 |  | import org.springframework.stereotype.Service;
 | 
												
													
														
															|  | 
 |  | 
 | 
												
											
												
													
														
															|  | @ -43,10 +44,17 @@ public class RoleService extends BaseJpaService<RoleDO, RoleDao> {
 | 
												
													
														
															|  |         return Envelop.getSuccess(BaseRequestMapping.Role.api_success);
 |  |         return Envelop.getSuccess(BaseRequestMapping.Role.api_success);
 | 
												
													
														
															|  |     }
 |  |     }
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |     public Boolean findRoleNameExist(String name){
 |  | 
 | 
												
													
														
															|  |         List<RoleDO> list = roleDao.findByNameAndStatus(name,1);
 |  | 
 | 
												
													
														
															|  |         if(list!=null&&list.size()>0){
 |  | 
 | 
												
													
														
															|  |             return true;
 |  | 
 | 
												
													
														
															|  | 
 |  |     public Boolean findRoleNameExist(String name,String saasId){
 | 
												
													
														
															|  | 
 |  |         if(StringUtils.isNotBlank(saasId)){
 | 
												
													
														
															|  | 
 |  |             List<RoleDO> list = roleDao.findByNameAndSaasIdAndStatus(name,saasId,1);
 | 
												
													
														
															|  | 
 |  |             if(list!=null&&list.size()>0){
 | 
												
													
														
															|  | 
 |  |                 return true;
 | 
												
													
														
															|  | 
 |  |             }
 | 
												
													
														
															|  | 
 |  |         }else{
 | 
												
													
														
															|  | 
 |  |             List<RoleDO> list = roleDao.findByNameAndStatus(name,1);
 | 
												
													
														
															|  | 
 |  |             if(list!=null&&list.size()>0){
 | 
												
													
														
															|  | 
 |  |                 return true;
 | 
												
													
														
															|  | 
 |  |             }
 | 
												
													
														
															|  |         }
 |  |         }
 | 
												
													
														
															|  |         return false;
 |  |         return false;
 | 
												
													
														
															|  |     }
 |  |     }
 |