package com.kcim.dao.repository;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kcim.dao.mapper.ResponsibilityMapper;
import com.kcim.dao.model.Responsibility;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @program: CostAccount
 * @description:
 * @author: Wang.YS
 * @create: 2024-05-14 16:03
 **/


@Repository
public class ResponsibilityRepository extends ServiceImpl<ResponsibilityMapper, Responsibility> {

    public List<Responsibility> getList(Long hospId){
        LambdaQueryWrapper<Responsibility> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(Responsibility::getHospId,hospId);
        return this.list(queryWrapper);
    }
}
