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

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.utils.PageUtils;


import com.friday.custody.dao.DataDictionaryDividendWayDetailsDao;
import com.friday.custody.entity.DataDictionaryDividendWayDetailsEntity;
import com.friday.custody.service.basicService.DataDictionaryDividendWayDetailsService;


@Service("dataDictionaryDividendWayDetailsService")
public class DataDictionaryDividendWayDetailsServiceImpl extends ServiceImpl<DataDictionaryDividendWayDetailsDao, DataDictionaryDividendWayDetailsEntity> implements DataDictionaryDividendWayDetailsService {

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

        return new PageUtils(page);
    }

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