| | |
| | | import com.ruoyi.system.mapper.sys.SysDeptMapper; |
| | | import com.ruoyi.system.mapper.sys.SysDeptMenuMapper; |
| | | import com.ruoyi.system.mapper.sys.SysRoleMapper; |
| | | import com.ruoyi.system.service.staff.SysWxCpService; |
| | | import com.ruoyi.system.service.sys.ISysDeptService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.ArrayList; |
| | | import java.util.Iterator; |
| | | import java.util.List; |
| | |
| | | |
| | | @Autowired |
| | | private SysDeptMenuMapper deptMenuMapper; |
| | | |
| | | @Resource |
| | | private SysWxCpService sysWxCpService; |
| | | |
| | | /** |
| | | * 查询部门管理数据 |
| | |
| | | @Override |
| | | public int deleteDeptById(Long deptId) |
| | | { |
| | | SysDept sysDept = this.selectDeptById(deptId); |
| | | if(sysDept.getWxDeptId()!=null){ |
| | | sysWxCpService.deleteWxCpDept(sysDept.getWxDeptId()); |
| | | } |
| | | return deptMapper.deleteDeptById(deptId); |
| | | } |
| | | |