class DepartmentManagementImpl implements DepartmentManagementService {

    @Override
    public CommonResult insertDepartment(Department department) {
        int count = departmentMapper.insert(department);
        if (count == 0) {
            return CommonResult.fail();
        }
        return CommonResult.success(count);
    }

}