package com.openhis.yb.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.openhis.common.enums.DelFlag;
import com.openhis.yb.domain.ClinicUnSettle;
import com.openhis.yb.mapper.ClinicUnSettleMapper;
import com.openhis.yb.service.IClinicUnSettleService;

/**
 * 【请填写功能名称】Service业务层处理
 *
 * @author system
 * @date 2025-04-20
 */
@Service
public class ClinicUnSettleServiceImpl extends ServiceImpl<ClinicUnSettleMapper, ClinicUnSettle>
    implements IClinicUnSettleService {

    /**
     * 根据settleId查询集合
     * 
     * @param settleIds 集合
     * @return 集合
     */
    @Override
    public List<ClinicUnSettle> getBySettleIds(List<String> settleIds) {
        return baseMapper.selectList(new LambdaQueryWrapper<ClinicUnSettle>().in(ClinicUnSettle::getSettleId, settleIds)
            .eq(ClinicUnSettle::getDeleteFlag, DelFlag.NO.getCode()));
    }
}