liujie
2026-05-12 0bcfca6b2561d096a2ce26e2e7200cd0768b2b6d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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<XpTargetedServiceWhitelistMapper, XpTargetedServiceWhitelist> implements XpTargetedServiceWhitelistService {
 
    @Override
    public boolean removeByTargetedServiceId(Long targetedServiceId) {
        if (targetedServiceId == null) {
            return false;
        }
        LambdaQueryWrapper<XpTargetedServiceWhitelist> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(XpTargetedServiceWhitelist::getTargetedServiceId, targetedServiceId);
        return this.remove(wrapper);
    }
    
}