| | |
| | | package com.ruoyi.system.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.IdWorker; |
| | | import java.util.List; |
| | | |
| | | import com.ruoyi.common.core.web.page.PageInfo; |
| | | import com.ruoyi.system.api.domain.SysRole; |
| | | import com.ruoyi.system.domain.dto.deptQuery; |
| | | import com.ruoyi.system.service.ISysDeptService; |
| | | import io.seata.common.util.StringUtils; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.commons.lang3.ArrayUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.util.StringUtils; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.ruoyi.common.core.constant.UserConstants; |
| | | import com.ruoyi.common.core.web.controller.BaseController; |
| | | import com.ruoyi.common.core.web.domain.AjaxResult; |
| | | import com.ruoyi.common.log.annotation.Log; |
| | |
| | | |
| | | PageInfo<SysDept> page = deptService.page(pageInfo, |
| | | new LambdaQueryWrapper<SysDept>().orderByDesc(SysDept::getCreateTime) |
| | | .like(StringUtils.isNotBlank(dept.getDeptName()), SysDept::getDeptName, |
| | | .like(StringUtils.hasLength(dept.getDeptName()), SysDept::getDeptName, |
| | | dept.getDeptName()).eq(SysDept::getDelFlag, "0")); |
| | | return AjaxResult.success(page); |
| | | } |
| | |
| | | /** |
| | | * 查询部门列表(排除节点) |
| | | */ |
| | | |
| | | /** |
| | | * 根据部门编号获取详细信息 |
| | | */ |