package com.yuchen.saas.park.service.service.property;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yuchen.saas.park.api.entity.property.PropertyBusinessChargesDetail;
import com.yuchen.saas.park.service.mapper.property.PropertyBusinessChargesDetailMapper;
import org.springframework.stereotype.Service;

@Service
public class PropertyBusinessChargesDetailService extends ServiceImpl<PropertyBusinessChargesDetailMapper, PropertyBusinessChargesDetail> {

    public void removeDetail(long businessChargesId) {
        LambdaQueryWrapper<PropertyBusinessChargesDetail> qw = new LambdaQueryWrapper<>();
        qw.eq(PropertyBusinessChargesDetail::getBusinessChargesId,businessChargesId);
        this.remove(qw);
    }


}
