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

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yuchen.saas.park.api.entity.property.PropertyCashierOfflineDetail;
import com.yuchen.saas.park.service.mapper.property.PropertyCashierOfflineDetailMapper;
import org.nest.springwrap.core.log.exception.ServiceException;
import org.nest.springwrap.core.tool.utils.Func;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PropertyCashierOfflineDetailService extends ServiceImpl<PropertyCashierOfflineDetailMapper, PropertyCashierOfflineDetail> {


    public List<PropertyCashierOfflineDetail> listDetail(Long cashierOfflineId) {
        if (Func.isEmpty(cashierOfflineId)) {
            throw new ServiceException("获取收银台线下收费明细参数不能为空");
        }
        return this.lambdaQuery().eq(PropertyCashierOfflineDetail::getCashierOfflineId,cashierOfflineId).list();
    }



}
