package com.friday.custody.service.basicService.impl;

import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.friday.custody.utils.PageUtils;
import com.friday.custody.utils.Query;

import com.friday.custody.dao.DataDictionaryFundClassificationLogoDetailsDao;
import com.friday.custody.entity.DataDictionaryFundClassificationLogoDetailsEntity;
import com.friday.custody.service.basicService.DataDictionaryFundClassificationLogoDetailsService;


@Service("dataDictionaryFundClassificationLogoDetailsService")
public class DataDictionaryFundClassificationLogoDetailsServiceImpl extends ServiceImpl<DataDictionaryFundClassificationLogoDetailsDao, DataDictionaryFundClassificationLogoDetailsEntity> implements DataDictionaryFundClassificationLogoDetailsService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<DataDictionaryFundClassificationLogoDetailsEntity> page = this.page(
                new Query<DataDictionaryFundClassificationLogoDetailsEntity>().getPage(params),
                new QueryWrapper<DataDictionaryFundClassificationLogoDetailsEntity>()
        );

        return new PageUtils(page);
    }

    @Override
    public List<DataDictionaryFundClassificationLogoDetailsEntity> selectVByTrustNo(String trustNo) {
        return baseMapper.selectList(new QueryWrapper<DataDictionaryFundClassificationLogoDetailsEntity>().eq("trust_no", trustNo));
    }
}