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

import com.friday.custody.service.basicService.DataDictionaryTypeOfFundValuationDetailsService;
import com.friday.custody.utils.PageUtils;
import com.friday.custody.utils.Query;
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.dao.DataDictionaryTypeOfFundValuationDetailsDao;
import com.friday.custody.entity.DataDictionaryTypeOfFundValuationDetailsEntity;

@Service("dataDictionaryTypeOfFundValuationDetailsService")
public class DataDictionaryTypeOfFundValuationDetailsServiceImpl extends ServiceImpl<DataDictionaryTypeOfFundValuationDetailsDao, DataDictionaryTypeOfFundValuationDetailsEntity> implements DataDictionaryTypeOfFundValuationDetailsService {

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

        return new PageUtils(page);
    }

    @Override
    public List<DataDictionaryTypeOfFundValuationDetailsEntity> selectVByTrustNo(String trustNo) {
        return baseMapper.selectVByTrustNo(trustNo);
    }

}