@Override
    @Transactional(rollbackFor = Exception.class)
    public void deleteCombinationActivity(Long id) {
        // 校验存在
        CombinationActivityDO activity = validateCombinationActivityExists(id);
        // 校验状态
        if (CommonStatusEnum.isEnable(activity.getStatus())) {
            throw exception(COMBINATION_ACTIVITY_DELETE_FAIL_STATUS_NOT_CLOSED_OR_END);
        }

        // 删除
        combinationActivityMapper.deleteById(id);
    }
@Test
    public void testDeleteCombinationActivity_success() {
        // mock 数据
        CombinationActivityDO dbCombinationActivity = randomPojo(CombinationActivityDO.class);
        combinationActivityMapper.insert(dbCombinationActivity);// @Sql: 先插入出一条存在的数据
        // 准备参数
        Long id = dbCombinationActivity.getId();

        // 调用
        combinationActivityService.deleteCombinationActivity(id);
        // 校验数据不存在了
        assertNull(combinationActivityMapper.selectById(id));
    }