@Test public void testDeleteDepartmentById() throws Exception { }
@Override public CommonResult deleteDepartmentById(Integer id) { if (departmentMapper.get(id) == null) { return CommonResult.fail(E_602); } int count = departmentMapper.delete(id); if (count == 0) { return CommonResult.fail(); } return CommonResult.success(count); }
DepartmentManagementImpl implements DepartmentManagementService { @Override public CommonResult deleteDepartmentById(Integer id) { if (departmentMapper.get(id) == null) { return CommonResult.fail(E_602); } int count = departmentMapper.delete(id); if (count == 0) { return CommonResult.fail(); } return CommonResult.success(count); } }
DepartmentManagementImpl implements DepartmentManagementService { @Override public CommonResult deleteDepartmentById(Integer id) { if (departmentMapper.get(id) == null) { return CommonResult.fail(E_602); } int count = departmentMapper.delete(id); if (count == 0) { return CommonResult.fail(); } return CommonResult.success(count); }  }
DepartmentManagementImpl implements DepartmentManagementService { @Override public CommonResult deleteDepartmentById(Integer id) { if (departmentMapper.get(id) == null) { return CommonResult.fail(E_602); } int count = departmentMapper.delete(id); if (count == 0) { return CommonResult.fail(); } return CommonResult.success(count); }  @Override CommonResult getDepartmentById(Integer id); @Override CommonResult insertDepartment(Department department); @Override CommonResult updateDepartmentById(Department department); @Override CommonResult deleteDepartmentById(Integer id); @Override CommonResult listAllDepartments(); @Override CommonResult listPage(Integer pageNum, Integer pageSize); @Override CommonResult listDepartmentsTree(); CommonResult listDoctorDepartments(); }
DepartmentManagementImpl implements DepartmentManagementService { @Override public CommonResult deleteDepartmentById(Integer id) { if (departmentMapper.get(id) == null) { return CommonResult.fail(E_602); } int count = departmentMapper.delete(id); if (count == 0) { return CommonResult.fail(); } return CommonResult.success(count); }  @Override CommonResult getDepartmentById(Integer id); @Override CommonResult insertDepartment(Department department); @Override CommonResult updateDepartmentById(Department department); @Override CommonResult deleteDepartmentById(Integer id); @Override CommonResult listAllDepartments(); @Override CommonResult listPage(Integer pageNum, Integer pageSize); @Override CommonResult listDepartmentsTree(); CommonResult listDoctorDepartments();  }