| | |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.ruoyi.common.basic.PageInfo; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.system.mapper.SysMenuMapper; |
| | | import com.ruoyi.system.model.TDept; |
| | | import com.ruoyi.system.mapper.TDeptMapper; |
| | |
| | | import com.ruoyi.system.vo.DeptVO; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.StringUtils; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | private SysMenuMapper sysMenuMapper; |
| | | @Override |
| | | public boolean isExit(TDept dto) { |
| | | if(StringUtils.isNotEmpty(dto.getDeptId())){ |
| | | if(StringUtils.hasLength(dto.getId())){ |
| | | // 修改 |
| | | return this.count(Wrappers.lambdaQuery(TDept.class).ne(TDept::getId, dto.getId()).eq(TDept::getDeptId, dto.getDeptId())) > 0; |
| | | }else { |