package com.xiaopeng.operation.service.impl; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.xiaopeng.api.model.operation.XpTargetedServiceWhitelist; import com.xiaopeng.operation.mapper.XpTargetedServiceWhitelistMapper; import com.xiaopeng.operation.service.XpTargetedServiceWhitelistService; import org.springframework.stereotype.Service; @Service public class XpTargetedServiceWhitelistServiceImp extends ServiceImpl implements XpTargetedServiceWhitelistService { @Override public boolean removeByTargetedServiceId(Long targetedServiceId) { if (targetedServiceId == null) { return false; } LambdaQueryWrapper wrapper = new LambdaQueryWrapper<>(); wrapper.eq(XpTargetedServiceWhitelist::getTargetedServiceId, targetedServiceId); return this.remove(wrapper); } }