class RegistrationLevelManagementImpl implements RegistrationLevelManagementService {

    @Override
    public CommonResult updateRegistrationLevelById(RegistrationLevel registrationLevel) {
        if (registrationLevelMapper.get(registrationLevel.getId()) == null) {
            return CommonResult.fail(E_602);
        }
        int count = registrationLevelMapper.update(registrationLevel);
        if (count == 0) {
            return CommonResult.fail();
        }
        return CommonResult.success(count);
    }

}